mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(mouse-save-then-kill): Get point-before-scroll
from the right buffer.
This commit is contained in:
parent
c9e5d3d141
commit
53016bead4
1 changed files with 3 additions and 1 deletions
|
|
@ -922,7 +922,9 @@ selection through the word or line clicked on. If you do this
|
|||
again in a different position, it extends the selection again.
|
||||
If you do this twice in the same position, the selection is killed."
|
||||
(interactive "e")
|
||||
(let ((before-scroll point-before-scroll))
|
||||
(let ((before-scroll
|
||||
(with-current-buffer (window-buffer (posn-window (event-start click)))
|
||||
point-before-scroll)))
|
||||
(mouse-minibuffer-check click)
|
||||
(let ((click-posn (posn-point (event-start click)))
|
||||
;; Don't let a subsequent kill command append to this one:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue