emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use of \w Emacs regexp in org-export-bibtex.el excludes BiBTeX filenames with underscore
@ 2009-08-14 17:31 Hsiu-Khuern Tang
  2009-08-14 18:30 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Hsiu-Khuern Tang @ 2009-08-14 17:31 UTC (permalink / raw)
  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use of \w Emacs regexp in org-export-bibtex.el excludes BiBTeX filenames with underscore
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-08-14 18:30 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-14 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).