Hi,
I would expect that the whole of a bibtex entry would be inserted when
asked to do so but sometimes what happens is that the entry is
terminated at a closing "}", depending on what comes after it.
e.g.
expect: A critical appraisal of the {ABC}
get: A critical appraisal of the {ABC
A minimal example follows.
# starting like this:
emacs -Q -l reftexBug.el
# reftexBug.bib contains:
@article{no_work,
title = {A critical appraisal of the {ABC}}}
@article{still_no_work,
title = {A critical appraisal of the {ABC} }}
@article{this_works,
title = {A critical appraisal of the {ABC}a}}
@article{and_this_works,
title = {A critical appraisal of the {ABC}.}}
# reftexBug.el contains:
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(setq reftex-default-bibliography (quote("reftexBug.bib")))
(defun org-mode-reftex-setup ()
(setq TeX-master t)
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all)
(progn
(reftex-parse-all)
(reftex-set-cite-format
'((?t . "%t")))))
(define-key org-mode-map (kbd "C-c )") 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
- open a new org file 'C-x f a.org RET'
- press 'C-c )' choose 't' to insert a title
- type 'no_work RET'
results in: "A critical appraisal of the {ABC"
I would have expected: "A critical appraisal of the {ABC}"
Thanks,
Myles
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex