GNU bug report logs - #51561
29.0.50; overlay keymaps do not respect mouse-1 logic

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Tue, 2 Nov 2021 02:41:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 51561 <at> debbugs.gnu.org
Subject: bug#51561: 29.0.50; overlay keymaps do not respect mouse-1 logic
Date: Tue, 02 Nov 2021 03:48:54 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Putting follow-link in a keymap is supposed to make
> mouse-1-click-follows-link do its thing.

No, it isn't.  You have to put this incantation into an overlay for it
to be a link.  Which is slightly logical, I guess?

      (overlay-put o 'follow-link 'mouse-face)
      (overlay-put o 'mouse-face 'highlight)

So there's nothing to fix here, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.