Mercurial > emacs
comparison lisp/diff-mode.el @ 32143:299f601ca8ba
(diff-goto-source):
Update call to `diff-hunk-status-msg' to reflect new REV variable.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 04 Oct 2000 21:29:59 +0000 |
parents | 161c2ec9f5b2 |
children | 3e97369732ac |
comparison
equal
deleted
inserted
replaced
32142:7fc69e4d84b5 | 32143:299f601ca8ba |
---|---|
2 | 2 |
3 ;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
6 ;; Keywords: patch diff | 6 ;; Keywords: patch diff |
7 ;; Revision: $Id: diff-mode.el,v 1.26 2000/10/02 06:49:21 miles Exp $ | 7 ;; Revision: $Id: diff-mode.el,v 1.27 2000/10/03 18:36:36 monnier Exp $ |
8 | 8 |
9 ;; This file is part of GNU Emacs. | 9 ;; This file is part of GNU Emacs. |
10 | 10 |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | 11 ;; GNU Emacs is free software; you can redistribute it and/or modify |
12 ;; it under the terms of the GNU General Public License as published by | 12 ;; it under the terms of the GNU General Public License as published by |
1072 (let ((rev (not (save-excursion (beginning-of-line) (looking-at "[-<]"))))) | 1072 (let ((rev (not (save-excursion (beginning-of-line) (looking-at "[-<]"))))) |
1073 (destructuring-bind (buf line-offset pos src dst &optional switched) | 1073 (destructuring-bind (buf line-offset pos src dst &optional switched) |
1074 (diff-find-source-location other-file rev) | 1074 (diff-find-source-location other-file rev) |
1075 (pop-to-buffer buf) | 1075 (pop-to-buffer buf) |
1076 (goto-char (+ pos (cdr src))) | 1076 (goto-char (+ pos (cdr src))) |
1077 (diff-hunk-status-msg line-offset (not switched) t)))) | 1077 (diff-hunk-status-msg line-offset (diff-xor rev switched) t)))) |
1078 | 1078 |
1079 | 1079 |
1080 (defun diff-current-defun () | 1080 (defun diff-current-defun () |
1081 "Find the name of function at point. | 1081 "Find the name of function at point. |
1082 For use in `add-log-current-defun-function'." | 1082 For use in `add-log-current-defun-function'." |