[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] TeX-electric-math not working?

From: Marcus Frings
Subject: Re: [Bug-AUCTeX] TeX-electric-math not working?
Date: Mon, 02 Sep 2013 11:58:16 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Hi Mosè.

* Mosè Giordano <address@hidden> wrote:

> Are you saying that that error is thrown also when `TeX-electric-math'
> is set to nil?  This is the default, in this case every people using

No, I expressed myself in a unclear manner, I'm sorry. With the default
"nil" everything is fine. But what I wanted to say is that when I use
the basic configuration from the other posting and then set TeX-electric-math 
by M-x
customize-variable to the other two availabe values "\(...\)" or "$...$"
I get this error.

> AUCTeX from git would run into that bug.  The configuration you
> mentioned is really simple, it shouldn't interfere with
> `TeX-insert-dollar' behavior. Can you track down what wrong argument
> the error refers to?  Without a recipe to reproduce your error I can't
> debug it by myself.

I can very easily reproduce it with exactly these steps:

1) I open Emacs with no configuration files loaded: emacs -q

2) In the scratch buffer I paste

(setq TeX-data-directory "~/.emacs.d/sources/auctex")
(add-to-list 'load-path "~/.emacs.d/sources/auctex")
(add-to-list 'load-path "~/.emacs.d/sources/auctex/preview")
(require 'info)
(add-to-list 'Info-additional-directory-list "~/.emacs.d/sources/auctex/doc")
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-macro-private '("~/texmf/"))
(setq TeX-auto-private '("~/.tex-el/"))
(setq TeX-auto-save t)
(setq TeX-save-query nil)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

and do M-x evaluate-buffer.

3) Then I open a new file /tmp/test.tex with the following most simple




%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

4) I use M-x customize-variable TeX-electric-math and choose the $$
option from the menu:

TeX-electric-math is a variable defined in `tex.el'.
Its value is '("$" . "$")
Original value was nil

5) I try to type $ between "\begin{document} \end{document}" and get:

call-interactively: Wrong type argument: char-or-string-p, quote

6) With M-x toggle-debug-on-error I see:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p quote)
  call-interactively(TeX-insert-dollar nil nil)

That's all. If I revert to nil I can type the dollar sign again in my
test document.

My Emacs is emacs-snapshot_2%3a20130831-1_i386.deb and "git pull" for
AUC TeX says "Already up-to-date".

I'll try again now with an older Emacs package and a complete new
checkout of AUC TeX.

Best regards,
"To call up a demon you must learn its name. Men dreamed that, once, but now it
is real in another way. You know that, Case. Your business is to learn the names
of programs, the long formal names, names the owners seek to conceal. True
names ..." - "A Turing code's not your name." - "Neuromancer", the boy said.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]