[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 fcd66d0: Keep vc-print-log from putting point at
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] emacs-26 fcd66d0: Keep vc-print-log from putting point at buffer end (Bug#31764) |
Date: |
Thu, 14 Jun 2018 19:19:54 -0400 (EDT) |
branch: emacs-26
commit fcd66d059cffbcfff8325304c2c100b64d28ae29
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Keep vc-print-log from putting point at buffer end (Bug#31764)
* lisp/vc/vc.el (vc-print-log-internal): Use `save-excursion' around
`vc-print-log-setup-buttons'.
---
lisp/vc/vc.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 93e9c25..41a76e0 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2256,8 +2256,9 @@ earlier revisions. Show up to LIMIT entries (non-nil
means unlimited)."
(vc-call-backend bk 'print-log files-arg buf shortlog
(when is-start-revision working-revision) limit))
(lambda (_bk _files-arg ret)
- (vc-print-log-setup-buttons working-revision
- is-start-revision limit ret))
+ (save-excursion
+ (vc-print-log-setup-buttons working-revision
+ is-start-revision limit ret)))
;; When it's nil, point really shouldn't move (bug#15322).
(when working-revision
(lambda (bk)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 fcd66d0: Keep vc-print-log from putting point at buffer end (Bug#31764),
Noam Postavsky <=