[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 1e39768287 14/18: Robustify in-buffer completion
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 1e39768287 14/18: Robustify in-buffer completion for surrounding comments |
Date: |
Sun, 17 Mar 2024 07:37:13 -0400 (EDT) |
branch: externals/auctex
commit 1e397682876ff9ff2bfe393fcd36480e46019992
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Robustify in-buffer completion for surrounding comments
* latex.el (LaTeX-completion-find-argument-boundaries): Fix the
function name.
Ignore comments when finding possible boundaries of an argument.
(LaTeX--arguments-completion-at-point): Use the new name.
---
latex.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/latex.el b/latex.el
index 36177c4847..1f84598d4e 100644
--- a/latex.el
+++ b/latex.el
@@ -8079,8 +8079,8 @@ ARG is the entry for the current argument in buffer
stored in
(t nil)))))
-(defun LaTeX-completion-find-argument-boundries (&rest args)
- "Find the boundries of the current LaTeX argument.
+(defun LaTeX-completion-find-argument-boundaries (&rest args)
+ "Find the boundaries of the current LaTeX argument.
ARGS are characters passed to the function
`TeX-search-syntax-table'. If ARGS are omitted, all characters
defined in the variable `LaTeX-completion-macro-delimiters' are
@@ -8088,7 +8088,8 @@ taken."
(save-restriction
(narrow-to-region (line-beginning-position -40)
(line-beginning-position 40))
- (let ((args (or args (LaTeX-completion-macro-delimiters))))
+ (let ((args (or args (LaTeX-completion-macro-delimiters)))
+ (parse-sexp-ignore-comments t))
(condition-case nil
(with-syntax-table (apply #'TeX-search-syntax-table args)
(scan-lists (point) 1 1))
@@ -8100,7 +8101,7 @@ Completion for macros starting with `\\' is provided by
the
function `TeX--completion-at-point' which should come first in
`completion-at-point-functions'."
;; Exit if not inside an argument or in a comment:
- (when (and (LaTeX-completion-find-argument-boundries)
+ (when (and (LaTeX-completion-find-argument-boundaries)
(not (nth 4 (syntax-ppss))))
(let ((entry (LaTeX-what-macro)))
(cond ((and entry
- [elpa] externals/auctex updated (f124fe7d28 -> 0a477ebe9e), Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 0f8901dc5d 01/18: Set up outline mode variables early (bug#69254), Tassilo Horn, 2024/03/17
- [elpa] externals/auctex b47a44611f 05/18: * style/ltx-base.el ("ltx-base"): Add macros from fntguide.pdf., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 04814a0ea5 06/18: Track the latest version of usrguide.tex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 806bdb01ca 09/18: Improve usage of texmathp.el outside AUCTeX, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 89df2bbf59 12/18: ; * doc/changes.texi: Announce `LaTeX-flymake-chktex-options'., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex e2d2827e39 03/18: ; * style/ltx-base.el ("ltx-base"): Fix last change., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 1e39768287 14/18: Robustify in-buffer completion for surrounding comments,
Tassilo Horn <=
- [elpa] externals/auctex 406eb61fc1 13/18: Make user query before killing a process optional, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 8d34ef21e6 02/18: Track the latest version of clsguide.tex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 212bb3a3a1 11/18: ; * tex.el (TeX-process-check): Fix typo (bug#34645)., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 03a5aac0d7 08/18: Improve guessing a name for the current header line, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex ff03bccb38 07/18: Add an entry about previewing of TikZ pictures, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 2ee39c4e26 17/18: ; * latex.el: Fix copyright year after last revert., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex cfc3d68ccc 04/18: Add some missing macros, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 509a71b436 16/18: Revert "Mark options as buffer-local with the :local keyword", Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 0a477ebe9e 18/18: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 91073c6b79 10/18: Add new custom option `LaTeX-flymake-chktex-options', Tassilo Horn, 2024/03/17