emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/orderless f7be0fb8ee 180/204: Make strict initialism in


From: ELPA Syncer
Subject: [elpa] externals/orderless f7be0fb8ee 180/204: Make strict initialism independent of syntax tables (fix #60)
Date: Tue, 11 Jan 2022 12:58:29 -0500 (EST)

branch: externals/orderless
commit f7be0fb8ee7f609ddd7bd8635e4491ce1833c063
Author: Omar Antolín Camarena <omar.antolin@gmail.com>
Commit: Omar Antolín Camarena <omar.antolin@gmail.com>

    Make strict initialism independent of syntax tables (fix #60)
    
    I think it's probably less surprising to use the immutable [:alpha:] rather 
than [:word:] which is up to the current syntax table.
---
 orderless.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/orderless.el b/orderless.el
index 72a8ac350a..21c669b9e1 100644
--- a/orderless.el
+++ b/orderless.el
@@ -220,11 +220,11 @@ the first word of the candidate.  If ANCHORED is `both' 
require
 that the first and last initials appear in the first and last
 words of the candidate, respectively."
   (orderless--separated-by
-   '(seq (zero-or-more word) word-end (zero-or-more (not alpha)))
+   '(seq (zero-or-more alpha) word-end (zero-or-more (not alpha)))
    (cl-loop for char across component collect `(seq word-start ,char))
    (when anchored '(seq (group buffer-start) (zero-or-more (not alpha))))
    (when (eq anchored 'both)
-     '(seq (zero-or-more word) word-end (zero-or-more (not alpha)) eol))))
+     '(seq (zero-or-more alpha) word-end (zero-or-more (not alpha)) eol))))
 
 (defun orderless-strict-initialism (component)
   "Match a COMPONENT as a strict initialism.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]