1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Don't message the hunk status when just going to it

* lisp/vc/diff-mode.el (diff-goto-source): Don't output a status
about the hunk just when jumping to it (bug#38370).  This would
output "Hunk already applied" when browsing diffs.
This commit is contained in:
Lars Ingebrigtsen 2020-08-20 16:52:57 +02:00
parent b19b942f72
commit bd0523901b

View File

@ -1988,8 +1988,7 @@ revision of the file otherwise."
(diff-find-source-location other-file reverse)))
(pop-to-buffer buf)
(goto-char (+ (car pos) (cdr src)))
(when buffer (next-error-found buffer (current-buffer)))
(diff-hunk-status-msg line-offset (xor reverse switched) t))))
(when buffer (next-error-found buffer (current-buffer))))))
(defun diff-current-defun ()