Mercurial > emacs
diff lisp/vc.el @ 83022:abaf78268f22
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-51
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-52
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-62
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 23 Jan 2004 21:51:08 +0000 |
parents | 82c3b4da43ca 97c8dfb8be3d |
children | 03a73693678e |
line wrap: on
line diff
--- a/lisp/vc.el Fri Jan 23 21:48:58 2004 +0000 +++ b/lisp/vc.el Fri Jan 23 21:51:08 2004 +0000 @@ -7,7 +7,7 @@ ;; Maintainer: Andre Spiegel <spiegel@gnu.org> ;; Keywords: tools -;; $Id: vc.el,v 1.363 2004/01/21 11:05:51 uid65624 Exp $ +;; $Id: vc.el,v 1.365 2004/01/23 11:20:55 uid65624 Exp $ ;; This file is part of GNU Emacs. @@ -2816,9 +2816,6 @@ (defvar vc-annotate-parent-file nil) (defvar vc-annotate-parent-rev nil) (defvar vc-annotate-parent-display-mode nil) -(make-local-variable 'vc-annotate-parent-file) -(make-local-variable 'vc-annotate-parent-rev) -(make-local-variable 'vc-annotate-parent-display-mode) (defconst vc-annotate-font-lock-keywords ;; The fontification is done by vc-annotate-lines instead of font-lock. @@ -3038,9 +3035,10 @@ vc-annotate-version)) (save-excursion (set-buffer temp-buffer-name) - (setq vc-annotate-parent-file bfn) - (setq vc-annotate-parent-rev vc-annotate-version) - (setq vc-annotate-parent-display-mode vc-annotate-display-mode)) + (set (make-local-variable 'vc-annotate-parent-file) bfn) + (set (make-local-variable 'vc-annotate-parent-rev) vc-annotate-version) + (set (make-local-variable 'vc-annotate-parent-display-mode) + vc-annotate-display-mode)) ;; Don't use the temp-buffer-name until the buffer is created ;; (only after `with-output-to-temp-buffer'.) @@ -3135,19 +3133,6 @@ (vc-version-diff vc-annotate-parent-file prev-rev rev-at-line)) (switch-to-buffer "*vc-diff*")))))) -(defun vc-current-line () - "Return the current buffer's line number." - (let ((oldpoint (point)) start) - (save-excursion - (save-restriction - (goto-char (point-min)) - (widen) - (forward-line 0) - (setq start (point)) - (goto-char oldpoint) - (forward-line 0) - (1+ (count-lines (point-min) (point))))))) - (defun vc-annotate-warp-version (revspec) "Annotate the version described by REVSPEC. @@ -3159,7 +3144,7 @@ revision." (if (not (equal major-mode 'vc-annotate-mode)) (message "Cannot be invoked outside of a vc annotate buffer") - (let* ((oldline (vc-current-line)) + (let* ((oldline (line-at-pos)) (revspeccopy revspec) (newrev nil)) (cond @@ -3191,7 +3176,7 @@ (switch-to-buffer (car (car (last vc-annotate-buffers)))) (goto-line (min oldline (progn (goto-char (point-max)) (previous-line) - (vc-current-line)))))))) + (line-at-pos)))))))) (defun vc-annotate-car-last-cons (a-list) "Return car of last cons in association list A-LIST."