GNU bug report logs - #34785
26.1; fake function-key typos

Previous Next

Package: emacs;

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

Date: Fri, 8 Mar 2019 01:29:01 UTC

Severity: minor

Tags: notabug

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.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 34785 in the body.
You can then email your comments to 34785 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#34785; Package emacs. (Fri, 08 Mar 2019 01:29: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. (Fri, 08 Mar 2019 01:29: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: 26.1; fake function-key typos
Date: Thu, 7 Mar 2019 17:28:19 -0800 (PST)
(elisp) `Modifying Menu' has an example that uses fake function keys
<drink> and <eat>, but it writes these as <DRINK> and <EAT>.


In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 08 Mar 2019 13:39:02 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 08 Mar 2019 13:39:02 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Fri, 08 Mar 2019 13:39:03 GMT) Full text and rfc822 format available.

Message #12 received at 34785-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 34785-done <at> debbugs.gnu.org
Subject: Re: bug#34785: 26.1; fake function-key typos
Date: Fri, 08 Mar 2019 15:37:55 +0200
tags 34785 notabug
thanks

> Date: Thu, 7 Mar 2019 17:28:19 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> (elisp) `Modifying Menu' has an example that uses fake function keys
> <drink> and <eat>, but it writes these as <DRINK> and <EAT>.

That is correct, since key labels are up-cased.  Cf. <RET>, <DEL>,
etc.

This is not a bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34785; Package emacs. (Fri, 08 Mar 2019 17:09:02 GMT) Full text and rfc822 format available.

Message #15 received at 34785-done <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 34785-done <at> debbugs.gnu.org
Subject: RE: bug#34785: 26.1; fake function-key typos
Date: Fri, 8 Mar 2019 09:08:34 -0800 (PST)
> tags 34785 notabug
> thanks
> 
> > Date: Thu, 7 Mar 2019 17:28:19 -0800 (PST)
> > From: Drew Adams <drew.adams <at> oracle.com>
> >
> > (elisp) `Modifying Menu' has an example that uses fake function keys
> > <drink> and <eat>, but it writes these as <DRINK> and <EAT>.
> 
> That is correct, since key labels are up-cased.  Cf. <RET>, <DEL>,
> etc.
> 
> This is not a bug.

Elsewhere in the manual, "fake function key" refers
to the symbol itself - e.g., in node `Menu Bar':

 "the fake function key 'menu-bar'"

Not `<menu-bar>'.  And not `<MENU-BAR>'.

 "To add an item to the menu bar, invent a fake function key of your
  own (let's call it KEY), and make a binding for the key sequence
  '[menu-bar KEY]'."

Not `<KEY>'.  (And KEY is a placeholder here.)

 "Here, 'edit' is the fake function key"

 "a list of fake function keys.... The default value
  is '(help-menu)'"

Not `(<help-menu>)'.  And not `<HELP-MENU>'.

And in node `Tool Bar':

 "fake function key called 'tool-bar'"

Not `(<tool-bar>)'.  And not `<TOOL-BAR>'.

The bug I cited is the only place where the treatment
is different, whether or not you argue that `<EAT>'
there is a key label.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34785; Package emacs. (Sat, 09 Mar 2019 11:25:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 34785 <at> debbugs.gnu.org
Subject: Re: bug#34785: 26.1; fake function-key typos
Date: Sat, 09 Mar 2019 13:24:32 +0200
> Date: Fri, 8 Mar 2019 09:08:34 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 34785-done <at> debbugs.gnu.org
> 
> Elsewhere in the manual, "fake function key" refers
> to the symbol itself

Some of those are bugs, some not.

> e.g., in node `Menu Bar':
> 
>  "the fake function key 'menu-bar'"
> 
> Not `<menu-bar>'.  And not `<MENU-BAR>'.

Fixed.

>  "To add an item to the menu bar, invent a fake function key of your
>   own (let's call it KEY), and make a binding for the key sequence
>   '[menu-bar KEY]'."
> 
> Not `<KEY>'.  (And KEY is a placeholder here.)

Exactly, and so it shouldn't be marked up as a key.

>  "Here, 'edit' is the fake function key"

I fixed this in a different way.

>  "a list of fake function keys.... The default value
>   is '(help-menu)'"
> 
> Not `(<help-menu>)'.  And not `<HELP-MENU>'.

Here help-menu is a symbol in a list, so the markup is correct.

> And in node `Tool Bar':
> 
>  "fake function key called 'tool-bar'"
> 
> Not `(<tool-bar>)'.  And not `<TOOL-BAR>'.

Fixed.

> The bug I cited is the only place where the treatment
> is different, whether or not you argue that `<EAT>'
> there is a key label.

That place uses the correct markup.

Thanks.




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

This bug report was last modified 5 years and 14 days ago.

Previous Next


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