Function: diff-mouse-goto-source

diff-mouse-goto-source is a function alias and interactive for diff-goto-source, defined in diff-mode.el.gz.

Signature

(diff-mouse-goto-source &optional OTHER-FILE EVENT)

Documentation

Jump to the corresponding source line.

By default, jump to the new source file. With a prefix argument (when called from Lisp, with optional argument OTHER-FILE non-nil), jump to the old source file. If diff-jump-to-old-file is non-nil then the meaning of the prefix argument (or, when called from Lisp, the meaning of optional argument OTHER-FILE) is reversed: a prefix argument (respectively, OTHER-FILE non-nil) means to jump to the new source file, and the lack of one
(respectively, OTHER-FILE nil) means to jump to the old source file.
In addition, if you supply a prefix argument bigger than 8 (for example with C-u (universal-argument) C-u (universal-argument)), the value of diff-jump-to-old-file is toggled for the remainder of this Emacs session (i.e., set to non-nil if nil, or set to nil if non-nil). When called from Lisp this toggling happens when the value of optional argument OTHER-FILE considered as a prefix argument has a numeric value bigger than 8.

Under version control, jumping to the old file means jumping to the old revision of the file in the manner of C-x v ~ (vc-revision-other-window), and occurs only when point is on an old changed line (i.e. a removed line).

Key Bindings

Aliases

diff-mouse-goto-source