emacs BibTex-Modus speichert automatisch eine .el-Datei

444
shelper

Mein Emacs 24.3 verfügt über den BibTex-Modus, der beim Bearbeiten der .bib-Datei automatisch aktiviert wird. Ich habe ein seltsames Problem: Immer wenn ich Änderungen an einer .bib-Datei vornehme, wurde ein Ordner mit dem Namen "auto" generiert, und eine .el-Datei wird dort im Ordner gespeichert. Wenn ich zum Beispiel eine Datei mit dem Namen abc.bib bearbeite, wird im Ordner "auto" eine abs.el-Datei erstellt, deren Inhalt wie folgt lautet:

(TeX-add-style-hook "abc"  (lambda ()  (LaTeX-add-bibitems))) 

Wofür ist das? und wie kann ich das deaktivieren?

Vielen Dank

0

1 Antwort auf die Frage

1
lawlist

Meine beste Vermutung ist, dass es von kommt tex.el. Ich denke nicht, dass das Verhalten deaktiviert werden kann und die von AUCTeX vorgeschlagene Funktionalität beibehalten wird. Es sieht jedoch so aus, als könnten Sie den Pfad möglicherweise ändern, um stattdessen in einen temporären Ordner zu wechseln - z. B. /tmp/auto-, aber Sie müssen sich unbedingt alle Funktionen in AUCTeX ansehen, die die Variable verwenden, TeX-auto-localund diese Pfade entsprechend anpassen (wenn erforderlich).

(defcustom TeX-auto-local "auto" "*Directory containing automatically generated TeX information.  This correspond to TeX macros found in the current directory, and must be relative to that." :group 'TeX-file :type 'string) 

Hier ist eine schnelle Wortsuche für diese Variable:

/Users/HOME/.0.data/.0.emacs/elpa/auctex/tex.el: 1993 :type 'directory) 1994  1995: (defcustom TeX-auto-local "auto" 1996 "*Directory containing automatically generated TeX information. 1997  .... 2121  2122 (defcustom TeX-auto-private 2123: (list (expand-file-name TeX-auto-local 2124 (or (and (boundp 'user-emacs-directory) 2125 (concat user-emacs-directory "auctex/")) .... 2155 (append (list TeX-auto-global TeX-style-global) 2156 TeX-auto-private TeX-style-private 2157: (list TeX-auto-local TeX-style-local))) 2158 path) 2159 "List of directories to search for AUCTeX style files. 2160 Per default the list is built from the values of the variables 2161 `TeX-auto-global', `TeX-style-global', `TeX-auto-private', 2162: `TeX-style-private', `TeX-auto-local', and `TeX-style-local'." 2163 :group 'TeX-file 2164 :type '(repeat (file :format "%v"))) .... 2198 "./")) 2199 (TeX-style-path (append (list (expand-file-name 2200: TeX-auto-local dir) 2201 (expand-file-name 2202: TeX-auto-local master-dir) 2203 (expand-file-name 2204 TeX-style-local dir) .... 3167 (if TeX-auto-untabify 3168 (untabify (point-min) (point-max))) 3169: (if (and TeX-auto-save TeX-auto-local) 3170 (let* ((file (expand-file-name 3171 (concat 3172: (file-name-as-directory TeX-auto-local) 3173 (TeX-strip-extension nil TeX-all-extensions t) 3174 ".el")