diff options
| author | Stefan Monnier | 2000-11-03 22:34:26 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-11-03 22:34:26 +0000 |
| commit | d6cc3d1778f347d0dfa1637657eac9b2730585af (patch) | |
| tree | 848fbc3bfd9377460b542bc5377a535bd44c707c | |
| parent | 83bfc0d9ecd25b79045f7ff49b88aba0111100da (diff) | |
| download | emacs-d6cc3d1778f347d0dfa1637657eac9b2730585af.tar.gz emacs-d6cc3d1778f347d0dfa1637657eac9b2730585af.zip | |
(cvs-mode-add-change-log-entry-other-window):
Bind change-log-default-mode to defeat the caching done on it.
Don't bother saving excursion any more.
| -rw-r--r-- | lisp/pcvs.el | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index ea83b883266..62cb285e237 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | ;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu | 14 | ;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu |
| 15 | ;; Keywords: CVS, version control, release management | 15 | ;; Keywords: CVS, version control, release management |
| 16 | ;; Version: $Name: $ | 16 | ;; Version: $Name: $ |
| 17 | ;; Revision: $Id: pcvs.el,v 1.12 2000/10/08 19:11:34 monnier Exp $ | 17 | ;; Revision: $Id: pcvs.el,v 1.13 2000/10/15 05:18:33 monnier Exp $ |
| 18 | 18 | ||
| 19 | ;; This file is part of GNU Emacs. | 19 | ;; This file is part of GNU Emacs. |
| 20 | 20 | ||
| @@ -57,6 +57,10 @@ | |||
| 57 | ;; ******** FIX THE DOCUMENTATION ********* | 57 | ;; ******** FIX THE DOCUMENTATION ********* |
| 58 | ;; | 58 | ;; |
| 59 | ;; - use UP-TO-DATE rather than DEAD when cleaning before `examine'. | 59 | ;; - use UP-TO-DATE rather than DEAD when cleaning before `examine'. |
| 60 | ;; - Allow to flush messages only | ||
| 61 | ;; - Allow to protect files like ChangeLog from flushing | ||
| 62 | ;; - Automatically cvs-mode-insert files from find-file-hook | ||
| 63 | ;; (and don't flush them as long as they are visited) | ||
| 60 | ;; | 64 | ;; |
| 61 | ;; - hide fileinfos without getting rid of them (will require ewok work). | 65 | ;; - hide fileinfos without getting rid of them (will require ewok work). |
| 62 | ;; - add toolbar entries | 66 | ;; - add toolbar entries |
| @@ -1905,14 +1909,9 @@ With prefix argument, prompt for cvs flags." | |||
| 1905 | (interactive) | 1909 | (interactive) |
| 1906 | (let* ((fi (cvs-mode-marked nil nil :one t)) | 1910 | (let* ((fi (cvs-mode-marked nil nil :one t)) |
| 1907 | (default-directory (cvs-expand-dir-name (cvs-fileinfo->dir fi))) | 1911 | (default-directory (cvs-expand-dir-name (cvs-fileinfo->dir fi))) |
| 1908 | (buffer-file-name (expand-file-name (cvs-fileinfo->file fi)))) | 1912 | (buffer-file-name (expand-file-name (cvs-fileinfo->file fi))) |
| 1909 | ;; This `save-excursion' is necessary because of interaction between | 1913 | change-log-default-name) |
| 1910 | ;; dynamic scoping and buffer-local variables: | 1914 | (add-change-log-entry-other-window))) |
| 1911 | ;; the above binding of `buffer-file-name' has temporarily changed the | ||
| 1912 | ;; buffer-local variable (same thing for `default-directory'), so we | ||
| 1913 | ;; need to switch back to the original buffer before the unbinding | ||
| 1914 | ;; restores the old value. | ||
| 1915 | (save-excursion (add-change-log-entry-other-window)))) | ||
| 1916 | 1915 | ||
| 1917 | ;; interactive commands to set optional flags | 1916 | ;; interactive commands to set optional flags |
| 1918 | 1917 | ||