GNU bug report logs - #20398
25.0.50; Clicking `window-divider-last-pixel' in help for `window-divider'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 21 Apr 2015 20:03:02 UTC

Severity: minor

Merged with 19185

Found in version 25.0.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #55 received at 20398 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>, 
 Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 20398 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#20398: 25.0.50; Clicking `window-divider-last-pixel' in help
 for `window-divider'
Date: Sun, 01 May 2016 10:23:50 +0200
>>>> (define-key map [backtab] 'widget-backward)
>>>> (define-key map [down-mouse-2] 'widget-button-click)
>>>> (define-key map [down-mouse-1] 'widget-button-click)
>>>> +    ;; Avoid `mouse-yank-primary' with `mouse-1-click-follows-link'
>>>> +    ;; non-nil (Bug#19185).
>>>> +    (define-key map [mouse-2] 'widget-button-click)
>
>> That seems to imply that widget-button-click will be run twice (once on
>> the down part and once on the up part).
>> How 'bout binding one of the two to `undefined' instead?
>
> Or just *move* the binding from [down-mouse-2] to [mouse-2] (since it's
> a click binding and clicks should be bound to the up event rather than
> the down event).

Shouldn't we then do the same here:

>>>> (define-key map [down-mouse-1] 'widget-button-click)

martin




This bug report was last modified 9 years and 25 days ago.

Previous Next


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