GNU bug report logs - #20157
25.0.50; `describe-key-briefly' shows byte-code for <mouse-movement>

Previous Next

Package: emacs;

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

Date: Sat, 21 Mar 2015 18:44:02 UTC

Severity: minor

Tags: fixed

Merged with 13841, 20942, 39848

Found in versions 24.3.50, 25.0.50, 26.3

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20157 in the body.
You can then email your comments to 20157 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20157; Package emacs. (Sat, 21 Mar 2015 18:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 21 Mar 2015 18:44:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; `describe-key-briefly' shows byte-code for <mouse-movement>
Date: Sat, 21 Mar 2015 11:43:21 -0700 (PDT)
I cannot easily give a recipe to repro this.  But using
`describe-key-briefly' with non-nil INSERT arg and clicking mouse-1
in some contexts gives me this:

<down-mouse-1> at that spot runs the command mouse-drag-region
<mouse-movement> runs the command #[257 "..." [(down-mouse-1
(#<window 26 on throw-show-key.el> 5007 (577 . 198) 152173811 nil
5007 (82 . 16) nil (3 . 6) (0 . 12))) (5007)
#<window 26 on throw-show-key.el> 0 44 0 nil event-end posn-point
mouse-movement integer-or-marker-p mouse--drag-set-mark-and-point
mouse-position mouse-scroll-subr nil auto-hscroll-mode] 9 "

(fn EVENT)" "e"]

where the "..." after the #[257 is really byte-code.

So far, I have not seen byte code for other key descriptions.

I say in some contexts because if I just put this in a buffer and use
C-x C-e on it, it just inserts "<mouse-movement> runs the command
ignore":

  (describe-key-briefly [mouse-movement] t)

So far, I have not seen byte-code for other key descriptions.

I tried using the debugger on this, but was unable to repro the problem
then.  Apparently, sometimes clicking mouse-1 causes the normal text
"runs the command ignore" to be used.  Sometimes it shows the byte code.

The preceding command, when it does this, seems always to be
`mouse-drag-region', from a <down-mouse-1> event.




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 26 Dec 2015 18:19:02 GMT) Full text and rfc822 format available.

Forcibly Merged 13841 20157. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Apr 2016 18:12:02 GMT) Full text and rfc822 format available.

Forcibly Merged 13841 20157 20942. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Apr 2016 20:05:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20157; Package emacs. (Wed, 09 Oct 2019 03:29:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: michael_heerdegen <at> web.de, 13841 <at> debbugs.gnu.org, 20157 <at> debbugs.gnu.org,
 drew.adams <at> oracle.com
Subject: Re: bug#13841: 24.3.50; Regression - unreadable `C-h k' help
Date: Wed, 09 Oct 2019 05:28:17 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> > No, I think we should forbid using a lambda as a user-visible key
>> > binding.
>> 
>> I think we should avoid doing so in the code in Emacs
>
> That's what I meant, yes.

I have now fixed this in menu-bar.el for the original reported case (and
the ones in nearby menus).  There may be more lurking other places, but
we can fix those if somebody reports them, I guess.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 03:29:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 20157 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 03:29:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20157; Package emacs. (Wed, 09 Oct 2019 10:58:03 GMT) Full text and rfc822 format available.

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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 20157 <at> debbugs.gnu.org, 13841 <at> debbugs.gnu.org,
 drew.adams <at> oracle.com
Subject: Re: bug#13841: 24.3.50; Regression - unreadable `C-h k' help
Date: Wed, 09 Oct 2019 12:57:32 +0200
[Message part 1 (text/plain, inline)]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I have now fixed this in menu-bar.el for the original reported case (and
> the ones in nearby menus).  There may be more lurking other places, but
> we can fix those if somebody reports them, I guess.

Thanks.

I don't recall: did we want to fix only compiled lambdas, or any
anonymous functions (including quoted lambdas)?

Attached a quick rough search for candidates (search for "-->") - is any
of them problematic?


Regards,

Michael.

[menu-bar-lambdas.el (application/emacs-lisp, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20157; Package emacs. (Wed, 09 Oct 2019 18:58:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 20157 <at> debbugs.gnu.org, 13841 <at> debbugs.gnu.org,
 drew.adams <at> oracle.com
Subject: Re: bug#13841: 24.3.50; Regression - unreadable `C-h k' help
Date: Wed, 09 Oct 2019 20:57:30 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> I don't recall: did we want to fix only compiled lambdas, or any
> anonymous functions (including quoted lambdas)?

All key bindings (including menu ones) should be to named functions, I
think.  That allows inspection via `C-h k' and the user can jump to the
function definition to see what it does.

> Attached a quick rough search for candidates (search for "-->") - is any
> of them problematic?

All of them should be changed, I think, although the
tab-bar-make-keymap-1 looks a bit difficult to deal with.

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Nov 2019 12:24:07 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 01 Mar 2020 04:05:02 GMT) Full text and rfc822 format available.

Forcibly Merged 13841 20157 20942 39848. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 01 Mar 2020 04:05:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Mar 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 20 days ago.

Previous Next


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