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

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

[nongnu] elpa/doc-show-inline daa99f0773 07/12: Fix repeat not being set


From: ELPA Syncer
Subject: [nongnu] elpa/doc-show-inline daa99f0773 07/12: Fix repeat not being set for the initial timer
Date: Thu, 7 Jul 2022 11:58:57 -0400 (EDT)

branch: elpa/doc-show-inline
commit daa99f0773937870e9405a117760566bda419546
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix repeat not being set for the initial timer
    
    The intention for this timer is it repeats until there is nothing left
    to do.
    
    Currently this doesn't cause problems, however this is useful
    in supporting extracting only a subset doc-strings in the future.
---
 doc-show-inline.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/doc-show-inline.el b/doc-show-inline.el
index a96b409146..c17f782f99 100644
--- a/doc-show-inline.el
+++ b/doc-show-inline.el
@@ -730,6 +730,11 @@ XREF-BACKEND is the back-end used to find this symbol."
       ;; The buffer has been deleted, so cancel the timer directly.
       (cancel-timer this-timer))
     (t
+      ;; Needed since the initial time might have been 0.0.
+      ;; Ideally this wouldn't need to be set every time.
+      (when doc-show-inline--idle-timer
+        (timer-set-idle-time doc-show-inline--idle-timer 
doc-show-inline-idle-delay t))
+
       (with-current-buffer buf
         (cond
           ((null (get-buffer-window buf t))
@@ -924,7 +929,8 @@ When IS-INTERACTIVE is true, use 
`doc-show-inline-idle-delay-init'."
           0.0)
         (t
           doc-show-inline-idle-delay-init))
-      nil)))
+      ;; Repeat.
+      t)))
 
 (defun doc-show-inline-mode-disable ()
   "Turn off option `doc-show-inline-mode' for the current buffer."



reply via email to

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