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

    Handle optional args delimited with <..>
    
    * latex.el (LaTeX-completion-candidates-key-val): Consider "<" as
    delimiter for an optional argument correctly.
---
 latex.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/latex.el b/latex.el
index 6361ef3ed9..4e56a3b0f2 100644
--- a/latex.el
+++ b/latex.el
@@ -7779,7 +7779,7 @@ KEY-VALS is an alist of key-values pairs."
           ;; doesn't travel enough, so we have to use
           ;; `skip-chars-backward' and limit the search to the
           ;; beginning of the previous line:
-          (skip-chars-backward "^,[{" (line-beginning-position 0))
+          (skip-chars-backward "^,[{<" (line-beginning-position 0))
           ;; Make sure we're not looking at a comment:
           (when (looking-at-p (concat "[ \t]*" TeX-comment-start-regexp))
             (forward-line))
@@ -7795,7 +7795,7 @@ KEY-VALS is an alist of key-values pairs."
       ;; We have to look for a key:
       (save-excursion
         ;; Find the beginning
-        (skip-chars-backward "^,[{" (line-beginning-position 0))
+        (skip-chars-backward "^,[{<" (line-beginning-position 0))
         ;; Make sure we're not looking at a comment:
         (when (looking-at-p (concat "[ \t]*" TeX-comment-start-regexp))
           (forward-line))

Reply via email to