[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 104e66c 15/44: Fix bugs in evaluation of `rx' an
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 104e66c 15/44: Fix bugs in evaluation of `rx' and `rx-to-strings' |
Date: |
Tue, 26 Mar 2019 12:57:26 -0400 (EDT) |
branch: externals/relint
commit 104e66c28923bafcf9dbef1d1c0fa6f7b9a0c14a
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Fix bugs in evaluation of `rx' and `rx-to-strings'
Found by trawling ntcmd.el, on a suggestion by Pierre Téchoueyres.
---
trawl.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/trawl.el b/trawl.el
index 4298210..0ae230c 100644
--- a/trawl.el
+++ b/trawl.el
@@ -311,13 +311,13 @@
;; rx, rx-to-string: check for (eval ...) constructs first, then apply.
((eq (car form) 'rx)
- (if (trawl--rx-safe (cdr form))
+ (if (trawl--rx-safe (cons 'seq (cdr form)))
(trawl--eval (macroexpand form))
'no-value))
((eq (car form) 'rx-to-string)
- (if (trawl--rx-safe (cdr form))
- (let ((arg (trawl--eval (cadr form))))
+ (let ((arg (trawl--eval (cadr form))))
+ (if (trawl--rx-safe arg)
(if (eq arg 'no-value)
'no-value
(apply 'rx-to-string (list arg))))
- [elpa] externals/relint 15c799e 35/44: Evaluate calls to functions defined in the same file., (continued)
- [elpa] externals/relint 15c799e 35/44: Evaluate calls to functions defined in the same file., Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 2d1f488 32/44: mapcar on non-list sequence, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint af745bb 30/44: Update the package description. Increment version to 1.4, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint e1b1ef9 22/44: Run in two phases on each file, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 7a1b632 33/44: Add wildcard-to-regexp as 'pure' function, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint f6fb8e6 31/44: Sundry cosmetic fixes, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 151dbb8 23/44: Handle some destructive list functions, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 187d586 27/44: Scan arguments to `skip-chars-{forward, backward}', Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 5af5466 26/44: Scan string-trim arguments, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 4dbcad9 24/44: Increment version to 1.2, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 104e66c 15/44: Fix bugs in evaluation of `rx' and `rx-to-strings',
Mattias Engdegård <=
- [elpa] externals/relint 3f8509a 13/44: Add more functions to check for regexp arguments, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint f8878ca 16/44: Report rx errors in the result buffer, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 8e37762 18/44: Protect against improper lists in function calls, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 66522ca 12/44: Increment version to 1.1, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 683f31b 28/44: Increment version to 1.3, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint ac5d0cf 25/44: Add more safe functions, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 02bf0ba 21/44: Use explicit list of pure functions, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 7d0e177 20/44: Rewrite the higher-order function handling, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint be3979a 19/44: Check TRIM argument of `split-string' as well, Mattias Engdegård, 2019/03/26
- [elpa] externals/relint 5143edf 17/44: Fix indentation accidents, Mattias Engdegård, 2019/03/26