diff options
| author | Stefan Monnier | 2007-07-20 20:08:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-20 20:08:21 +0000 |
| commit | 6655f0bfc967229d6383f193fb506561a84f5ba6 (patch) | |
| tree | ae7624069c198e871bc77a65ed95c0a63348da43 | |
| parent | f3b8feb4fb8380c16dee7a628fe26aad05912800 (diff) | |
| download | emacs-6655f0bfc967229d6383f193fb506561a84f5ba6.tar.gz emacs-6655f0bfc967229d6383f193fb506561a84f5ba6.zip | |
(cvs-mode-add-change-log-entry-other-window): Use a directory
name for buffer-file-name if it refers to a directory.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/pcvs.el | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1bf0ce52e57..7f50142089e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-07-20 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-07-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * pcvs.el (cvs-mode-add-change-log-entry-other-window): Use a directory | ||
| 4 | name for buffer-file-name if it refers to a directory. | ||
| 5 | |||
| 3 | * vc-arch.el (vc-arch-diff): Fix last change. | 6 | * vc-arch.el (vc-arch-diff): Fix last change. |
| 4 | 7 | ||
| 5 | * progmodes/compile.el (compilation-start): Remember the original | 8 | * progmodes/compile.el (compilation-start): Remember the original |
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 006b2cd905b..12ad6f5e2a0 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -2207,6 +2207,10 @@ With prefix argument, prompt for cvs flags." | |||
| 2207 | (dolist (fi (cvs-mode-marked nil nil)) | 2207 | (dolist (fi (cvs-mode-marked nil nil)) |
| 2208 | (let* ((default-directory (cvs-expand-dir-name (cvs-fileinfo->dir fi))) | 2208 | (let* ((default-directory (cvs-expand-dir-name (cvs-fileinfo->dir fi))) |
| 2209 | (buffer-file-name (expand-file-name (cvs-fileinfo->file fi)))) | 2209 | (buffer-file-name (expand-file-name (cvs-fileinfo->file fi)))) |
| 2210 | (if (file-directory-p buffer-file-name) | ||
| 2211 | ;; Be careful to use a directory name, otherwise add-log starts | ||
| 2212 | ;; looking for a ChangeLog file in the parent dir. | ||
| 2213 | (setq buffer-file-name (file-name-as-directory buffer-file-name))) | ||
| 2210 | (kill-local-variable 'change-log-default-name) | 2214 | (kill-local-variable 'change-log-default-name) |
| 2211 | (save-excursion (add-change-log-entry-other-window))))) | 2215 | (save-excursion (add-change-log-entry-other-window))))) |
| 2212 | 2216 | ||