From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [agenda] Case-insensitive tag search Date: Mon, 10 Oct 2011 20:56:01 -0400 Message-ID: <4619.1318294561@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDQdb-0003uA-0O for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 20:56:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDQdZ-0007rn-UO for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 20:56:06 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:2790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDQdZ-0007rf-PK for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 20:56:05 -0400 In-Reply-To: Message from suvayu ali of "Tue\, 11 Oct 2011 00\:20\:07 +0200." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: nicholas.dokos@hp.com, Org Mode , Marcelo de Moraes Serpa , Carsten Dominik suvayu ali wrote: > Hi Marcelo, >=20 > On Mon, Oct 10, 2011 at 10:54 PM, Marcelo de Moraes Serpa > wrote: > > Would it be hard to add such feature, considering I'm just beginning wi= th > > elisp? Might be a=C2=A0candidate=C2=A0for my first patch to orgmode :) >=20 > Since you mention lisp, I think you can have an easy solution with a > custom agenda command. As far as I can see there could be two > possibilities, bind `case-fold-search' to t or `downcase' your search > query before performing a regular tags search. >=20 > I haven't looked at any code before making these suggestions. So you > will have to figure out which, if any at all, is viable. >=20 My first thought was advising the function as above but it didn't work when I tried it, so I did look at the code: org-tags-view calls org-scan-tags which sets case-fold-search to nil unconditionally, hence the advice failure (I think). But I also tried to set it to t (in a git branch) and that too did not work for me - I gave up at that point (however, I didn't try very hard so it is quite conceivable that I misunderstood the code or did something wrong.) Nick