diff options
| author | Stefan Monnier | 2007-05-08 04:26:41 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-05-08 04:26:41 +0000 |
| commit | 45fd3a00715e631c6ce2632e3241b7f0d9724f0a (patch) | |
| tree | 5ca0c5e58e59c0e996c166d60a3a86238eb37275 /lisp | |
| parent | 6e1504ad818d5dae59bdcbac62fbdbf444a989fd (diff) | |
| download | emacs-45fd3a00715e631c6ce2632e3241b7f0d9724f0a.tar.gz emacs-45fd3a00715e631c6ce2632e3241b7f0d9724f0a.zip | |
Ensure that update-changelog issues an error when used with
a backend that does not implement it.
(vc-update-changelog-rcs2log): Rename from vc-default-update-changelog.
Remove `backend' argument. Use expand-file-name.
(vc-cvs-update-changelog, vc-rcs-update-changelog): New aliases.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/vc.el | 10 |
2 files changed, 19 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 61090012471..d51f6875343 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2007-05-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc.el: Ensure that update-changelog issues an error when used with | ||
| 4 | a backend that does not implement it. | ||
| 5 | (vc-update-changelog-rcs2log): Rename from vc-default-update-changelog. | ||
| 6 | Remove `backend' argument. Use expand-file-name. | ||
| 7 | (vc-cvs-update-changelog, vc-rcs-update-changelog): New aliases. | ||
| 8 | |||
| 9 | * progmodes/python.el (python-end-of-block): Revert last change. | ||
| 10 | (python-end-of-statement): Make sure we move *forward*. | ||
| 11 | |||
| 1 | 2007-05-08 David Reitter <david.reitter@gmail.com> | 12 | 2007-05-08 David Reitter <david.reitter@gmail.com> |
| 2 | 13 | ||
| 3 | * progmodes/python.el (python-guess-indent): Check non-nullness | 14 | * progmodes/python.el (python-guess-indent): Check non-nullness |
| @@ -13668,8 +13679,8 @@ | |||
| 13668 | 13679 | ||
| 13669 | 2006-01-29 Edward O'Connor <ted@oconnor.cx> | 13680 | 2006-01-29 Edward O'Connor <ted@oconnor.cx> |
| 13670 | 13681 | ||
| 13671 | * emulation/viper.el (viper-major-mode-modifier-list): Add | 13682 | * emulation/viper.el (viper-major-mode-modifier-list): |
| 13672 | insert-state and vi-state entries for erc-mode. | 13683 | Add insert-state and vi-state entries for erc-mode. |
| 13673 | (viper-go-away, viper-set-hooks): Add and remove | 13684 | (viper-go-away, viper-set-hooks): Add and remove |
| 13674 | viper-comint-mode-hook from erc-mode-hook as appropriate. | 13685 | viper-comint-mode-hook from erc-mode-hook as appropriate. |
| 13675 | 13686 | ||
diff --git a/lisp/vc.el b/lisp/vc.el index 450bfb3c938..a65e698669e 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -2909,7 +2909,11 @@ log entries should be gathered." | |||
| 2909 | (vc-call-backend (vc-responsible-backend default-directory) | 2909 | (vc-call-backend (vc-responsible-backend default-directory) |
| 2910 | 'update-changelog args)) | 2910 | 'update-changelog args)) |
| 2911 | 2911 | ||
| 2912 | (defun vc-default-update-changelog (backend files) | 2912 | (defalias 'vc-cvs-update-changelog 'vc-update-changelog-rcs2log) |
| 2913 | (defalias 'vc-rcs-update-changelog 'vc-update-changelog-rcs2log) | ||
| 2914 | ;; FIXME: This should probably be moved to vc-rcs.el and replaced in | ||
| 2915 | ;; vc-cvs.el by code using cvs2cl. | ||
| 2916 | (defun vc-update-changelog-rcs2log (files) | ||
| 2913 | "Default implementation of update-changelog. | 2917 | "Default implementation of update-changelog. |
| 2914 | Uses `rcs2log' which only works for RCS and CVS." | 2918 | Uses `rcs2log' which only works for RCS and CVS." |
| 2915 | ;; FIXME: We (c|sh)ould add support for cvs2cl | 2919 | ;; FIXME: We (c|sh)ould add support for cvs2cl |
| @@ -2950,9 +2954,7 @@ Uses `rcs2log' which only works for RCS and CVS." | |||
| 2950 | (mapcar | 2954 | (mapcar |
| 2951 | (lambda (f) | 2955 | (lambda (f) |
| 2952 | (file-relative-name | 2956 | (file-relative-name |
| 2953 | (if (file-name-absolute-p f) | 2957 | (expand-file-name f odefault))) |
| 2954 | f | ||
| 2955 | (concat odefault f)))) | ||
| 2956 | files))) | 2958 | files))) |
| 2957 | "done" | 2959 | "done" |
| 2958 | (pop-to-buffer (get-buffer-create "*vc*")) | 2960 | (pop-to-buffer (get-buffer-create "*vc*")) |