Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b3709a53
Commit
b3709a53
authored
Jul 16, 2007
by
Richard M. Stallman
Browse files
(mouse-yank-secondary): Better error message if no secondary selection.
parent
dbd3d787
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/mouse.el
lisp/mouse.el
+4
-1
No files found.
lisp/ChangeLog
View file @
b3709a53
2007-07-13 Drew Adams <drew.adams@oracle.com>
* mouse.el (mouse-yank-secondary): Better error message if no
secondary selection.
2007-07-16 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hooks.el (vc-handled-backends): Move BZR later in the list.
...
...
lisp/mouse.el
View file @
b3709a53
...
...
@@ -1631,7 +1631,10 @@ regardless of where you click."
;; Give temporary modes such as isearch a chance to turn off.
(
run-hooks
'mouse-leave-buffer-hook
)
(
or
mouse-yank-at-point
(
mouse-set-point
click
))
(
insert
(
x-get-selection
'SECONDARY
)))
(
let
((
secondary
(
x-get-selection
'SECONDARY
)))
(
if
secondary
(
insert
(
x-get-selection
'SECONDARY
))
(
error
"No secondary selection"
))))
(
defun
mouse-kill-secondary
()
"Kill the text in the secondary selection.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment