bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] tex-5.502; TeX-command-list - renaming menu entries


From: David Reitter
Subject: [Bug-AUCTeX] tex-5.502; TeX-command-list - renaming menu entries
Date: Tue, 7 Jun 2005 09:13:33 +0100

Hi,

I've configured my TeX-command-list to show me a nicely structured menu, and while doing so I've renamed menu entries. For example, I have renamed "View" to "View PS", and "LaTeX" to "Compile with LaTeX".

The issue occurs when I then do C-c C-c and accept the default command. If it is "LaTeX" or "View", it'll fail with a "wrong type argument" error. (Originally reported by Robert Sloan on the Emacs / Aquamacs-bugs mailing lists.)

The reason for the given behavior is that you do a string-match over the command list, and you try to match a hard-coded string such as "View" with the menu entries. That has to fail when TeX-command-list is customized.

This could be easily fixed by making the default actions customizable.

Naming the commands with a symbol and looking it up (handling error cases where they can't be found because user has removed them from the menu) is another option, but I suppose you don't want to break compatibility with earlier versions!

Cheers
David



Emacs  : GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2005-06-04 on madonna - Aquamacs Distribution 0.9.2 beta-8
Package: tex-5.502

current state:
==============
(setq
AUCTeX-date "2005-04-10"
window-system 'mac
LaTeX-version "2e"
TeX-style-path '("style/" "auto/" "/Users/dr/BIB/style/" "/Users/dr/ BIB/auto/" "/Users/dr/Library/Application Support/Emacs/site-lisp/ auctex/style/"
          "/Users/dr/Library/Application Support/Emacs/var/auctex/")
TeX-auto-save nil
TeX-parse-self t
TeX-master nil
)





reply via email to

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