Mercurial > emacs
comparison lisp/pcvs.el @ 34376:25976c39c41e
* pcvs.el (cvs-menu): Use `cvs-menu' rather than `cvs-menu-map'.
(cvs-mode-quit): Turn it back into a plain function.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 08 Dec 2000 16:58:45 +0000 |
parents | dd613770eb0f |
children | 0f95f2e53b1f |
comparison
equal
deleted
inserted
replaced
34375:3cd9d12d2b5d | 34376:25976c39c41e |
---|---|
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.18 2000/11/21 20:47:49 monnier Exp $ | 17 ;; Revision: $Id: pcvs.el,v 1.19 2000/12/06 19:36:20 fx Exp $ |
18 | 18 |
19 ;; This file is part of GNU Emacs. | 19 ;; This file is part of GNU Emacs. |
20 | 20 |
21 ;; GNU Emacs is free software; you can redistribute it and/or modify | 21 ;; GNU Emacs is free software; you can redistribute it and/or modify |
22 ;; it under the terms of the GNU General Public License as published by | 22 ;; it under the terms of the GNU General Public License as published by |
50 ;; seamlessly (I also use VC). | 50 ;; seamlessly (I also use VC). |
51 | 51 |
52 ;; To use PCL-CVS just use `M-x cvs-examine RET <dir> RET'. | 52 ;; To use PCL-CVS just use `M-x cvs-examine RET <dir> RET'. |
53 ;; There is a TeXinfo manual, which can be helpful to get started. | 53 ;; There is a TeXinfo manual, which can be helpful to get started. |
54 | 54 |
55 ;;; Bugs: | |
56 | |
57 ;; - can somehow ignore important messages like `co aborted' or | |
58 ;; or `co: output error: No space left on device'. | |
59 | |
55 ;;; Todo: | 60 ;;; Todo: |
56 | 61 |
57 ;; ******** FIX THE DOCUMENTATION ********* | 62 ;; ******** FIX THE DOCUMENTATION ********* |
58 ;; | 63 ;; |
64 ;; - rework the displaying of error messages. | |
59 ;; - use UP-TO-DATE rather than DEAD when cleaning before `examine'. | 65 ;; - use UP-TO-DATE rather than DEAD when cleaning before `examine'. |
60 ;; - allow to flush messages only | 66 ;; - allow to flush messages only |
61 ;; - allow to protect files like ChangeLog from flushing | 67 ;; - allow to protect files like ChangeLog from flushing |
62 ;; - automatically cvs-mode-insert files from find-file-hook | 68 ;; - automatically cvs-mode-insert files from find-file-hook |
63 ;; (and don't flush them as long as they are visited) | 69 ;; (and don't flush them as long as they are visited) |
196 "Popup the CVS menu." | 202 "Popup the CVS menu." |
197 (interactive "e") | 203 (interactive "e") |
198 (let ((cvs-minor-current-files | 204 (let ((cvs-minor-current-files |
199 (list (ewoc-data (ewoc-locate | 205 (list (ewoc-data (ewoc-locate |
200 cvs-cookies (posn-point (event-end e))))))) | 206 cvs-cookies (posn-point (event-end e))))))) |
201 (popup-menu cvs-menu-map e))) | 207 (popup-menu cvs-menu e))) |
202 | 208 |
203 (defvar cvs-mode-line-process nil | 209 (defvar cvs-mode-line-process nil |
204 "Mode-line control for displaying info on cvs process status.") | 210 "Mode-line control for displaying info on cvs process status.") |
205 | 211 |
206 | 212 |
1050 default-directory))) | 1056 default-directory))) |
1051 t) | 1057 t) |
1052 (error "Inconsistent %s in buffer %s" check (buffer-name buf))))) | 1058 (error "Inconsistent %s in buffer %s" check (buffer-name buf))))) |
1053 | 1059 |
1054 | 1060 |
1055 (defun-cvs-mode cvs-mode-quit () | 1061 (defun cvs-mode-quit () |
1056 "Quit PCL-CVS, killing the *cvs* buffer." | 1062 "Quit PCL-CVS, killing the *cvs* buffer." |
1057 (interactive) | 1063 (interactive) |
1058 (and (y-or-n-p "Quit pcl-cvs? ") (kill-buffer (current-buffer)))) | 1064 (and (y-or-n-p "Quit pcl-cvs? ") (kill-buffer (current-buffer)))) |
1059 | 1065 |
1060 ;; Give help.... | 1066 ;; Give help.... |