[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex a82eb1690a 10/30: Restore point in `LaTeX-verbat
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex a82eb1690a 10/30: Restore point in `LaTeX-verbatim-p' |
Date: |
Thu, 7 Dec 2023 03:51:07 -0500 (EST) |
branch: externals/auctex
commit a82eb1690a24316857262bac96209f9278c06125
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Restore point in `LaTeX-verbatim-p'
* latex.el (LaTeX-verbatim-p): Don't move point when the optional
argument POS is non-nil.
* texmathp.el (texmathp): Remove now unnecessary `save-excursion'.
---
latex.el | 31 ++++++++++++++++---------------
texmathp.el | 2 +-
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/latex.el b/latex.el
index a3e297a884..7bada4224c 100644
--- a/latex.el
+++ b/latex.el
@@ -3868,21 +3868,22 @@ of the macro argument as cons."
The macro body (\"\\verb\") and its delimiters, including
optional argument if any, aren't considered as component of a
verbatim-like construct."
- (when pos (goto-char pos))
- (save-match-data
- ;; TODO: Factor out syntax propertize facility from font-latex.el
- ;; and re-implement as major mode feature. Then we can drop the
- ;; fallback code below.
- (if (eq TeX-install-font-lock 'font-latex-setup)
- (progn
- (syntax-propertize (point))
- (nth 3 (syntax-ppss)))
- ;; Fallback for users who stay away from font-latex.
- (or
- (let ((region (LaTeX-verbatim-macro-boundaries t)))
- (and region
- (<= (car region) (point) (cdr region))))
- (member (LaTeX-current-environment) (LaTeX-verbatim-environments))))))
+ (save-excursion
+ (when pos (goto-char pos))
+ (save-match-data
+ ;; TODO: Factor out syntax propertize facility from font-latex.el
+ ;; and re-implement as major mode feature. Then we can drop the
+ ;; fallback code below.
+ (if (eq TeX-install-font-lock 'font-latex-setup)
+ (progn
+ (syntax-propertize (point))
+ (nth 3 (syntax-ppss)))
+ ;; Fallback for users who stay away from font-latex.
+ (or
+ (let ((region (LaTeX-verbatim-macro-boundaries t)))
+ (and region
+ (<= (car region) (point) (cdr region))))
+ (member (LaTeX-current-environment)
(LaTeX-verbatim-environments)))))))
;;; Formatting
diff --git a/texmathp.el b/texmathp.el
index 1030ed858b..5631916ed0 100644
--- a/texmathp.el
+++ b/texmathp.el
@@ -327,7 +327,7 @@ See the variable `texmathp-tex-commands' about which
commands are checked."
;; is used stand-alone without latex.el provided by AUCTeX
;; (bug#61410):
(if (and (fboundp 'LaTeX-verbatim-p)
- (save-excursion (LaTeX-verbatim-p (cdr match))))
+ (LaTeX-verbatim-p (cdr match)))
(progn
(setq texmathp-why `(nil . ,(cdr match)))
(when (called-interactively-p 'any)
- [elpa] externals/auctex updated (bc75884db3 -> 24023ba246), Tassilo Horn, 2023/12/07
- [elpa] externals/auctex ebe0ef11d1 06/30: ; Revert "; * latex.el (LaTeX-completion-parse-args): Use `cl-flet'.", Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 2a959a1d43 13/30: Fix regexp, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 05d28dfe06 12/30: Improve check for verbatim content, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 8ae405b919 14/30: Save regexp groups, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex acacdc09a6 25/30: ; * tex.el (TeX-brace-count-line): Fix check order., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex b94c773c5d 19/30: ; Delete remainder, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 1792a41446 29/30: Move support for xparse macros into core, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex da07a5dcb2 01/30: Fix Texinfo mode with respect to interaction with RefTeX, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex a82eb1690a 10/30: Restore point in `LaTeX-verbatim-p',
Tassilo Horn <=
- [elpa] externals/auctex c196c69207 09/30: Update style/minted to package version 2.8, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 46f49aad81 02/30: Fix previous commit, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex f3bbff59ed 08/30: ; * style/fvextra.el ("fvextra"): Add missing macro., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 3f7742f95b 18/30: Process lambda expressions correctly, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex ed2f62ef80 21/30: * style/splitidx.el ("splitidx"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 8282b83210 04/30: ; Mention bumping Emacs version for ELPA, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 5d0f020b81 28/30: Add support for the refcount package, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 217b46b2cf 03/30: Allow `preview-scale-function' as a file-local variable, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex ecc0059120 05/30: ; * admin/release-process.org: Fix typos, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex a5599695b0 15/30: Save regexp groups, Tassilo Horn, 2023/12/07