From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Use of \w Emacs regexp in org-export-bibtex.el excludes BiBTeX filenames with underscore Date: Fri, 14 Aug 2009 20:30:41 +0200 Message-ID: References: <20090814173138.GD21719@hplhtang> Mime-Version: 1.0 (Apple Message framework v936) 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 1Mc1YA-0006FP-Vc for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:30:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc1Y6-0006F9-I2 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:30:50 -0400 Received: from [199.232.76.173] (port=38045 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc1Y6-0006F6-CN for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:30:46 -0400 Received: from mail-ew0-f207.google.com ([209.85.219.207]:59912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mc1Y6-0003c6-21 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 14:30:46 -0400 Received: by ewy3 with SMTP id 3so2166322ewy.42 for ; Fri, 14 Aug 2009 11:30:45 -0700 (PDT) In-Reply-To: <20090814173138.GD21719@hplhtang> 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: Hsiu-Khuern Tang Cc: emacs-orgmode Fixed, thanks. - Carsten On Aug 14, 2009, at 7:31 PM, Hsiu-Khuern Tang wrote: > Hi Taru, > > In contrib/lisp/org-export-bibtex.el, the BiBTeX file has to match > the Emacs > regexp "\w+". So a line like > > #+BIBLIOGRAPHY: mybib_new > > will not work because of the underscore character in the filename. > (I suppose > the actual behavior depends on the local Emacs settings that affect > the "syntax > table".) May I propose changing the regexp to "[[:alnum:]_]+"? > > Initially, I was stumped by this because I thought \w was a > "regular" regexp > :), such as defined in sed, and would match underscores as well. > > -- > Best, > Hsiu-Khuern. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode