[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
From: |
Lars Ingebrigtsen |
Subject: |
bug#25715: 25.1; goto-address-mode with custom keymap yanks text on click |
Date: |
Fri, 26 Jul 2019 16:11:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
James Bunton <jamesbunton@delx.net.au> writes:
> 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 :)
(I'm going through older Emacs bug reports that have received no
response.)
This looks like it's been fixed in the years since you made the bug
report. The definition of the keymap is now:
(defvar goto-address-highlight-keymap
(let ((m (make-sparse-keymap)))
(define-key m (kbd "<mouse-2>") 'goto-address-at-point)
(define-key m (kbd "C-c RET") 'goto-address-at-point)
m)
"Keymap to hold goto-addr's mouse key defs under highlighted URLs.")
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#25715: 25.1; goto-address-mode with custom keymap yanks text on click,
Lars Ingebrigtsen <=