From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Question about reftex mode in org-mode Date: Sat, 06 Apr 2013 23:55:19 +0200 Message-ID: <87hajjcojc.fsf@pank.iue.private> References: <515DC4AA.6050401@sift.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOb5P-0006u5-2a for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 17:55:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOb5N-0003QL-0o for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 17:55:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:58848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOb5M-0003Q4-LV for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 17:55:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UOb5J-00054a-JN for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 23:55:41 +0200 Received: from ip-pool-133.iue.it ([192.167.90.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Apr 2013 23:55:41 +0200 Received: from rasmus by ip-pool-133.iue.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Apr 2013 23:55:41 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Robert P. Goldman" writes: > Quite some time ago, I incorporated reftex into my use of org mode, per > a suggestion on Worg: > > ;;;--------------------------------------------------------------------------- > ;;; Use reftex with org-mode, per Worg > ;;;--------------------------------------------------------------------------- > > (autoload 'turn-on-reftx "reftex" "Turn on RefTeX mode." t) > (defun org-mode-reftex-setup () > (turn-on-reftex)) > (add-hook 'org-mode-hook 'org-mode-reftex-setup) > > Now I find that this has a bad behavior at least with Aquamacs: it can > cause attempts to use the menu bar to be interrupted by a cryptic popup > file selector that says "Master file:" > > This seems to be reftex trying to set a value for TeX-master. > > So maybe reftex is unhappy when it's not invoked inside of AucTeX (where > TeX-master is defined and set). > > Anyone else seen this? Have a solution (e.g., have org files assume > that TeX-master is t)? I haven't seen it. This is my setup: #+begin_src emacs-lisp (setq reftex-default-bibliography (quote ("~/documents/literature/lit.bib"))) (defun org-mode-reftex-setup () (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (make-local-variable 'reftex-cite-format) (setq reftex-cite-format 'org) (define-key org-mode-map (kbd "C-c )") 'reftex-citation)) (add-hook 'org-mode-hook 'org-mode-reftex-setup) (eval-after-load 'reftex-vars '(progn (add-to-list 'reftex-cite-format-builtin '(org "Org-mode citation" ((?\C-m . "[[cite:%l]]") (?t . "[[textcite:%l]]") (?p . "[[parencite:%l]]") (?s . "[[citepos:%l]]") (?a . "[[citeauthor:%l]]") (?y . "[[citeyear:%l]]") (?n . "%l") ;; the following depends on org-link-search-must-match-exact-headline (?o . "[[file:~/documents/literature/lit.org::*%t][%2a (%y). %T]]")))))) #+end_src -- A page of history is worth a volume of logic