I am having a totally bizarre problem with typing quote marks in tex documents in emacs. I work as an editor, so I receive tex source files from a publisher and I work on them. I work in emacs 24.3.1 with auctex 11.87, on Ubuntu 14.04.
A few days ago, the following behavior began: when I type the double-quote key " in the source buffer, emacs inserts guillemets, \og and \fg{}, rather than `` and '', which is what usually happens when pressing " in LaTeX-mode.
Here is as much information as I could gather:
- This only happens with files I receive from the publisher. It doesn't happen with pre-existing tex files on my machine, nor with new ones that I create.
- It happens even when I start emacs with the
emacs -qcommand, so that it doesn't read my.emacsfile. - It still happens if I copy or move the file to another location from the command line.
- It still happens if I copy or move the file to another location from the command line, then delete its contents within emacs.
- It doesn't happen if I copy the file contents into a new buffer from within emacs.
- It still happens if I delete the
.auxand.logfiles. - The
"key is bound to the commandTeX-insert-quote. - The values of the variables
TeX-open-quoteandTeX-close-quoteare``and'', respectively, as usual.
I conclude from this that emacs is reading some "secret" information associated to the file that I don't know about. It is nothing in my settings and seems to have nothing to do with the file contents.
Any thoughts/suggestions/fixes much appreciated.
Update: The problem went away for a while, then reasserted itself. As per giordano's suggestion in the comments, I checked the value of TeX-quote-language and found that it is:
("french" "\\og "
(lambda nil (concat "\\fg" (unless (member "xspace" TeX-active-styles)"{}"))) nil)
(However, the value of TeX-quote-language-alist is nil.) I think this is somehow being caused by the custom class file that I need to use for my work. Is there some way to just add a line in my .emacs that will override this behavior? I just want my normal quotes back!!
\usepackage[french]{babel}– egreg May 13 '14 at 21:15% Local variables:. – Alex May 13 '14 at 21:19TeX-quote-language-alistvariable. – giordano May 15 '14 at 08:43