emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: nicholas.dokos@hp.com, Org Mode <emacs-orgmode@gnu.org>,
	Marcelo de Moraes Serpa <celoserpa@gmail.com>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: [agenda] Case-insensitive tag search
Date: Mon, 10 Oct 2011 20:56:01 -0400	[thread overview]
Message-ID: <4619.1318294561@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from suvayu ali <fatkasuvayu+linux@gmail.com> of "Tue\, 11 Oct 2011 00\:20\:07 +0200." <CAMXnza3PVgSzaea4hz4_9ha5g5=F4F50aun-pmriOG-Q=4PAtQ@mail.gmail.com>

suvayu ali <fatkasuvayu+linux@gmail.com> wrote:

> Hi Marcelo,
> 
> On Mon, Oct 10, 2011 at 10:54 PM, Marcelo de Moraes Serpa
> <celoserpa@gmail.com> 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

  parent reply	other threads:[~2011-10-11  0:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09  2:25 [agenda] Case-insensitive tag search Marcelo de Moraes Serpa
2011-10-10 15:48 ` Marcelo de Moraes Serpa
2011-10-10 19:16   ` Carsten Dominik
2011-10-10 20:54     ` Marcelo de Moraes Serpa
2011-10-10 22:20       ` suvayu ali
2011-10-11  0:42         ` Marcelo de Moraes Serpa
2011-10-11  0:56         ` Nick Dokos [this message]
2011-10-11  6:22           ` Carsten Dominik
2011-10-11  7:39             ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4619.1318294561@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.com \
    --cc=celoserpa@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).