From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: How to use case sensitive org-search-view? Date: Tue, 14 Nov 2017 16:30:00 +0100 Message-ID: <23051.3064.115085.927014@frac.u-strasbg.fr> References: <22975.53875.671661.416361@frac.u-strasbg.fr> <874lrzl1gr.fsf@fastmail.fm> <87lgl963jf.fsf@nicolasgoaziou.fr> <22986.5564.583945.909910@frac.u-strasbg.fr> <877ewl4u8s.fsf@nicolasgoaziou.fr> <22986.19586.309718.302611@frac.u-strasbg.fr> <87h8vmopww.fsf@nicolasgoaziou.fr> <22989.25593.198323.807112@frac.u-strasbg.fr> <87k20imrzb.fsf@nicolasgoaziou.fr> <22997.60031.814843.407658@frac.u-strasbg.fr> <23045.57473.573321.290325@frac.u-strasbg.fr> <87efp1vsuq.fsf@fastmail.fm> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEdAI-0002x0-4T for emacs-orgmode@gnu.org; Tue, 14 Nov 2017 10:30:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEdAB-0004t4-Nl for emacs-orgmode@gnu.org; Tue, 14 Nov 2017 10:30:18 -0500 Received: from smr2.u-strasbg.fr ([130.79.222.218]:42700 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEdAB-0004mA-Hs for emacs-orgmode@gnu.org; Tue, 14 Nov 2017 10:30:11 -0500 In-Reply-To: <87efp1vsuq.fsf@fastmail.fm> 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" To: Matt Lundin Cc: emacs-orgmode@gnu.org, Alain.Cochard@unistra.fr Matt Lundin writes on Tue 14 Nov 2017 08:26: > > Suppose I have an org file with > > > > * FOO > > * foo > > > > I would like to use org-search-view (C-c a s) so as to (say) list > > only the first entry. > Unfortunately, it looks like org-search-view is hard-coded to be > case-insensitive. I think a very hackish workaround would be to > advise org-search-view to create and then remove an "around" advice > that wraps re-search-forward in a "let" declaration setting > case-fold-search to nil. But this would be a fairly horrific hack. >=20 > In the long run, I believe the Org Mode code would need to be > changed to make this customizable. In the meantime, shouldn't this "glitch" be mentioned in the manual=3F The manual does say that 'C-c a s' Create a list of entries selected by a boolean expression of keywords and/or regular expressions [...] Same problem for the 'C-c a s' minibuffer prompt: Phrase or [+-]Word/{Regexp} and the subsequent Press `[', `]' to add/sub word, `{', `}' to add/sub regexp I also realized that, consistently, using +{[[:upper:]]+o}, also lists both entries. Finally, trying to narrow the FOO + foo search results using '=3D': `=3D (`org-agenda-filter-by-regexp')' Filter the agenda view by a regular expression: only show agenda entries matching the regular expression the user entered. and typing explicitly 'FOO' fails accordingly. The tutorial http://orgmode.org/worg/org-tutorials/advanced-searching.html does not seem to mention this point either. Anyway, thanks you very much for your time and feed back. Regards a. PS: considering "horrific hack", I think you meant "In the /short/ run...", but I'm sure the Org developpers have understood it correctly :-) --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=