Commit 6655f0bf authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(cvs-mode-add-change-log-entry-other-window): Use a directory

name for buffer-file-name if it refers to a directory.
parent f3b8feb4
2007-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
* pcvs.el (cvs-mode-add-change-log-entry-other-window): Use a directory
name for buffer-file-name if it refers to a directory.
* vc-arch.el (vc-arch-diff): Fix last change.
* progmodes/compile.el (compilation-start): Remember the original
......
......@@ -2207,6 +2207,10 @@ With prefix argument, prompt for cvs flags."
(dolist (fi (cvs-mode-marked nil nil))
(let* ((default-directory (cvs-expand-dir-name (cvs-fileinfo->dir fi)))
(buffer-file-name (expand-file-name (cvs-fileinfo->file fi))))
(if (file-directory-p buffer-file-name)
;; Be careful to use a directory name, otherwise add-log starts
;; looking for a ChangeLog file in the parent dir.
(setq buffer-file-name (file-name-as-directory buffer-file-name)))
(kill-local-variable 'change-log-default-name)
(save-excursion (add-change-log-entry-other-window)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment