From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Case-sensitivity in regular expressions and sparse trees for tags Date: Fri, 19 Sep 2008 08:09:22 +0200 Message-ID: <94C4587E-8438-49CF-AD0E-EF79D213504C@uva.nl> References: <5AD95B17509244669D3270D1012B73C2@CUBE> <2AAAC35C-C27C-47DC-804E-4B8617B31260@uva.nl> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgaFh-0007dJ-0v for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 03:18:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgaFg-0007cv-1E for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 03:18:04 -0400 Received: from [199.232.76.173] (port=33694 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgaFf-0007cr-NV for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 03:18:03 -0400 Received: from mx20.gnu.org ([199.232.41.8]:25915) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KgaFf-0001Ay-Ae for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 03:18:03 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgaFd-00041Y-No for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 03:18:02 -0400 In-Reply-To: <2AAAC35C-C27C-47DC-804E-4B8617B31260@uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org On Sep 18, 2008, at 5:43 PM, Carsten Dominik wrote: > Hi Chris, > > On Sep 17, 2008, at 9:38 PM, Chris Randle wrote: > >> Hi Gerrit >> >> Forgive me if I've misunderstood regular expressions in Emacs or >> Org-mode in some fundamental way! >> >> I have some tags which begin "CD" followed by a number. For example >> >> * Tagged Heading :CD123: >> >> When I ask for a sparse tree of all tags beginning with "CD", I do >> >> 'C-c / T' >> >> And ask for tags of >> >> {^CD.*} >> >> This doesn't return any of the tagged headlines, but this does: >> >> {^cd.*} >> >> Is this a bug, or my misunderstanding? Obviously this is no >> show-stopper, I just make sure that all my regexp searches are in >> lower >> case, but thought I'd check. > > It may be a bug, and a misunderstanding. > > 1. I do downcase all tage before they are tested in the matcher. > 2. This seems to indicate that I do want the matching to be case- > insensitive. > 3. I do set case-fold-search to nil, which seems to contradict (2) > > > For now, I recommend to write all regexps with lower case letters. > I need to try to remember why I did not set case-fold-search. I am pushing a fix today which will mkae sure that tags matching is truly case insensitive. So that should make your old regexp work again. - Carsten