branch: externals/auctex
commit 787279682d44b345363b26fa7bc878266353789f
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    * tex-info.el (TeX-texinfo-mode): Set `add-log-current-defun-function' 
locally.
---
 tex-info.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tex-info.el b/tex-info.el
index b1fd236..f7da017 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -702,8 +702,8 @@ value of `Texinfo-mode-hook'."
 
   (when (and (boundp 'add-log-current-defun-function)
             (fboundp 'texinfo-current-defun-name))
-    (setq add-log-current-defun-function
-         #'texinfo-current-defun-name))
+    (set (make-local-variable 'add-log-current-defun-function)
+        #'texinfo-current-defun-name))
 
   (TeX-add-symbols
    '("acronym" "Acronym")

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to