emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-bibtex does not work
@ 2011-11-29  5:28 Torsten Wagner
  2011-11-29 16:20 ` Eric Schulte
  2011-11-29 16:20 ` Eric Schulte
  0 siblings, 2 replies; 3+ messages in thread
From: Torsten Wagner @ 2011-11-29  5:28 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi all,

I finally converted all my BibTex references into a org file.
Now I face the problem that I can't generate a BibTeX file.
org-bibtex ask me for the filename and then it seems to be stuck in a
infinite loop.
Only way to get out of this is using C-g.
The BibTeX file never appeared.
setting the debugger to start on quit (setq debug-on-quit) results in

Debugger entered--Lisp error: (quit)
  bibtex-realign()
  bibtex-reformat()
  (progn (insert entry) (when tags (bibtex-beginning-of-entry) (if
(re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
(match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
(insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
(buffer-string))
  (unwind-protect (progn (insert entry) (when tags
(bibtex-beginning-of-entry) (if (re-search-forward
"keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char (match-end 1))
(insert ", ")) (bibtex-make-field "keywords" t t)) (insert (mapconcat
(function identity) tags ", "))) (bibtex-reformat) (buffer-string))
(and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(insert entry) (when tags (bibtex-beginning-of-entry) (if
(re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
(match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
(insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
(buffer-string)) (and (buffer-name temp-buffer) (kill-buffer
temp-buffer))))

followed by many many more lines.
I tried to export a single entry in a own buffer as well without
success. I skipped my entire emacs settings and used a bare-bone emacs
with exactly the same result.
As from the debugger it seems to be a problem of the internal bibtex
mode. However, I hope someone here is capable to help. I updated both
emacs and org-mode without luck

org-mode 7.7 (git build from today)
emacs GNU Emacs 24.0.91.1 (bzr build from today)

Would be helpfull already if someone could confirm whether it works at
the moment or whether it seems broken
Thanks

Torsten

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

* Re: org-bibtex does not work
  2011-11-29  5:28 org-bibtex does not work Torsten Wagner
@ 2011-11-29 16:20 ` Eric Schulte
  2011-11-29 16:20 ` Eric Schulte
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Schulte @ 2011-11-29 16:20 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: Org Mode Mailing List

Hi Torsten,

I've had a similar problem which I believe is due to an error in
bibtex.el.  In my case it was fixed by explicitly loading the bibtex.el
file which comes with Emacs.

Best -- Eric

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi all,
>
> I finally converted all my BibTex references into a org file.
> Now I face the problem that I can't generate a BibTeX file.
> org-bibtex ask me for the filename and then it seems to be stuck in a
> infinite loop.
> Only way to get out of this is using C-g.
> The BibTeX file never appeared.
> setting the debugger to start on quit (setq debug-on-quit) results in
>
> Debugger entered--Lisp error: (quit)
>   bibtex-realign()
>   bibtex-reformat()
>   (progn (insert entry) (when tags (bibtex-beginning-of-entry) (if
> (re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
> (match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
> (insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
> (buffer-string))
>   (unwind-protect (progn (insert entry) (when tags
> (bibtex-beginning-of-entry) (if (re-search-forward
> "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char (match-end 1))
> (insert ", ")) (bibtex-make-field "keywords" t t)) (insert (mapconcat
> (function identity) tags ", "))) (bibtex-reformat) (buffer-string))
> (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
>   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
> (insert entry) (when tags (bibtex-beginning-of-entry) (if
> (re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
> (match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
> (insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
> (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer
> temp-buffer))))
>
> followed by many many more lines.
> I tried to export a single entry in a own buffer as well without
> success. I skipped my entire emacs settings and used a bare-bone emacs
> with exactly the same result.
> As from the debugger it seems to be a problem of the internal bibtex
> mode. However, I hope someone here is capable to help. I updated both
> emacs and org-mode without luck
>
> org-mode 7.7 (git build from today)
> emacs GNU Emacs 24.0.91.1 (bzr build from today)
>
> Would be helpfull already if someone could confirm whether it works at
> the moment or whether it seems broken
> Thanks
>
> Torsten

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

* Re: org-bibtex does not work
  2011-11-29  5:28 org-bibtex does not work Torsten Wagner
  2011-11-29 16:20 ` Eric Schulte
@ 2011-11-29 16:20 ` Eric Schulte
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Schulte @ 2011-11-29 16:20 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: Org Mode Mailing List

Hi Torsten,

I've had a similar problem which I believe is due to an error in
bibtex.el.  In my case it was fixed by explicitly loading the bibtex.el
file which comes with Emacs.

Best -- Eric

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi all,
>
> I finally converted all my BibTex references into a org file.
> Now I face the problem that I can't generate a BibTeX file.
> org-bibtex ask me for the filename and then it seems to be stuck in a
> infinite loop.
> Only way to get out of this is using C-g.
> The BibTeX file never appeared.
> setting the debugger to start on quit (setq debug-on-quit) results in
>
> Debugger entered--Lisp error: (quit)
>   bibtex-realign()
>   bibtex-reformat()
>   (progn (insert entry) (when tags (bibtex-beginning-of-entry) (if
> (re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
> (match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
> (insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
> (buffer-string))
>   (unwind-protect (progn (insert entry) (when tags
> (bibtex-beginning-of-entry) (if (re-search-forward
> "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char (match-end 1))
> (insert ", ")) (bibtex-make-field "keywords" t t)) (insert (mapconcat
> (function identity) tags ", "))) (bibtex-reformat) (buffer-string))
> (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
>   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
> (insert entry) (when tags (bibtex-beginning-of-entry) (if
> (re-search-forward "keywords.*=.*{\\(.*\\)}" nil t) (progn (goto-char
> (match-end 1)) (insert ", ")) (bibtex-make-field "keywords" t t))
> (insert (mapconcat (function identity) tags ", "))) (bibtex-reformat)
> (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer
> temp-buffer))))
>
> followed by many many more lines.
> I tried to export a single entry in a own buffer as well without
> success. I skipped my entire emacs settings and used a bare-bone emacs
> with exactly the same result.
> As from the debugger it seems to be a problem of the internal bibtex
> mode. However, I hope someone here is capable to help. I updated both
> emacs and org-mode without luck
>
> org-mode 7.7 (git build from today)
> emacs GNU Emacs 24.0.91.1 (bzr build from today)
>
> Would be helpfull already if someone could confirm whether it works at
> the moment or whether it seems broken
> Thanks
>
> Torsten

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

end of thread, other threads:[~2011-11-29 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29  5:28 org-bibtex does not work Torsten Wagner
2011-11-29 16:20 ` Eric Schulte
2011-11-29 16:20 ` Eric Schulte

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