diff options
| author | Stefan Monnier | 2004-04-14 17:36:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-04-14 17:36:09 +0000 |
| commit | 6dfa5acfe309115c20c7d7d2fdb490f02c050155 (patch) | |
| tree | 52f986a561ca12a49f6bf582137113fca428f6e7 | |
| parent | a1e2d7f757128842226ee60820c5b76462788c38 (diff) | |
| download | emacs-6dfa5acfe309115c20c7d7d2fdb490f02c050155.tar.gz emacs-6dfa5acfe309115c20c7d7d2fdb490f02c050155.zip | |
(cvs-mode-toggle-mark): Rename from cvs-mouse-toggle-mark.
Make it work for non-mouse events.
| -rw-r--r-- | lisp/pcvs.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index cc72d02f64a..21e34fbc7ed 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -1194,11 +1194,12 @@ marked instead. A directory can never be marked." | |||
| 1194 | (ewoc-invalidate cvs-cookies tin) | 1194 | (ewoc-invalidate cvs-cookies tin) |
| 1195 | (cvs-mode-next-line 1)))) | 1195 | (cvs-mode-next-line 1)))) |
| 1196 | 1196 | ||
| 1197 | (defun cvs-mouse-toggle-mark (e) | 1197 | (defalias 'cvs-mouse-toggle-mark 'cvs-mode-toggle-mark) |
| 1198 | "Toggle the mark of the entry under the mouse." | 1198 | (defun cvs-mode-toggle-mark (e) |
| 1199 | (interactive "e") | 1199 | "Toggle the mark of the entry at point." |
| 1200 | (interactive (list last-input-event)) | ||
| 1200 | (save-excursion | 1201 | (save-excursion |
| 1201 | (mouse-set-point e) | 1202 | (posn-set-point (event-end e)) |
| 1202 | (cvs-mode-mark 'toggle))) | 1203 | (cvs-mode-mark 'toggle))) |
| 1203 | 1204 | ||
| 1204 | (defun-cvs-mode cvs-mode-unmark () | 1205 | (defun-cvs-mode cvs-mode-unmark () |
| @@ -1930,7 +1931,7 @@ to hear about anymore." | |||
| 1930 | With a prefix, opens the buffer in an OTHER window." | 1931 | With a prefix, opens the buffer in an OTHER window." |
| 1931 | (interactive (list last-input-event current-prefix-arg)) | 1932 | (interactive (list last-input-event current-prefix-arg)) |
| 1932 | ;; If the event moves point, check that it moves it to a valid location. | 1933 | ;; If the event moves point, check that it moves it to a valid location. |
| 1933 | (when (and (/= (point) (progn (ignore-errors (mouse-set-point e)) (point))) | 1934 | (when (and (/= (point) (progn (posn-set-point (event-end e)) (point))) |
| 1934 | (not (memq (get-text-property (1- (line-end-position)) | 1935 | (not (memq (get-text-property (1- (line-end-position)) |
| 1935 | 'font-lock-face) | 1936 | 'font-lock-face) |
| 1936 | '(cvs-header-face cvs-filename-face)))) | 1937 | '(cvs-header-face cvs-filename-face)))) |