diff options
| author | Stefan Monnier | 2007-07-23 05:32:32 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-23 05:32:32 +0000 |
| commit | 7d56ddc5764b329ff315706e7e2a7eba34e60201 (patch) | |
| tree | 8a3a951f6a363a7a1f7352d513f9ce28a1302c4d | |
| parent | d93290ed100772393a6ced91c49675e169b58ea3 (diff) | |
| download | emacs-7d56ddc5764b329ff315706e7e2a7eba34e60201.tar.gz emacs-7d56ddc5764b329ff315706e7e2a7eba34e60201.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 | 27 | ||||
| -rw-r--r-- | lisp/pcvs.el | 4 |
2 files changed, 19 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6f3da013030..2e3f32ad25c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-07-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 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 | |||
| 1 | 2007-07-22 Jason Rumney <jasonr@gnu.org> | 6 | 2007-07-22 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * w32-fns.el (set-default-process-coding-system): Use dos line ends | 8 | * w32-fns.el (set-default-process-coding-system): Use dos line ends |
| @@ -51,8 +56,7 @@ | |||
| 51 | (vc-hg-next-version, vc-hg-delete-file, vc-hg-rename-file) | 56 | (vc-hg-next-version, vc-hg-delete-file, vc-hg-rename-file) |
| 52 | (vc-hg-register, vc-hg-create-repo, vc-hg-checkin) | 57 | (vc-hg-register, vc-hg-create-repo, vc-hg-checkin) |
| 53 | (vc-hg-revert): Likewise. | 58 | (vc-hg-revert): Likewise. |
| 54 | (vc-hg-revision-table, vc-hg-revision-completion-table): New | 59 | (vc-hg-revision-table, vc-hg-revision-completion-table): New functions. |
| 55 | functions. | ||
| 56 | 60 | ||
| 57 | 2007-07-21 Thien-Thi Nguyen <ttn@gnuvola.org> | 61 | 2007-07-21 Thien-Thi Nguyen <ttn@gnuvola.org> |
| 58 | 62 | ||
| @@ -186,8 +190,8 @@ | |||
| 186 | 190 | ||
| 187 | * longlines.el (longlines-wrap-region): Avoid marking buffer as | 191 | * longlines.el (longlines-wrap-region): Avoid marking buffer as |
| 188 | modified. | 192 | modified. |
| 189 | (longlines-auto-wrap, longlines-window-change-function): Remove | 193 | (longlines-auto-wrap, longlines-window-change-function): |
| 190 | unnecessary calls to set-buffer-modified-p. | 194 | Remove unnecessary calls to set-buffer-modified-p. |
| 191 | 195 | ||
| 192 | 2007-06-20 Stefan Monnier <monnier@iro.umontreal.ca> | 196 | 2007-06-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 193 | 197 | ||
| @@ -496,8 +500,8 @@ | |||
| 496 | * calendar/timeclock.el: Update version number. | 500 | * calendar/timeclock.el: Update version number. |
| 497 | (timeclock-modeline-display): Mention timeclock-use-display-time | 501 | (timeclock-modeline-display): Mention timeclock-use-display-time |
| 498 | in explanatory message. | 502 | in explanatory message. |
| 499 | (timeclock-log): Suppress warnings when finding the log. Don't | 503 | (timeclock-log): Suppress warnings when finding the log. |
| 500 | check for a nil project twice. Run hooks after killing the | 504 | Don't check for a nil project twice. Run hooks after killing the |
| 501 | buffer (if applicable). | 505 | buffer (if applicable). |
| 502 | (timeclock-geometric-mean): Rename to `timeclock-mean' (it never | 506 | (timeclock-geometric-mean): Rename to `timeclock-mean' (it never |
| 503 | was geometric). All uses changed. | 507 | was geometric). All uses changed. |
| @@ -515,8 +519,8 @@ | |||
| 515 | 519 | ||
| 516 | 2007-06-04 Katsumi Yamaoka <yamaoka@jpl.org> | 520 | 2007-06-04 Katsumi Yamaoka <yamaoka@jpl.org> |
| 517 | 521 | ||
| 518 | * mail/mail-extr.el (mail-extract-address-components): Recognize | 522 | * mail/mail-extr.el (mail-extract-address-components): |
| 519 | non-ASCII characters except for NBSP as words. | 523 | Recognize non-ASCII characters except for NBSP as words. |
| 520 | 524 | ||
| 521 | 2007-06-04 Ryan Yeske <rcyeske@gmail.com> | 525 | 2007-06-04 Ryan Yeske <rcyeske@gmail.com> |
| 522 | 526 | ||
| @@ -544,8 +548,7 @@ | |||
| 544 | * files.el (magic-mode-alist): Remove image-type-auto-detected-p. | 548 | * files.el (magic-mode-alist): Remove image-type-auto-detected-p. |
| 545 | (magic-fallback-mode-alist): Add image-type-auto-detected-p. | 549 | (magic-fallback-mode-alist): Add image-type-auto-detected-p. |
| 546 | 550 | ||
| 547 | * image.el (image-type-auto-detected-p): Don't scan | 551 | * image.el (image-type-auto-detected-p): Don't scan auto-mode-alist. |
| 548 | auto-mode-alist. | ||
| 549 | 552 | ||
| 550 | * longlines.el (longlines-mode): Make longlines-auto-wrap | 553 | * longlines.el (longlines-mode): Make longlines-auto-wrap |
| 551 | buffer-local. Add hooks unconditionally. | 554 | buffer-local. Add hooks unconditionally. |
| @@ -569,8 +572,8 @@ | |||
| 569 | 2007-05-29 Martin Rudalics <rudalics@gmx.at> | 572 | 2007-05-29 Martin Rudalics <rudalics@gmx.at> |
| 570 | 573 | ||
| 571 | * textmodes/table.el (table--point-entered-cell-function) | 574 | * textmodes/table.el (table--point-entered-cell-function) |
| 572 | (table--point-left-cell-function): Bind | 575 | (table--point-left-cell-function): |
| 573 | `inhibit-point-motion-hooks' to t. | 576 | Bind `inhibit-point-motion-hooks' to t. |
| 574 | 577 | ||
| 575 | 2007-05-29 Nikolaj Schumacher <n_schumacher@web.de> (tiny change) | 578 | 2007-05-29 Nikolaj Schumacher <n_schumacher@web.de> (tiny change) |
| 576 | 579 | ||
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 | ||