On 2014-10-25 12:34, "Charles C. Berry" <ccbe...@ucsd.edu> writes:

> Further, changing that regexp to
>
>  "^[^%\n]*\\\\usepackage.*{biblatex}"
>
> and byte-compiling reftex-parse.el.gz seems to make the problem go away.

The auctex developers have fixed the issue, which will be available in
the next version of emacs (since reftex is bundled).

In the meantime, they suggested to add the following in a configuration
file:

#+begin_src emacs-lisp
(with-eval-after-load 'reftex-parse
  (defun reftex-using-biblatex-p ()
    "Return non-nil if we are using biblatex rather than bibtex."
    (if (boundp 'TeX-active-styles)
        ;; the sophisticated AUCTeX way
        (member "biblatex" TeX-active-styles)
      ;; poor-man's check...
      (save-excursion
        (re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t)))))
#+end_src

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

Attachment: signature.asc
Description: PGP signature

Reply via email to