[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6c014ae 15/62: Remove rx pcase form for compatibility
From: |
Ian Dunn |
Subject: |
[elpa] master 6c014ae 15/62: Remove rx pcase form for compatibility |
Date: |
Sat, 9 Dec 2017 14:33:58 -0500 (EST) |
branch: master
commit 6c014aecddf1be4be16e6096cad8dbf3690e1d53
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Remove rx pcase form for compatibility
* paced.el (paced-mode-symbol-p): New defun
(paced-test-dict-enable-condition): Use it instead of rx form.
---
paced.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/paced.el b/paced.el
index 067c41f..5a765ff 100644
--- a/paced.el
+++ b/paced.el
@@ -291,13 +291,17 @@ Has the same form as and takes priority over
(append paced-local-dict-enable-alist
paced-global-dict-enable-alist))
+(defun paced-mode-symbol-p (sym)
+ "Return non-nil if SYM is a mode symbol."
+ (string-match-p (rx "-mode" string-end) (symbol-name sym)))
+
(defun paced-test-dict-enable-condition (condition)
"Determines if CONDITION passes in the current buffer.
See `paced-global-dict-enable-alist' for an explanation."
(pcase condition
((and (pred symbolp)
- (app symbol-name (rx "-mode" string-end)))
+ (pred paced-mode-symbol-p))
(derived-mode-p condition))
((and (pred symbolp)
(pred boundp))
- [elpa] master updated (0775e8c -> 5b288be), Ian Dunn, 2017/12/09
- [elpa] master 9b61ee5 03/62: Added ede/proj-aux to bootstrap.sh, Ian Dunn, 2017/12/09
- [elpa] master 428098b 04/62: Added bzrignore file, Ian Dunn, 2017/12/09
- [elpa] master d854f3d 02/62: Fixed typos, Ian Dunn, 2017/12/09
- [elpa] master 52c8a88 10/62: Fixed usage of bzr send in documentation, Ian Dunn, 2017/12/09
- [elpa] master 262d99f 13/62: Added package requirements to paced.el, Ian Dunn, 2017/12/09
- [elpa] master 79c22c2 06/62: Added new customization options for paced-load-all-dictionaries, Ian Dunn, 2017/12/09
- [elpa] master e404950 14/62: Alias if-let* and when-let* for backwards compatibility, Ian Dunn, 2017/12/09
- [elpa] master 6c014ae 15/62: Remove rx pcase form for compatibility,
Ian Dunn <=
- [elpa] master ecb2f9d 12/62: Fixed up info title, Ian Dunn, 2017/12/09
- [elpa] master c369964 16/62: Reduce required Emacs version to 25.3, Ian Dunn, 2017/12/09
- [elpa] master de2260f 07/62: Documented the population commands, Ian Dunn, 2017/12/09
- [elpa] master febb200 08/62: Added function to submit a bug report, Ian Dunn, 2017/12/09
- [elpa] master b925c0b 17/62: Updated links in documentation, Ian Dunn, 2017/12/09
- [elpa] master 38979b5 18/62: Fixed up contributing documentation, Ian Dunn, 2017/12/09
- [elpa] master 4162bd4 22/62: Changed name of registered checker, Ian Dunn, 2017/12/09
- [elpa] master 302d4b4 28/62: Added convenience method for adding population commands, Ian Dunn, 2017/12/09
- [elpa] master 4824306 21/62: Make the registered dictionary map a hash table, Ian Dunn, 2017/12/09
- [elpa] master e751e4f 24/62: Update case-handling slot name in Documentation, Ian Dunn, 2017/12/09