comparison lisp/mouse.el @ 90984:a1be62cbd32a

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 814-815) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-232
author Miles Bader <miles@gnu.org>
date Wed, 18 Jul 2007 22:15:15 +0000
parents 988f1edc9674 3bdde0e93c76
children f55f9811f5d7
comparison
equal deleted inserted replaced
90983:8cdd8b5fa891 90984:a1be62cbd32a
1629 regardless of where you click." 1629 regardless of where you click."
1630 (interactive "e") 1630 (interactive "e")
1631 ;; Give temporary modes such as isearch a chance to turn off. 1631 ;; Give temporary modes such as isearch a chance to turn off.
1632 (run-hooks 'mouse-leave-buffer-hook) 1632 (run-hooks 'mouse-leave-buffer-hook)
1633 (or mouse-yank-at-point (mouse-set-point click)) 1633 (or mouse-yank-at-point (mouse-set-point click))
1634 (insert (x-get-selection 'SECONDARY))) 1634 (let ((secondary (x-get-selection 'SECONDARY)))
1635 (if secondary
1636 (insert (x-get-selection 'SECONDARY))
1637 (error "No secondary selection"))))
1635 1638
1636 (defun mouse-kill-secondary () 1639 (defun mouse-kill-secondary ()
1637 "Kill the text in the secondary selection. 1640 "Kill the text in the secondary selection.
1638 This is intended more as a keyboard command than as a mouse command 1641 This is intended more as a keyboard command than as a mouse command
1639 but it can work as either one. 1642 but it can work as either one.