* Error with org-mode-reftex-setup after upgrade
@ 2014-05-16 8:20 Loris Bennett
2014-05-19 14:36 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Loris Bennett @ 2014-05-16 8:20 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I have just upgraded to version Org-mode version 8.2.6
(8.2.6-18-gaaae4a-elpaplus @ /home/loris/.emacs.d/elpa/org-plus-contrib-20140512/
From Thomas Dye's description of how to create an annotated bibliography
(http://orgmode.org/worg/exporters/anno-bib-template-worg.html) I'm
using:
,-------------------------------------------------
| (defun org-mode-reftex-setup ()
| (interactive)
| (load-library "reftex")
| (and (buffer-file-name)
| (file-exists-p (buffer-file-name))
| (reftex-parse-all)))
|
| (add-hook 'org-mode-hook 'org-mode-reftex-setup)
`-------------------------------------------------
Following the update, this now seems to throw the error:
,--------------------------------------------------------------------
| Loading reftex...done
| File mode specification error: (wrong-type-argument sequencep dwim)
`--------------------------------------------------------------------
Any ideas?
Cheers,
Loris
--
This signature is currently under construction.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error with org-mode-reftex-setup after upgrade
2014-05-16 8:20 Error with org-mode-reftex-setup after upgrade Loris Bennett
@ 2014-05-19 14:36 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-05-19 14:36 UTC (permalink / raw)
To: Loris Bennett; +Cc: emacs-orgmode
Hi Loris,
"Loris Bennett" <loris.bennett@fu-berlin.de> writes:
> ,-------------------------------------------------
> | (defun org-mode-reftex-setup ()
> | (interactive)
> | (load-library "reftex")
> | (and (buffer-file-name)
> | (file-exists-p (buffer-file-name))
> | (reftex-parse-all)))
> |
> | (add-hook 'org-mode-hook 'org-mode-reftex-setup)
> `-------------------------------------------------
>
> Following the update, this now seems to throw the error:
>
> ,--------------------------------------------------------------------
> | Loading reftex...done
> | File mode specification error: (wrong-type-argument sequencep dwim)
> `--------------------------------------------------------------------
>
> Any ideas?
You need to use this defun instead:
(defun org-mode-reftex-setup ()
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(setq TeX-master t)
(reftex-parse-all))
(define-key org-mode-map (kbd "C-c )") 'reftex-citation))
setting TeX-master to t locally.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-19 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-16 8:20 Error with org-mode-reftex-setup after upgrade Loris Bennett
2014-05-19 14:36 ` Bastien
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).