[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)))))))
- [elpa] externals/ggtags updated (17a121a -> 1c43705), Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags a0809f5 1/9: Bump version and require Emacs >= 25, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags c737181 2/9: Fix #158: ggtags-fontify-code improvement suggestion, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags 8840213 3/9: Correctly set `process-mark` in `ggtags-global-output`,
Stefan Monnier <=
- [elpa] externals/ggtags c536ec5 5/9: Cache number of lines from previous output in `ggtags-global-output`, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags 6696764 6/9: Use `count-lines` instead of `line-number-at-pos`, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags 2f538aa 7/9: Add xref support, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags 1c43705 9/9: Update docs to use `universal-ctags` instead of `exuberant-ctags`, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags 4d90000 8/9: Fix #163: properly construct the --nearness arg to global, Stefan Monnier, 2021/03/26
- [elpa] externals/ggtags a2906b7 4/9: Allow `ggtags-global-output` to run the process synchronously, Stefan Monnier, 2021/03/26