mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
(cvs-mode-add-change-log-entry-other-window): Use a directory
name for buffer-file-name if it refers to a directory.
This commit is contained in:
parent
f3b8feb4fb
commit
6655f0bfc9
@ -1,5 +1,8 @@
|
||||
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)))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user