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

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

[elpa] externals/greader 947297e764 1/3: Function `greader-dict--word-al


From: ELPA Syncer
Subject: [elpa] externals/greader 947297e764 1/3: Function `greader-dict--word-alternatives fixed.
Date: Tue, 23 Jul 2024 03:58:11 -0400 (EDT)

branch: externals/greader
commit 947297e7643fa2a5e97e0a2f1f188648d162d792
Author: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
Commit: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>

    Function `greader-dict--word-alternatives fixed.
    
    Documentation of command `greader-dict-add-entry' improved.
---
 greader-dict.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/greader-dict.el b/greader-dict.el
index f0365f9d67..bc3f8f1126 100644
--- a/greader-dict.el
+++ b/greader-dict.el
@@ -575,7 +575,7 @@ word, it will be added as a match.
 If neither the region is active nor point is on a word, simply asks
 for definition and substitution, without defaults.
 If called with prefix argument, ask for a match.
-In this case you can type a regular expression.
+In this case you can type a partial word or a regular expression.
 You can use regular expressions to, for example, craft filters instead
 of pronunciation rules.
 If the customizable variable
@@ -881,7 +881,7 @@ classified as words."
   (if-let ((alternatives text))
       (progn
        (setq alternatives nil)
-       (dolist (word (split-string text "\\W" t))
+       (dolist (word (split-string (substring-no-properties text) "\\W" t))
          (unless (member word alternatives)
            (push word alternatives)))
        (reverse alternatives))



reply via email to

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