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

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

[elpa] externals/greader c53edf4f80 1/2: greader--call-functions-after-g


From: ELPA Syncer
Subject: [elpa] externals/greader c53edf4f80 1/2: greader--call-functions-after-get-of-sentence: Change.
Date: Wed, 31 Jan 2024 00:57:57 -0500 (EST)

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

    greader--call-functions-after-get-of-sentence: Change.
    
    Now the lambda returns "nil" alwais.
    The abnormal hook "greader-after-get-sentence-functions" is intended for
    accumulate the text that the various functions in the chain provide
    change, and the "run-hook-wrapped" function returns prematurely if
    the wrapper returns t, as I understand it.
---
 greader.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/greader.el b/greader.el
index f633ad689b..7e0374585f 100644
--- a/greader.el
+++ b/greader.el
@@ -6,7 +6,7 @@
 ;; Author: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>
 ;; Keywords: tools, accessibility
 
-;; Version: 0.8.1
+;; Version: 0.8.2
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
@@ -82,8 +82,8 @@ Return SENTENCE, eventually modified by the functions."
     (run-hook-wrapped 'greader-after-get-sentence-functions
                       (lambda (func)
                         (when (fboundp func)
-                         (setq result (or (funcall func result)
-                                          sentence)))))
+                         (setq result (funcall func result))
+                         nil)))
     result))
 
 (defvar greader-before-read-hook nil



reply via email to

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