auctex-diffs
[Top][All Lists]
Advanced

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

master 5343cf2e: Be aware of comments in docTeX-mode


From: Arash Esbati
Subject: master 5343cf2e: Be aware of comments in docTeX-mode
Date: Fri, 5 Apr 2024 16:45:30 -0400 (EDT)

branch: master
commit 5343cf2ec39f34805353f572b9f993e5a30c2784
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Be aware of comments in docTeX-mode
    
    * latex.el (LaTeX-completion-find-argument-boundaries): Don't
    ignore comments in docTeX-mode.
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index 98fe005b..c5965b05 100644
--- a/latex.el
+++ b/latex.el
@@ -8091,7 +8091,7 @@ taken."
     (narrow-to-region (line-beginning-position -40)
                       (line-beginning-position  40))
     (let ((args (or args (LaTeX-completion-macro-delimiters)))
-          (parse-sexp-ignore-comments t))
+          (parse-sexp-ignore-comments (not (eq major-mode 'docTeX-mode))))
       (condition-case nil
           (with-syntax-table (apply #'TeX-search-syntax-table args)
             (scan-lists (point) 1 1))



reply via email to

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