aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-12-23 03:33:34 +0000
committerRichard M. Stallman1993-12-23 03:33:34 +0000
commit7e6404f67821a8738a6bcd72ee3721cb41375325 (patch)
tree86043a6cd01fdf8464c847a50fc28836a9d13dfb
parentf9b1c0b224226e89ebb0290287ba5ee58e3108cd (diff)
downloademacs-7e6404f67821a8738a6bcd72ee3721cb41375325.tar.gz
emacs-7e6404f67821a8738a6bcd72ee3721cb41375325.zip
(mouse-kill-secondary): Get rid of CLICK argument.
Instead, use this-command-keys. (x-fixed-font-alist): For 6x10, look for normal font, not semicondensed. (mouse-yank-secondary): Doc fix.
-rw-r--r--lisp/mouse.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 5139086bb47..1f695121d47 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -647,15 +647,14 @@ This must be bound to a button-down mouse event."
647 (overlay-end mouse-secondary-overlay))))))))) 647 (overlay-end mouse-secondary-overlay)))))))))
648 648
649(defun mouse-yank-secondary (click) 649(defun mouse-yank-secondary (click)
650 "Insert the last stretch of killed text at the position clicked on. 650 "Insert the secondary selection at the position clicked on."
651Prefix arguments are interpreted as with \\[yank]."
652 (interactive "e") 651 (interactive "e")
653 (save-excursion 652 (save-excursion
654 (set-buffer (window-buffer (posn-window (event-start click)))) 653 (set-buffer (window-buffer (posn-window (event-start click))))
655 (goto-char (posn-point (event-start click))) 654 (goto-char (posn-point (event-start click)))
656 (insert (x-get-selection 'SECONDARY)))) 655 (insert (x-get-selection 'SECONDARY))))
657 656
658(defun mouse-kill-secondary (click) 657(defun mouse-kill-secondary ()
659 "Kill the text in the secondary selection. 658 "Kill the text in the secondary selection.
660This is intended more as a keyboard command than as a mouse command 659This is intended more as a keyboard command than as a mouse command
661but it can work as either one. 660but it can work as either one.
@@ -663,12 +662,14 @@ but it can work as either one.
663The current buffer (in case of keyboard use), or the buffer clicked on, 662The current buffer (in case of keyboard use), or the buffer clicked on,
664must be the one that the secondary selection is in. This requirement 663must be the one that the secondary selection is in. This requirement
665is to prevent accidents." 664is to prevent accidents."
666 (interactive "e") 665 (interactive)
667 (or (eq (overlay-buffer mouse-secondary-overlay) 666 (let* ((keys (this-command-keys))
668 (if (listp click) 667 (click (elt keys (1- (length keys)))))
669 (window-buffer (posn-window (event-start click))) 668 (or (eq (overlay-buffer mouse-secondary-overlay)
670 (current-buffer))) 669 (if (listp click)
671 (error "Select or click on the buffer where the secondary selection is")) 670 (window-buffer (posn-window (event-start click)))
671 (current-buffer)))
672 (error "Select or click on the buffer where the secondary selection is")))
672 (save-excursion 673 (save-excursion
673 (set-buffer (overlay-buffer mouse-secondary-overlay)) 674 (set-buffer (overlay-buffer mouse-secondary-overlay))
674 (kill-region (overlay-start mouse-secondary-overlay) 675 (kill-region (overlay-start mouse-secondary-overlay)
@@ -1210,7 +1211,7 @@ and selects that window."
1210(defvar x-fixed-font-alist 1211(defvar x-fixed-font-alist
1211 '("Font menu" 1212 '("Font menu"
1212 ("Misc" 1213 ("Misc"
1213 ("6x10" "-misc-fixed-medium-r-semicondensed--10-110-75-75-c-60-*-1") 1214 ("6x10" "-misc-fixed-medium-r-normal--10-100-75-75-c-60-*-1")
1214 ("6x12" "-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-*-1") 1215 ("6x12" "-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-*-1")
1215 ("6x13" "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*-1") 1216 ("6x13" "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*-1")
1216 ("lucida 13" 1217 ("lucida 13"