aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-08-20 16:52:57 +0200
committerLars Ingebrigtsen2020-08-20 16:52:57 +0200
commitbd0523901bd022ae94503dcedda3fc879e6d0702 (patch)
tree99b66239c7e069ac6253da4cbf862415b10dca21
parentb19b942f7228cf9536f3cf5b279b93a83d2a7d64 (diff)
downloademacs-bd0523901bd022ae94503dcedda3fc879e6d0702.tar.gz
emacs-bd0523901bd022ae94503dcedda3fc879e6d0702.zip
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.
-rw-r--r--lisp/vc/diff-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index bd5ac9b9a62..aff20b6e6e9 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -1988,8 +1988,7 @@ revision of the file otherwise."
1988 (diff-find-source-location other-file reverse))) 1988 (diff-find-source-location other-file reverse)))
1989 (pop-to-buffer buf) 1989 (pop-to-buffer buf)
1990 (goto-char (+ (car pos) (cdr src))) 1990 (goto-char (+ (car pos) (cdr src)))
1991 (when buffer (next-error-found buffer (current-buffer))) 1991 (when buffer (next-error-found buffer (current-buffer))))))
1992 (diff-hunk-status-msg line-offset (xor reverse switched) t))))
1993 1992
1994 1993
1995(defun diff-current-defun () 1994(defun diff-current-defun ()