[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25715: 25.1; goto-address-mode with custom keymap yanks text on clic
bug#25715: 25.1; goto-address-mode with custom keymap yanks text on click
Tue, 14 Feb 2017 12:31:04 +1100
I use goto-address-mode, but I want to be able to left-click inside a
link without opening it. I've modified the goto-address-highlight-keymap
to accomplish this.
I can reproduce the problem easily with `emacs -Q`. Put the text below
into a buffer and use C-M-x to evalue the two top-level forms. At this
point I would expect clicking on the link to set the point and do
nothing else. Instead it yanks text into the buffer.
I have discovered that adding an extra ignored keybinding for mouse-2
fixes the problem. This confuses me because I'm only ever pressing my
left mouse button, mouse-1.
This seems like a bug to me :)
Thanks for looking!
;; demo text starts here
(let ((m (make-sparse-keymap)))
(define-key m (kbd "C-<mouse-1>") 'goto-address-at-point)
;; (define-key m (kbd "<mouse-2>") 'ignore) ; uncomment this line
to workaround the bug
(define-key m (kbd "C-c RET") 'goto-address-at-point)
;; demo text ends here
|[Prev in Thread]
||[Next in Thread]|
- bug#25715: 25.1; goto-address-mode with custom keymap yanks text on click,
James Bunton <=