[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3f7742f95b 18/30: Process lambda expressions cor
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3f7742f95b 18/30: Process lambda expressions correctly |
Date: |
Thu, 7 Dec 2023 03:51:08 -0500 (EST) |
branch: externals/auctex
commit 3f7742f95b41ccf159ffe1b2806e4d2638e4a4b8
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Process lambda expressions correctly
* latex.el (TeX-read-key-val, TeX-read-completing-read)
(TeX-read-completing-read-multiple, LaTeX-completion-parse-arg):
Check explicitly if the argument is a lambda expession and handle
it correctly.
---
latex.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/latex.el b/latex.el
index 5e8845554c..a18592d3ce 100644
--- a/latex.el
+++ b/latex.el
@@ -3308,7 +3308,8 @@ which see."
complete)
(cond ((and (listp key-val-alist)
(symbolp (car key-val-alist))
- (fboundp (car key-val-alist)))
+ (fboundp (car key-val-alist))
+ (not (eq (car key-val-alist) 'lambda)))
(funcall (car key-val-alist)))
((functionp key-val-alist)
(funcall key-val-alist))
@@ -3396,7 +3397,8 @@ INHERIT-INPUT-METHOD are passed to `completing-read',
which see."
complete)
(cond ((and (listp collection)
(symbolp (car collection))
- (fboundp (car collection)))
+ (fboundp (car collection))
+ (not (eq (car collection) 'lambda)))
(funcall (car collection)))
((functionp collection)
(funcall collection))
@@ -3460,7 +3462,8 @@ INHERIT-INPUT-METHOD are passed to
complete)
(cond ((and (listp table)
(symbolp (car table))
- (fboundp (car table)))
+ (fboundp (car table))
+ (not (eq (car table) 'lambda)))
(funcall (car table)))
((functionp table)
(funcall table))
@@ -7854,8 +7857,9 @@ ARG is the entry for the current argument in buffer
stored in
(fun1 (lambda (elt)
(cond ((and (listp elt)
(symbolp (car elt))
- (fboundp (car elt)))
- ;; It is a function call:
+ (fboundp (car elt))
+ (not (eq (car elt) 'lambda)))
+ ;; It is a named function and not anonymous:
(funcall (car elt)))
;; It is a function object
((functionp elt)
- [elpa] externals/auctex 05d28dfe06 12/30: Improve check for verbatim content, (continued)
- [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, 2023/12/07
- [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 <=
- [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
- [elpa] externals/auctex 26d64689d3 22/30: * style/titleps.el ("titleps"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 24023ba246 30/30: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex 38a883d37c 17/30: Save regexp groups in style/minted.el, Tassilo Horn, 2023/12/07
- [elpa] externals/auctex def388b90a 20/30: * style/pythontex.el ("pythontex"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/12/07