















| author | Arash Esbati <arash@gnu.org> | 2026-08-28 08:53:53 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-08-28 08:53:53 +0200 |
| commit | eeafe67a8865efa80505fd6ee4268007b41c4be1 (patch) | |
| tree | bc62641ccc558f1142c38c98785dc73c8eb0fd85 | |
| parent | 04f246a03d4e475b1de391b8c267a7ebddd50ed1 (diff) | |
Fix 'syntax-propertize because of narrowing!' errorexternals/auctex
* tex.el (TeX-find-macro-boundaries): Syntax-propertize before narrowing. (Bug#81718)
| -rw-r--r-- | tex.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tex.el b/tex.el
index 069b76c9f5c..9bbfefe3078 100644
--- a/tex.el
+++ b/tex.el
@@ -5827,6 +5827,9 @@ returns non-nil, then no further macro arguments are consumed."
;; environments including gathered similarly.
(save-restriction
(when lower-bound
+ ;; `syntax-propertize' can't widen so make sure it won't
+ ;; need to (bug#81718).
+ (syntax-propertize lower-bound)
(narrow-to-region lower-bound (point-max)))
(let ((orig-point (point))
start-point)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。