branch: externals/diff-hl
commit bdb36417e3dc990326567803831241199e266844
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    diff-hl--when-done: Use add-function
    
    So that 'diff-sentinel' is invoked anyway, when the buffer was created by
    'diff-no-select' (the flydiff mode). #271
---
 diff-hl.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/diff-hl.el b/diff-hl.el
index 598ee6e318..ef338f14fc 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -762,8 +762,9 @@ Return a list of line overlays used."
      ((eq (process-status proc) 'signal))
      ;; If a process is running, set the sentinel.
      ((eq (process-status proc) 'run)
-      (set-process-sentinel
-       proc
+      (add-function
+       :after
+       (process-sentinel proc)
        (lambda (proc _status)
          ;; Delegate to the parent cond for decision logic.
          (diff-hl--when-done buffer get-value callback proc))))

Reply via email to