Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e1eb5385
Commit
e1eb5385
authored
Oct 29, 2011
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/mouse.el (mouse-yank-primary): Push the mark.
Fixes: debbugs:9894
parent
5d2ece3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/mouse.el
lisp/mouse.el
+6
-5
No files found.
lisp/ChangeLog
View file @
e1eb5385
2011-10-29 Chong Yidong <cyd@gnu.org>
* mouse.el (mouse-yank-primary): Push the mark (Bug#9894).
* textmodes/flyspell.el (flyspell-word): Fix char offset for
forged Ispell output (Bug#7904).
...
...
lisp/mouse.el
View file @
e1eb5385
...
...
@@ -1133,8 +1133,8 @@ regardless of where you click."
(
defun
mouse-yank-primary
(
click
)
"Insert the primary selection at the position clicked on.
Move point to the end of the inserted text
.
If `mouse-yank-at-point' is non-nil, insert at point
Move point to the end of the inserted text
, and set mark at
beginning.
If `mouse-yank-at-point' is non-nil, insert at point
regardless of where you click."
(
interactive
"e"
)
;; Give temporary modes such as isearch a chance to turn off.
...
...
@@ -1162,9 +1162,10 @@ regardless of where you click."
;; FIXME: What about xterm-mouse-mode etc.?
(
t
(
x-get-selection
'PRIMARY
)))))
(
if
primary
(
insert
primary
)
(
error
"No selection is available"
))))
(
unless
primary
(
error
"No selection is available"
))
(
push-mark
(
point
))
(
insert
primary
)))
(
defun
mouse-kill-ring-save
(
click
)
"Copy the region between point and the mouse click in the kill ring.
...
...
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