aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-10-04 18:38:04 +0000
committerStefan Monnier2002-10-04 18:38:04 +0000
commit27373ce1182ff73e987e3799b3cd33fff2544ba0 (patch)
tree74376fff6e59fd2374ba226220e1a1a28aa98fca
parent15092da1f12bee3c343ada5d9633b6ff4a38f73c (diff)
downloademacs-27373ce1182ff73e987e3799b3cd33fff2544ba0.tar.gz
emacs-27373ce1182ff73e987e3799b3cd33fff2544ba0.zip
(vc-rcs-show-log-entry): Delete.
-rw-r--r--lisp/vc-rcs.el33
1 files changed, 1 insertions, 32 deletions
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el
index 53c842dda8c..3ad9f6fdcbb 100644
--- a/lisp/vc-rcs.el
+++ b/lisp/vc-rcs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-rcs.el,v 1.25 2002/07/19 13:27:44 spiegel Exp $ 8;; $Id: vc-rcs.el,v 1.26 2002/09/04 20:49:35 spiegel Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -492,37 +492,6 @@ Needs RCS 5.6.2 or later for -M."
492 "Get change log associated with FILE." 492 "Get change log associated with FILE."
493 (vc-do-command nil 0 "rlog" (vc-name file))) 493 (vc-do-command nil 0 "rlog" (vc-name file)))
494 494
495(defun vc-rcs-show-log-entry (version)
496 (when (re-search-forward
497 ;; also match some context, for safety
498 (concat "----\nrevision " version
499 "\\(\tlocked by:.*\n\\|\n\\)date: ") nil t)
500 ;; set the display window so that
501 ;; the whole log entry is displayed
502 (let (start end lines)
503 (beginning-of-line) (forward-line -1) (setq start (point))
504 (if (not (re-search-forward "^----*\nrevision" nil t))
505 (setq end (point-max))
506 (beginning-of-line) (forward-line -1) (setq end (point)))
507 (setq lines (count-lines start end))
508 (cond
509 ;; if the global information and this log entry fit
510 ;; into the window, display from the beginning
511 ((< (count-lines (point-min) end) (window-height))
512 (goto-char (point-min))
513 (recenter 0)
514 (goto-char start))
515 ;; if the whole entry fits into the window,
516 ;; display it centered
517 ((< (1+ lines) (window-height))
518 (goto-char start)
519 (recenter (1- (- (/ (window-height) 2) (/ lines 2)))))
520 ;; otherwise (the entry is too large for the window),
521 ;; display from the start
522 (t
523 (goto-char start)
524 (recenter 0))))))
525
526(defun vc-rcs-diff (file &optional oldvers newvers) 495(defun vc-rcs-diff (file &optional oldvers newvers)
527 "Get a difference report using RCS between two versions of FILE." 496 "Get a difference report using RCS between two versions of FILE."
528 (if (not oldvers) (setq oldvers (vc-workfile-version file))) 497 (if (not oldvers) (setq oldvers (vc-workfile-version file)))