branch: externals/orderless
commit f7be0fb8ee7f609ddd7bd8635e4491ce1833c063
Author: Omar AntolÃn Camarena <[email protected]>
Commit: Omar AntolÃn Camarena <[email protected]>
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.