diff options
| author | Stefan Monnier | 2000-06-11 22:35:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-06-11 22:35:19 +0000 |
| commit | 2c0ec709cceb9db1155d6e5921a5e19eb0824c72 (patch) | |
| tree | a6e8d080fcc3849a7665909048c1d784e56d86d1 /lisp | |
| parent | e6a4ba731161f0386ea4a1e5dca7e2af3939fe4e (diff) | |
| download | emacs-2c0ec709cceb9db1155d6e5921a5e19eb0824c72.tar.gz emacs-2c0ec709cceb9db1155d6e5921a5e19eb0824c72.zip | |
(cvs-default-ignore-marks, cvs-diff-ignore-marks):
Docstring fix.
(cvs-find-file-and-jump): Change default to be safer.
(cvs-mode-diff-map): Define it as a function as well.
(cvs-mode-map): Refer to the function variant of cvs-mode-diff-map.
Bind mouse-2 in this global map rather than with text-properties.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/pcvs-defs.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/pcvs-defs.el b/lisp/pcvs-defs.el index 37aa13acc45..9e802f4b494 100644 --- a/lisp/pcvs-defs.el +++ b/lisp/pcvs-defs.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: pcl-cvs | 6 | ;; Keywords: pcl-cvs |
| 7 | ;; Version: $Name: $ | 7 | ;; Version: $Name: $ |
| 8 | ;; Revision: $Id: pcvs-defs.el,v 1.2 2000/03/15 21:28:58 gerd Exp $ | 8 | ;; Revision: $Id: pcvs-defs.el,v 1.3 2000/03/22 02:56:51 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -135,12 +135,12 @@ useful to be able to tag a single file. The normal way to do that is to use | |||
| 135 | Normally they run on the files that are marked (with `cvs-mode-mark'), | 135 | Normally they run on the files that are marked (with `cvs-mode-mark'), |
| 136 | or the file under the cursor if no files are marked. If this variable | 136 | or the file under the cursor if no files are marked. If this variable |
| 137 | is set to a non-nil value they will by default run on the file on the | 137 | is set to a non-nil value they will by default run on the file on the |
| 138 | current line. See also `cvs-ignore-marks'" | 138 | current line. See also `cvs-invert-ignore-marks'" |
| 139 | :group 'pcl-cvs | 139 | :group 'pcl-cvs |
| 140 | :type '(boolean)) | 140 | :type '(boolean)) |
| 141 | 141 | ||
| 142 | (defvar cvs-diff-ignore-marks t | 142 | (defvar cvs-diff-ignore-marks t |
| 143 | "Obsolete variable: use cvs-ignore-marks instead.") | 143 | "Obsolete: use `cvs-invert-ignore-marks' instead.") |
| 144 | 144 | ||
| 145 | (defcustom cvs-invert-ignore-marks | 145 | (defcustom cvs-invert-ignore-marks |
| 146 | (let ((l ())) | 146 | (let ((l ())) |
| @@ -178,7 +178,7 @@ If set to NIL, `cvs-mode-add' will always prompt for a message." | |||
| 178 | (defvar cvs-diff-buffer-name "*cvs-diff*" | 178 | (defvar cvs-diff-buffer-name "*cvs-diff*" |
| 179 | "Obsolete variable: use `cvs-buffer-name-alist' instead.") | 179 | "Obsolete variable: use `cvs-buffer-name-alist' instead.") |
| 180 | 180 | ||
| 181 | (defcustom cvs-find-file-and-jump t | 181 | (defcustom cvs-find-file-and-jump nil |
| 182 | "Jump to the modified area when finding a file. | 182 | "Jump to the modified area when finding a file. |
| 183 | If non-nil, `cvs-mode-file-file' will place the cursor at the beginning of | 183 | If non-nil, `cvs-mode-file-file' will place the cursor at the beginning of |
| 184 | the modified area. If the file is not locally modified, this will obviously | 184 | the modified area. If the file is not locally modified, this will obviously |
| @@ -340,6 +340,9 @@ This variable is buffer local and only used in the *cvs* buffer.") | |||
| 340 | ("e" . cvs-mode-idiff) | 340 | ("e" . cvs-mode-idiff) |
| 341 | ("E" . cvs-mode-imerge)) | 341 | ("E" . cvs-mode-imerge)) |
| 342 | "Keymap for diff-related operations in `cvs-mode'.") | 342 | "Keymap for diff-related operations in `cvs-mode'.") |
| 343 | ;; This is necessary to allow correct handling of \\[cvs-mode-diff-map] | ||
| 344 | ;; in substitute-command-keys. | ||
| 345 | (fset 'cvs-mode-diff-map cvs-mode-diff-map) | ||
| 343 | 346 | ||
| 344 | (easy-mmode-defmap cvs-mode-map | 347 | (easy-mmode-defmap cvs-mode-map |
| 345 | ;;(define-prefix-command 'cvs-mode-map-diff-prefix) | 348 | ;;(define-prefix-command 'cvs-mode-map-diff-prefix) |
| @@ -380,7 +383,7 @@ This variable is buffer local and only used in the *cvs* buffer.") | |||
| 380 | ("\M-s". cvs-status) | 383 | ("\M-s". cvs-status) |
| 381 | ;; diff commands | 384 | ;; diff commands |
| 382 | ("=" . cvs-mode-diff) | 385 | ("=" . cvs-mode-diff) |
| 383 | ("d" . ,cvs-mode-diff-map) | 386 | ("d" . cvs-mode-diff-map) |
| 384 | ;; keys that operate on individual files | 387 | ;; keys that operate on individual files |
| 385 | ("\C-k". cvs-mode-acknowledge) | 388 | ("\C-k". cvs-mode-acknowledge) |
| 386 | ("A" . cvs-mode-add-change-log-entry-other-window) | 389 | ("A" . cvs-mode-add-change-log-entry-other-window) |
| @@ -406,6 +409,7 @@ This variable is buffer local and only used in the *cvs* buffer.") | |||
| 406 | ;; cvstree bindings | 409 | ;; cvstree bindings |
| 407 | ("+" . cvs-mode-tree) | 410 | ("+" . cvs-mode-tree) |
| 408 | ;; mouse bindings | 411 | ;; mouse bindings |
| 412 | ([mouse-2] . cvs-mode-find-file) | ||
| 409 | ([(down-mouse-3)] . cvs-menu) | 413 | ([(down-mouse-3)] . cvs-menu) |
| 410 | ;; Emacs-21 toolbar | 414 | ;; Emacs-21 toolbar |
| 411 | ;;([tool-bar item1] . (menu-item "Examine" cvs-examine :image (image :file "/usr/share/icons/xpaint.xpm" :type xpm))) | 415 | ;;([tool-bar item1] . (menu-item "Examine" cvs-examine :image (image :file "/usr/share/icons/xpaint.xpm" :type xpm))) |