From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Use of \w Emacs regexp in org-export-bibtex.el excludes BiBTeX filenames with underscore Date: Fri, 14 Aug 2009 10:31:38 -0700 Message-ID: <20090814173138.GD21719@hplhtang> Reply-To: Hsiu-Khuern Tang Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mc0eg-0005Uj-Hm for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 13:33:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc0eb-0005Or-Th for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 13:33:30 -0400 Received: from [199.232.76.173] (port=37137 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc0eb-0005Ob-N3 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 13:33:25 -0400 Received: from gundega.hpl.hp.com ([192.6.19.190]:61903) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mc0ea-0000mH-W0 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 13:33:25 -0400 Content-Disposition: inline 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: Taru Karttunen Cc: emacs-orgmode 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.