auctex-devel
[Top][All Lists]
Advanced

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

Re: Fix of TeX-remove-style (Re: TeX-remove-style-hook is local)


From: Tassilo Horn
Subject: Re: Fix of TeX-remove-style (Re: TeX-remove-style-hook is local)
Date: Wed, 17 Jun 2020 18:10:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:

>>> I just did it for latex.el on the new core-latex-in-style-hooks
>>> branch.
>>
>> What a speedy work! :-)
>
> Actually, it was mostly cut & paste. ;-)
>
> I'll do the same for plain-TeX, and I'd welcome some testing.

I did some more testing and it doesn't work better and in the case of
plain-TeX loses all symbols so that we would need another hack to
somehow always run the plain-TeX-core style hook.

So let's consider that a failed experiment.  On master, I've done

--8<---------------cut here---------------start------------->8---
diff --git a/latex.el b/latex.el
index 7701eb37..db0af471 100644
--- a/latex.el
+++ b/latex.el
@@ -2303,8 +2303,8 @@ OPTIONAL and IGNORE are ignored."
                    (not (y-or-n-p "Find class yourself? "))
                  TeX-arg-input-file-search)
                (prog2
-                 (message "Searching for LaTeX classes...")
-                 (TeX-search-files-by-type 'texinputs 'global t t)
+                   (message "Searching for LaTeX classes...")
+                   (TeX-search-files-by-type 'texinputs 'global t t)
                  (message "Searching for LaTeX classes...done"))
              LaTeX-style-list)))
     (setq style (completing-read
--8<---------------cut here---------------end--------------->8---

as you've suggested.

Bye,
Tassilo



reply via email to

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