Malabarba / latex-extra

A series of usability improvements for Emacs latex-mode.
GNU General Public License v3.0
69 stars 14 forks source link

latex-extra shadows AUCTeX's own `TeX-command-run-all` #26

Closed duetosymmetry closed 6 years ago

duetosymmetry commented 6 years ago

As of AUCTeX version 11.89 (Nov. 2015), there is already a package command on C-c C-a which executes TeX-command-run-all. latex-extra should test for the AUCTeX version number, and should only install C-c C-a if the version number is less than 11.89.

Malabarba commented 6 years ago

That's great to know. It would be even better (and easier) to just check if the command is fboundp before defining the function. Would you like to try a PR?

duetosymmetry commented 6 years ago

I don't have the elisp skills for that. The extent of my abilities would be to duplicate the code for, say, latex/override-fill-map to say latex/override-run-all-map.

Malabarba commented 6 years ago

That won't be necessary. It's just a matter of wrapping the defun in a (unless (fboundp 'TeX...)...).

I'll try to do it when I get a chance.

Malabarba commented 6 years ago

Fixed.