From: Nick Dokos <nicholas.dokos@hp.com>
To: Simon Thum <simon.thum@gmx.de>
Cc: news1142@Karl-Voit.at, Karl Voit <devnull@Karl-Voit.at>,
emacs-orgmode@gnu.org
Subject: Re: Case insensitive search
Date: Sun, 24 Jun 2012 16:33:24 -0400 [thread overview]
Message-ID: <21590.1340570004@alphaville> (raw)
In-Reply-To: Message from Simon Thum <simon.thum@gmx.de> of "Sun, 24 Jun 2012 22:17:06 +0200." <4FE775C2.4070209@gmx.de>
Simon Thum <simon.thum@gmx.de> wrote:
> On 06/24/2012 05:21 PM, Karl Voit wrote:
> > * Simon Thum<simon.thum@gmx.de> wrote:
> >> Hi,
> >>
> >> thanks for sharing your setup. Piggybacking on this thread, I'm just
> >> starting with org-contacts and wonder how I could get it to perform
> >> case-insensitive searches? (This would make it easier to search for
> >> parts of names)
> >
> > http://sunsite.ualberta.ca/Documentation/Gnu/emacs-21.1/html_chapter/faq_5.html#SEC42
> > (setq case-fold-search t) ; make searches case insensitive
> I ran across that already but figured it's a bit harsh for all of emacs
> or org-mode, i.e. I am worried about unintended side-effects.
>
One possible workaround for this kind of thing is to let-bind case-fold-search
in a wrapper function:
(defun my-fun (...)
(let ((case-fold-search t))
(orig-fun ...)))
It should work unles the original function also plays such games with
case-fold-search, in which case all bets are off. But it might be worth
spending a few minutes for a simple test, before you dig deeper.
Nick
> The trouble I'm having stems from the fact that org-contact search is
> (AFAICT) an agenda search, which is case insensitive in my setup. So why
> is org contacts case sensitive in the first place?
>
> Thanks anyway, I'll dig deeper some time (but probably not today).
>
> Cheers,
>
> Simon
>
next prev parent reply other threads:[~2012-06-24 20:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 6:21 BBDB Sync (Was: Re: [Orgmode] Re: contact management in org-mode?) Sriram Karra
2012-06-22 20:03 ` Karl Voit
2012-06-23 3:21 ` Sriram Karra
2012-06-23 9:58 ` How I am organizing contacts (was: BBDB Sync) Karl Voit
2012-06-24 13:43 ` Customizing org-contacts Was: Re: How I am organizing contacts Simon Thum
2012-06-24 15:21 ` Case insensitive search (was: Customizing org-contacts) Karl Voit
2012-06-24 20:17 ` Case insensitive search Simon Thum
2012-06-24 20:33 ` Nick Dokos [this message]
2012-06-23 21:14 ` BBDB Sync John Wiegley
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=21590.1340570004@alphaville \
--to=nicholas.dokos@hp.com \
--cc=devnull@Karl-Voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
--cc=simon.thum@gmx.de \
/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).