diff options
| author | Stefan Monnier | 2000-09-29 03:14:36 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-09-29 03:14:36 +0000 |
| commit | a7996e05f08ce127f575c28e878121df2d3eb9ff (patch) | |
| tree | d3cbd6dbb57fd1143a296340c9de51a2d4205104 | |
| parent | 2b497eda44dfd52db566ff90a020bb49cde2fafe (diff) | |
| download | emacs-a7996e05f08ce127f575c28e878121df2d3eb9ff.tar.gz emacs-a7996e05f08ce127f575c28e878121df2d3eb9ff.zip | |
(cvs-ediff-exit-hook): Kill buffer before window.
(cvs-ediff-diff): Fix typo.
(cvs-revert-if-needed): Don't bother preserving read-only.
| -rw-r--r-- | lisp/pcvs.el | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 6efd7359aba..b28812f2dd8 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -8,13 +8,13 @@ | |||
| 8 | ;; (Jim Blandy) jimb@cyclic.com | 8 | ;; (Jim Blandy) jimb@cyclic.com |
| 9 | ;; (Karl Fogel) kfogel@floss.red-bean.com | 9 | ;; (Karl Fogel) kfogel@floss.red-bean.com |
| 10 | ;; (Jim Kingdon) kingdon@cyclic.com | 10 | ;; (Jim Kingdon) kingdon@cyclic.com |
| 11 | ;; (Stefan Monnier) monnier@cs.yale.edu | 11 | ;; (Stefan Monnier) monnier@cs.yale.edu |
| 12 | ;; (Greg Klanderman) greg@alphatech.com | 12 | ;; (Greg Klanderman) greg@alphatech.com |
| 13 | ;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com | 13 | ;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com |
| 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.8 2000/08/09 15:27:48 monnier Exp $ | 17 | ;; Revision: $Id: pcvs.el,v 1.9 2000/08/16 20:27:37 monnier Exp $ |
| 18 | 18 | ||
| 19 | ;; This file is part of GNU Emacs. | 19 | ;; This file is part of GNU Emacs. |
| 20 | 20 | ||
| @@ -1444,8 +1444,8 @@ Signal an error if there is no backup file." | |||
| 1444 | (dolist (tb tmp-bufs) | 1444 | (dolist (tb tmp-bufs) |
| 1445 | (when (and tb (buffer-live-p tb) (not (buffer-modified-p tb))) | 1445 | (when (and tb (buffer-live-p tb) (not (buffer-modified-p tb))) |
| 1446 | (let ((win (get-buffer-window tb t))) | 1446 | (let ((win (get-buffer-window tb t))) |
| 1447 | (when win (delete-window win)) | 1447 | (kill-buffer tb) |
| 1448 | (kill-buffer tb)))) | 1448 | (when (window-live-p win) (delete-window win))))) |
| 1449 | ;; switch back to the *cvs* buffer | 1449 | ;; switch back to the *cvs* buffer |
| 1450 | (when (and cvs-buf (buffer-live-p cvs-buf) | 1450 | (when (and cvs-buf (buffer-live-p cvs-buf) |
| 1451 | (not (get-buffer-window cvs-buf t))) | 1451 | (not (get-buffer-window cvs-buf t))) |
| @@ -1454,7 +1454,7 @@ Signal an error if there is no backup file." | |||
| 1454 | (defun cvs-ediff-diff (b1 b2) | 1454 | (defun cvs-ediff-diff (b1 b2) |
| 1455 | (let ((ediff-after-quit-destination-buffer (current-buffer)) | 1455 | (let ((ediff-after-quit-destination-buffer (current-buffer)) |
| 1456 | (startup-hook '(cvs-ediff-startup-hook))) | 1456 | (startup-hook '(cvs-ediff-startup-hook))) |
| 1457 | (ediff-buffers b1 b2 startup-hook 'ediff-revisions))) | 1457 | (ediff-buffers b1 b2 startup-hook 'ediff-revision))) |
| 1458 | 1458 | ||
| 1459 | (defun cvs-ediff-merge (b1 b2 base out) | 1459 | (defun cvs-ediff-merge (b1 b2 base out) |
| 1460 | (let ((ediff-after-quit-destination-buffer (current-buffer)) | 1460 | (let ((ediff-after-quit-destination-buffer (current-buffer)) |
| @@ -1984,15 +1984,13 @@ this file, or a list of arguments to send to the program." | |||
| 1984 | ;; read-write changes) which is not changed by `commit'. | 1984 | ;; read-write changes) which is not changed by `commit'. |
| 1985 | (buffer-modified-p buffer)) | 1985 | (buffer-modified-p buffer)) |
| 1986 | (with-current-buffer buffer | 1986 | (with-current-buffer buffer |
| 1987 | (let ((cvs-buf-was-ro buffer-read-only)) | 1987 | (ignore-errors |
| 1988 | (ignore-errors | 1988 | (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes) |
| 1989 | (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes) | 1989 | ;; `preserve-modes' avoids changing the (minor) modes. But we |
| 1990 | ;; `preserve-modes' avoids changing the (minor) modes. But we | 1990 | ;; do want to reset the mode for VC, so we do it explicitly. |
| 1991 | ;; do want to reset the mode for VC, so we do it explicitly. | 1991 | (vc-find-file-hook) |
| 1992 | (vc-find-file-hook)) | 1992 | (when (eq (cvs-fileinfo->type fileinfo) 'CONFLICT) |
| 1993 | ;; protect the buffer-read-only setting | 1993 | (smerge-mode 1)))))))) |
| 1994 | (if cvs-buf-was-ro (toggle-read-only 1)))))))) | ||
| 1995 | |||
| 1996 | 1994 | ||
| 1997 | 1995 | ||
| 1998 | (defun cvs-change-cvsroot (newroot) | 1996 | (defun cvs-change-cvsroot (newroot) |