branch: main
commit a085165d4c264ca13c37e4356e29287e3d51d44d
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    ; * latex.el (LaTeX-xparse-macro-parse): Fix comments.
---
 latex.el | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/latex.el b/latex.el
index 3a32c4e7..797513f2 100644
--- a/latex.el
+++ b/latex.el
@@ -2091,10 +2091,8 @@ TYPE is one of the symbols mac or env."
                 (t nil))))
       (if (eq type 'env)
           ;; Parsed enviroments: If we are Renew'ing or Delare'ing, we
-          ;; delete the enviroment first from `LaTeX-environment-list'
-          ;; before adding the new one.  We have to sort the value of
-          ;; `LaTeX-environment-list' by running the function of the
-          ;; same name:
+          ;; delete the enviroment first from `LaTeX-auto-environment'
+          ;; before adding the new one:
           (progn
             (when (member what '("Renew" "Declare"))
               (setq LaTeX-auto-environment
@@ -2105,9 +2103,8 @@ TYPE is one of the symbols mac or env."
                              `(,name LaTeX-env-args ,@(reverse args))
                            (list name))))
         ;; Parsed macros: If we are Renew'ing or Delare'ing, we delete
-        ;; the macros first from `TeX-symbol-list' before adding the
-        ;; new ones.  We have to sort the value of `TeX-symbol-list'
-        ;; by running the function of the same name:
+        ;; the macros first from `TeX-auto-symbol' before adding the new
+        ;; ones:
         (when (member what '("Renew" "Declare"))
           (setq TeX-auto-symbol
                 (assq-delete-all (car (assoc name TeX-auto-symbol))

Reply via email to