From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Case insensitive search Date: Sun, 24 Jun 2012 16:33:24 -0400 Message-ID: <21590.1340570004@alphaville> References: <2012-06-22T22-00-43@devnull.Karl-Voit.at> <2012-06-23T11-19-19@devnull.Karl-Voit.at> <4FE71998.7050803@gmx.de> <2012-06-24T17-18-36@devnull.Karl-Voit.at> <4FE775C2.4070209@gmx.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SitV2-0008PZ-SJ for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 16:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SitV0-0003GS-RP for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 16:33:36 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:25404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SitV0-0003Fk-LB for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 16:33:34 -0400 In-Reply-To: Message from Simon Thum of "Sun, 24 Jun 2012 22:17:06 +0200." <4FE775C2.4070209@gmx.de> 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: Simon Thum Cc: news1142@Karl-Voit.at, Karl Voit , emacs-orgmode@gnu.org Simon Thum wrote: > On 06/24/2012 05:21 PM, Karl Voit wrote: > > * Simon Thum 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 >