Subject: bug#20515: 11.88; texmathp is void

From: Tassilo Horn <[email-masked]>
Date: Thu, 07 May 2015 08:30:07 +0200

Andreas Matthias <[email-masked]> writes:

Hi Andreas,

>    # cat foo.el
>    (require 'package)
>    (package-initialize)
>    (load "auctex.el" nil t t)
>
>    # emacs -Q -l foo.el
>
> Loading a TeX file and typing " yields:
>
>    Symbol's function definition is void: texmathp
>
> This happens with Emacs 24.5.
> It does not happen with Emacs 24.3.

When you use the ELPA package, you should not explicitly load auctex.el.

,----[ (info "(auctex)Installation") ]
| The simplest way of installing AUCTeX is by using the Emacs package
| manager integrated in Emacs 24 and greater (ELPA).  Simply do 'M-x
| package-list-packages RET', mark the auctex package for installation
| with 'i', and hit 'x' to execute the installation procedure.  That's
| all.
| 
|    The remainder of this section is about installing AUCTeX from a
| release tarball or from a checkout of the AUCTeX repository.
`----

With "That's all." and the next sentence, I wanted to make clear that
anything below (including loading auctex/preview-latex explicitly) does
not apply if you use the ELPA package.

By the way: I see you use the ELPA version, but why do you use such an
outdated version?  The current one is 11.88.5.

So could you please remove the explicit load, upgrade you auctex
package, and report back if the error is gone then?

Bye,
Tassilo