GNU bug report logs - #65064
Macro definition using C-h f

Previous Next

Package: emacs;

Reported by: Heime <heimeborgia <at> protonmail.com>

Date: Sat, 5 Aug 2023 06:44:02 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 65064 in the body.
You can then email your comments to 65064 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#65064; Package emacs. (Sat, 05 Aug 2023 06:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Heime <heimeborgia <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 05 Aug 2023 06:44:02 GMT) Full text and rfc822 format available.

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

From: Heime <heimeborgia <at> protonmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Macro definition using C-h f
Date: Sat, 05 Aug 2023 06:42:57 +0000
Have done the following macro, but calling `C-h f tak` shows the definition
as 

(tak &rest ARGS)

rather than

(tak &rest _ARGS)

(defmacro tak (&rest _args)
  "Performs no action, no matter how many arguments are passed."

  nil)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65064; Package emacs. (Sat, 05 Aug 2023 07:16:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Heime <heimeborgia <at> protonmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 65064 <at> debbugs.gnu.org
Subject: Re: bug#65064: Macro definition using C-h f
Date: Sat, 05 Aug 2023 10:15:59 +0300
tags 65064 notabug
thanks

> Date: Sat, 05 Aug 2023 06:42:57 +0000
> From:  Heime via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Have done the following macro, but calling `C-h f tak` shows the definition
> as 
> 
> (tak &rest ARGS)
> 
> rather than
> 
> (tak &rest _ARGS)
> 
> (defmacro tak (&rest _args)
>   "Performs no action, no matter how many arguments are passed."
> 
>   nil)

This is a feature: the leading '_' is an indication that the argument
is unused, but the argument's name is 'args', without the underscore.

This is not a bug.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 05 Aug 2023 07:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65064; Package emacs. (Sat, 05 Aug 2023 07:40:01 GMT) Full text and rfc822 format available.

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

From: Heime <heimeborgia <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65064 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#65064: Macro definition using C-h f
Date: Sat, 05 Aug 2023 07:39:04 +0000
------- Original Message -------
On Saturday, August 5th, 2023 at 7:15 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:


> tags 65064 notabug
> thanks
> 
> > Date: Sat, 05 Aug 2023 06:42:57 +0000
> > From: Heime via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org
> > 
> > Have done the following macro, but calling `C-h f tak` shows the definition
> > as
> > 
> > (tak &rest ARGS)
> > 
> > rather than
> > 
> > (tak &rest _ARGS)
> > 
> > (defmacro tak (&rest _args)
> > "Performs no action, no matter how many arguments are passed."
> > 
> > nil)
> 
> 
> This is a feature: the leading '_' is an indication that the argument
> is unused, but the argument's name is 'args', without the underscore.
> 
> This is not a bug.

Don't you need to show users that the argument is unused?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65064; Package emacs. (Wed, 09 Aug 2023 12:54:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Heime <heimeborgia <at> protonmail.com>
Cc: 65064 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#65064: Macro definition using C-h f
Date: Wed, 09 Aug 2023 08:53:33 -0400
> Don't you need to show users that the argument is unused?

We could add that as a new feature, but usually the docstring says it
instead, so it would often be redundant.


        Stefan





Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sat, 02 Sep 2023 16:45:01 GMT) Full text and rfc822 format available.

Notification sent to Heime <heimeborgia <at> protonmail.com>:
bug acknowledged by developer. (Sat, 02 Sep 2023 16:45:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65064-done <at> debbugs.gnu.org, Heime <heimeborgia <at> protonmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#65064: Macro definition using C-h f
Date: Sat, 2 Sep 2023 09:44:37 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> tags 65064 notabug
> thanks
>
>> Date: Sat, 05 Aug 2023 06:42:57 +0000
>> From:  Heime via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> Have done the following macro, but calling `C-h f tak` shows the definition
>> as
>>
>> (tak &rest ARGS)
>>
>> rather than
>>
>> (tak &rest _ARGS)
>>
>> (defmacro tak (&rest _args)
>>   "Performs no action, no matter how many arguments are passed."
>>
>>   nil)
>
> This is a feature: the leading '_' is an indication that the argument
> is unused, but the argument's name is 'args', without the underscore.
>
> This is not a bug.

I'm therefore closing this bug report.




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

This bug report was last modified 1 year and 222 days ago.

Previous Next


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