[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 95d7a81f40 20/37: Fix "Honor file local variable
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 95d7a81f40 20/37: Fix "Honor file local variables" (bug#65750) |
Date: |
Wed, 11 Oct 2023 03:41:56 -0400 (EDT) |
branch: externals/auctex
commit 95d7a81f401858af6c2b7f1b038dca67c54b25f3
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix "Honor file local variables" (bug#65750)
* latex.el (TeX-latex-mode): Keep `LaTeX-paragraph-commands-regexp' in
sync with `LaTeX-paragraph-commands' so that setting
`LaTeX-paragraph-commands' in the file local variables works as
expected.
Fix typo in comment.
* context.el (ConTeXt-mode-common-initialization): Defer setting
`LaTeX-paragraph-commands-regexp' after `run-mode-hook' as well.
---
context.el | 11 +++++++----
latex.el | 8 +++++++-
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/context.el b/context.el
index 7920b6d3ea..173fbf5c9a 100644
--- a/context.el
+++ b/context.el
@@ -1858,8 +1858,9 @@ that is, you do _not_ have to cater for this yourself by
adding \\\\\\=' or $."
;; Paragraph formatting
(set (make-local-variable 'LaTeX-syntactic-comments) nil)
- (set (make-local-variable 'LaTeX-paragraph-commands-regexp)
- (ConTeXt-paragraph-commands-regexp))
+ ;; Moved after `run-mode-hooks'. (bug#65750)
+ ;; (set (make-local-variable 'LaTeX-paragraph-commands-regexp)
+ ;; (ConTeXt-paragraph-commands-regexp))
(set (make-local-variable 'paragraph-ignore-fill-prefix) t)
(set (make-local-variable 'fill-paragraph-function) #'LaTeX-fill-paragraph)
(set (make-local-variable 'adaptive-fill-mode) nil)
@@ -1917,8 +1918,10 @@ that is, you do _not_ have to cater for this yourself by
adding \\\\\\=' or $."
(mapconcat #'identity ConTeXt-item-list "\\|")
"\\)\\>")))
- ;; Don't do locally-bound test for `paragraph-start'. See comments
- ;; in similar part in latex.el.
+ ;; Don't do locally-bound test for `LaTeX-paragraph-commands-regexp'
+ ;; and `paragraph-start'. See comments in similar part in latex.el.
+ (setq-local LaTeX-paragraph-commands-regexp
+ (ConTeXt-paragraph-commands-regexp))
(setq paragraph-start
(concat
"[ \t]*\\("
diff --git a/latex.el b/latex.el
index da2eaac67a..548b18a912 100644
--- a/latex.el
+++ b/latex.el
@@ -8009,7 +8009,7 @@ of `LaTeX-mode-hook'."
(run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook)
;; Don't overwrite the value the user set by hooks or file
- ;; (directory) variables.
+ ;; (directory) local variables.
(or (local-variable-p 'outline-regexp)
(setq-local outline-regexp (LaTeX-outline-regexp t)))
(or (local-variable-p 'outline-heading-alist)
@@ -8018,6 +8018,12 @@ of `LaTeX-mode-hook'."
(cons (concat "\\" (nth 0 x)) (nth 1 x)))
LaTeX-section-list)))
+ ;; Keep `LaTeX-paragraph-commands-regexp' in sync with
+ ;; `LaTeX-paragraph-commands' in case the latter is updated by
+ ;; hooks or file (directory) local variables.
+ (and (local-variable-p 'LaTeX-paragraph-commands)
+ (setq-local LaTeX-paragraph-commands-regexp
+ (LaTeX-paragraph-commands-regexp-make)))
;; Don't do locally-bound test for `paragraph-start' because it
;; makes little sense; Style files casually call this function and
;; overwrite it unconditionally. Users who need per-file
- [elpa] externals/auctex 90960e2be9 21/37: ; * .gitignore: Ignore Finder files on macOS., (continued)
- [elpa] externals/auctex 90960e2be9 21/37: ; * .gitignore: Ignore Finder files on macOS., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 846cce4378 36/37: Fix documentations about Texinfo mode, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex d486947cd8 10/37: Enable LaTeX abbrevs in docTeX mode buffer., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex a228137f66 24/37: Don't count braces in verbatim constructs for indentation, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 75702683d0 37/37: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 8e4043a899 08/37: ; * latex.el (LaTeX-completion-parse-args): Use `cl-flet'., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 95163c6602 14/37: ; Fix typo and spacing in Texinfo document, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex e2f18de580 23/37: ; * auctex.el.in: Provide the final product., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex f69211af62 03/37: Fix context nl mode, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 7b1d4156b2 32/37: * latex.el (LaTeX-auto-counter-regexp-list): Save regexp groups., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 95d7a81f40 20/37: Fix "Honor file local variables" (bug#65750),
Tassilo Horn <=
- [elpa] externals/auctex d9a6c248d0 35/37: ; Minor improvement of documentation, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 91da27754b 13/37: Keep preview images when killing indirect buffer (bug#65462), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 8c3e73c4bb 07/37: Unbreak in-buffer completion for Emacs prior to v.28, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex aabf144dfb 22/37: Arrange indent of tabular-like environments (bug#65648), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex c290376d5d 15/37: Allow programmatic folding, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 454f02a588 25/37: Take care of temporal buffers (bug#65912), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 0df824d5d2 19/37: Remove menu title inconsistency, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex fe3ef154cd 09/37: Support verbatim shorthands defined with fancyvrb package, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex bb5e6c0a27 27/37: Remove let-binding for `max-specpdl-size', Tassilo Horn, 2023/10/11
- [elpa] externals/auctex ad81644cf1 26/37: ; * tex.el (TeX-brace-count-line): Fix last change., Tassilo Horn, 2023/10/11