]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure that update-changelog issues an error when used with
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 8 May 2007 04:26:41 +0000 (04:26 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 8 May 2007 04:26:41 +0000 (04:26 +0000)
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.

lisp/ChangeLog
lisp/vc.el

index 61090012471d613b7c8edd36846e6adb933ef92b..d51f6875343514ed6e7af72499c08152ff7937b0 100644 (file)
@@ -1,3 +1,14 @@
+2007-05-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc.el: 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.
+
+       * progmodes/python.el (python-end-of-block): Revert last change.
+       (python-end-of-statement): Make sure we move *forward*.
+
 2007-05-08  David Reitter  <david.reitter@gmail.com>
 
        * progmodes/python.el (python-guess-indent): Check non-nullness
 
 2006-01-29  Edward O'Connor  <ted@oconnor.cx>
 
-       * emulation/viper.el (viper-major-mode-modifier-list): Add
-       insert-state and vi-state entries for erc-mode.
+       * emulation/viper.el (viper-major-mode-modifier-list):
+       Add insert-state and vi-state entries for erc-mode.
        (viper-go-away, viper-set-hooks): Add and remove
        viper-comint-mode-hook from erc-mode-hook as appropriate.
 
index 450bfb3c938179854b21f632e920d07ada55bd40..a65e698669efe386758b9085362c20266d228aee 100644 (file)
@@ -2909,7 +2909,11 @@ log entries should be gathered."
   (vc-call-backend (vc-responsible-backend default-directory)
                    'update-changelog args))
 
-(defun vc-default-update-changelog (backend files)
+(defalias 'vc-cvs-update-changelog 'vc-update-changelog-rcs2log)
+(defalias 'vc-rcs-update-changelog 'vc-update-changelog-rcs2log)
+;; FIXME: This should probably be moved to vc-rcs.el and replaced in
+;; vc-cvs.el by code using cvs2cl.
+(defun vc-update-changelog-rcs2log (files)
   "Default implementation of update-changelog.
 Uses `rcs2log' which only works for RCS and CVS."
   ;; FIXME: We (c|sh)ould add support for cvs2cl
@@ -2950,9 +2954,7 @@ Uses `rcs2log' which only works for RCS and CVS."
                                     (mapcar
                                      (lambda (f)
                                        (file-relative-name
-                                        (if (file-name-absolute-p f)
-                                            f
-                                          (concat odefault f))))
+                                        (expand-file-name f odefault)))
                                      files)))
                        "done"
                     (pop-to-buffer (get-buffer-create "*vc*"))