diff options
| author | Sam Steingold | 2004-03-25 15:39:03 +0000 |
|---|---|---|
| committer | Sam Steingold | 2004-03-25 15:39:03 +0000 |
| commit | 5217a76a0ba390795450b1bef08672202c9d9f4e (patch) | |
| tree | 7af6d1a92719797d19162ab5eac4ade638b95d88 | |
| parent | ead147301f7cff3640f82c44d14339677c34237e (diff) | |
| download | emacs-5217a76a0ba390795450b1bef08672202c9d9f4e.tar.gz emacs-5217a76a0ba390795450b1bef08672202c9d9f4e.zip | |
(vc-print-log): backend-function may be a byte-compiled object, not a lambda
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 23 |
2 files changed, 18 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 20c1871c673..f9597cdbe4d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-03-25 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc.el (vc-print-log): Fixed a bug in the last patch: | ||
| 4 | backend-function may be a byte-compiled object, not a lambda | ||
| 5 | |||
| 1 | 2004-03-25 Juri Linkov <juri@jurta.org> | 6 | 2004-03-25 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * descr-text.el (describe-property-list): Add a button | 8 | * descr-text.el (describe-property-list): Add a button |
diff --git a/lisp/vc.el b/lisp/vc.el index ca9b5be1e81..4951bc1cd6e 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 8 | ;; Keywords: tools | 8 | ;; Keywords: tools |
| 9 | 9 | ||
| 10 | ;; $Id: vc.el,v 1.369 2004/03/21 15:42:14 spiegel Exp $ | 10 | ;; $Id: vc.el,v 1.370 2004/03/23 21:00:36 monnier Exp $ |
| 11 | 11 | ||
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | 13 | ||
| @@ -2335,15 +2335,18 @@ If FOCUS-REV is non-nil, leave the point at that revision." | |||
| 2335 | (interactive) | 2335 | (interactive) |
| 2336 | (vc-ensure-vc-buffer) | 2336 | (vc-ensure-vc-buffer) |
| 2337 | (let* ((file buffer-file-name) | 2337 | (let* ((file buffer-file-name) |
| 2338 | (print-log-args-length | 2338 | (backend-function |
| 2339 | (length (cadr (symbol-function | 2339 | (symbol-function |
| 2340 | (vc-find-backend-function (vc-backend file) | 2340 | (vc-find-backend-function (vc-backend file) 'print-log))) |
| 2341 | 'print-log)))))) | 2341 | (print-log-args |
| 2342 | (if (byte-code-function-p backend-function) | ||
| 2343 | (aref backend-function 0) | ||
| 2344 | (cadr backend-function)))) | ||
| 2342 | (or focus-rev (setq focus-rev (vc-workfile-version file))) | 2345 | (or focus-rev (setq focus-rev (vc-workfile-version file))) |
| 2343 | ;; Don't switch to the output buffer before running the command, | 2346 | ;; Don't switch to the output buffer before running the command, |
| 2344 | ;; so that any buffer-local settings in the vc-controlled | 2347 | ;; so that any buffer-local settings in the vc-controlled |
| 2345 | ;; buffer can be accessed by the command. | 2348 | ;; buffer can be accessed by the command. |
| 2346 | (if (> print-log-args-length 1) | 2349 | (if (cdr print-log-args) |
| 2347 | (progn | 2350 | (progn |
| 2348 | (vc-call print-log file "*vc-change-log*") | 2351 | (vc-call print-log file "*vc-change-log*") |
| 2349 | (set-buffer "*vc-change-log*")) | 2352 | (set-buffer "*vc-change-log*")) |
| @@ -3063,7 +3066,7 @@ colors. `vc-annotate-background' specifies the background color." | |||
| 3063 | (set (make-local-variable 'vc-annotate-parent-rev) vc-annotate-version) | 3066 | (set (make-local-variable 'vc-annotate-parent-rev) vc-annotate-version) |
| 3064 | (set (make-local-variable 'vc-annotate-parent-display-mode) | 3067 | (set (make-local-variable 'vc-annotate-parent-display-mode) |
| 3065 | vc-annotate-display-mode)) | 3068 | vc-annotate-display-mode)) |
| 3066 | 3069 | ||
| 3067 | ;; Don't use the temp-buffer-name until the buffer is created | 3070 | ;; Don't use the temp-buffer-name until the buffer is created |
| 3068 | ;; (only after `with-output-to-temp-buffer'.) | 3071 | ;; (only after `with-output-to-temp-buffer'.) |
| 3069 | (setq vc-annotate-buffers | 3072 | (setq vc-annotate-buffers |
| @@ -3118,7 +3121,7 @@ versions after." | |||
| 3118 | (vc-annotate-warp-version rev-at-line)))))) | 3121 | (vc-annotate-warp-version rev-at-line)))))) |
| 3119 | 3122 | ||
| 3120 | (defun vc-annotate-revision-previous-to-line () | 3123 | (defun vc-annotate-revision-previous-to-line () |
| 3121 | "Visit the annotation of the version before the version at line." | 3124 | "Visit the annotation of the version before the version at line." |
| 3122 | (interactive) | 3125 | (interactive) |
| 3123 | (if (not (equal major-mode 'vc-annotate-mode)) | 3126 | (if (not (equal major-mode 'vc-annotate-mode)) |
| 3124 | (message "Cannot be invoked outside of a vc annotate buffer") | 3127 | (message "Cannot be invoked outside of a vc annotate buffer") |