emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <A1B58BF0-4E3C-4386-9997-2F33FD437893@gmail.com> (raw)
In-Reply-To: <20090814173138.GD21719@hplhtang>

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

      reply	other threads:[~2009-08-14 18:30 UTC|newest]

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

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=A1B58BF0-4E3C-4386-9997-2F33FD437893@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hsiu-khuern.tang@hp.com \
    /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).