[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 8c3e73c4bb 07/37: Unbreak in-buffer completion f
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 8c3e73c4bb 07/37: Unbreak in-buffer completion for Emacs prior to v.28 |
Date: |
Wed, 11 Oct 2023 03:41:54 -0400 (EDT) |
branch: externals/auctex
commit 8c3e73c4bb978561ed846c1c28216c796fe25f6c
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Unbreak in-buffer completion for Emacs prior to v.28
* tex.el (TeX-always): New compatibilty function for Emacs prior
to version 28.
* latex.el (LaTeX-completion-parse-args): Use the new function.
---
latex.el | 2 +-
tex.el | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/latex.el b/latex.el
index 8cb9699d42..85c5c6af03 100644
--- a/latex.el
+++ b/latex.el
@@ -7724,7 +7724,7 @@ or `LaTeX-environment-list' and returns it."
;; cases, but will also fail for example in hyperref.el. This
;; decision should revisited at a later stage:
(when (assq 'TeX-arg-conditional arg-list)
- (cl-letf (((symbol-function 'y-or-n-p) #'always))
+ (cl-letf (((symbol-function 'y-or-n-p) #'TeX-always))
(while (and arg-list
(setq arg (car arg-list)))
(if (and (listp arg) (eq (car arg) 'TeX-arg-conditional))
diff --git a/tex.el b/tex.el
index 7974698069..a85b8ef9d5 100644
--- a/tex.el
+++ b/tex.el
@@ -4779,6 +4779,16 @@ Return nil if ELT is not a member of LIST."
(make-obsolete 'TeX-assoc
"use (assoc-string KEY LIST t) instead." "AUCTeX 13.0")
+(if (>= emacs-major-version 28)
+ (defalias 'TeX-always #'always)
+ (defun TeX-always (&rest _arguments)
+ "Ignore ARGUMENTS, do nothing and return t.
+This function accepts any number of arguments in ARGUMENTS.
+Also see `ignore'.
+
+This is a compatibility function for Emacs versions prior to v.28."
+ t))
+
(defun TeX-match-buffer (n)
"Return the substring corresponding to the N'th match.
See `match-data' for details."
- [elpa] externals/auctex a228137f66 24/37: Don't count braces in verbatim constructs for indentation, (continued)
- [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, 2023/10/11
- [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 <=
- [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
- [elpa] externals/auctex 34a94db2ae 29/37: * tex.el (plain-TeX-auto-regexp-list): Save regexp groups., Tassilo Horn, 2023/10/11