Function: diff-goto-old-source
diff-goto-old-source is an interactive and byte-compiled function
defined in diff-mode.el.gz.
Signature
(diff-goto-old-source)
Documentation
Like diff-goto-source, but with diff-jump-to-old-file always non-nil.
Jump to corresponding line of the old source file.
Under version control (usually: in a *vc-diff* buffer), jump to source
code corresponding to one of the diff's old or new revisions as follows:
- if point is on an old changed line (i.e. a removed line),
jump to the old source file in the manner of C-x v ~ (vc-revision-other-window)
- otherwise, jump to the new source file,
either by visiting the version of the file in the working tree
(when the new source file is the working tree's),
or in the manner of C-x v ~.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff-goto-old-source ()
"Like `diff-goto-source', but with `diff-jump-to-old-file' always non-nil.
Jump to corresponding line of the old source file.
Under version control (usually: in a *vc-diff* buffer), jump to source
code corresponding to one of the diff's old or new revisions as follows:
- if point is on an old changed line (i.e. a removed line),
jump to the old source file in the manner of \\[vc-revision-other-window]
- otherwise, jump to the new source file,
either by visiting the version of the file in the working tree
(when the new source file is the working tree's),
or in the manner of \\[vc-revision-other-window]."
(interactive)
(let ((diff-jump-to-old-file t))
(diff-goto-source nil nil)))