emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com>
To: Taru Karttunen <taruti@taruti.net>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <20090814173138.GD21719@hplhtang> (raw)

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.

             reply	other threads:[~2009-08-14 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 17:31 Hsiu-Khuern Tang [this message]
2009-08-14 18:30 ` Use of \w Emacs regexp in org-export-bibtex.el excludes BiBTeX filenames with underscore Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090814173138.GD21719@hplhtang \
    --to=hsiu-khuern.tang@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=taruti@taruti.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).