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

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

[elpa] externals/ggtags 8840213 3/9: Correctly set `process-mark` in `gg


From: Stefan Monnier
Subject: [elpa] externals/ggtags 8840213 3/9: Correctly set `process-mark` in `ggtags-global-output`
Date: Fri, 26 Mar 2021 22:46:20 -0400 (EDT)

branch: externals/ggtags
commit 88402133ba1241d7d83b6afba7e7aa29cc901d4e
Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
Commit: Leo Liu <sdl.web@gmail.com>

    Correctly set `process-mark` in `ggtags-global-output`
    
    This is needed when the custom filter function of the subprocess created by
    `ggtags-global-output` is called multiple times. The filter function needs 
to
    explicitly set the `process-mark` after inserting new output otherwise 
future
    calls will insert output at the same starting location as previous calls.
---
 ggtags.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ggtags.el b/ggtags.el
index a61ae7d..7293a26 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1993,6 +1993,7 @@ When finished invoke CALLBACK in BUFFER with process exit 
status."
                         (with-current-buffer (process-buffer proc)
                           (goto-char (process-mark proc))
                           (insert string)
+                          (set-marker (process-mark proc) (point))
                           (when (and (> (line-number-at-pos (point-max)) 
cutoff)
                                      (process-live-p proc))
                             (interrupt-process (current-buffer)))))))



reply via email to

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