[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [agenda] Case-insensitive tag search
From: |
Nick Dokos |
Subject: |
Re: [O] [agenda] Case-insensitive tag search |
Date: |
Mon, 10 Oct 2011 20:56:01 -0400 |
suvayu ali <address@hidden> wrote:
> Hi Marcelo,
>
> On Mon, Oct 10, 2011 at 10:54 PM, Marcelo de Moraes Serpa
> <address@hidden> wrote:
> > Would it be hard to add such feature, considering I'm just beginning with
> > elisp? Might be a candidate for my first patch to orgmode :)
>
> 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.
>
> 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.
>
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
- [O] [agenda] Case-insensitive tag search, Marcelo de Moraes Serpa, 2011/10/08
- Re: [O] [agenda] Case-insensitive tag search, Marcelo de Moraes Serpa, 2011/10/10
- Re: [O] [agenda] Case-insensitive tag search, Carsten Dominik, 2011/10/10
- Re: [O] [agenda] Case-insensitive tag search, Marcelo de Moraes Serpa, 2011/10/10
- Re: [O] [agenda] Case-insensitive tag search, suvayu ali, 2011/10/10
- Re: [O] [agenda] Case-insensitive tag search, Marcelo de Moraes Serpa, 2011/10/10
- Re: [O] [agenda] Case-insensitive tag search,
Nick Dokos <=
- Re: [O] [agenda] Case-insensitive tag search, Carsten Dominik, 2011/10/11
- Re: [O] [agenda] Case-insensitive tag search, Christian Moe, 2011/10/11