GNU bug report logs - #77311
Minor documentation fix (`use-package')

Previous Next

Package: emacs;

Reported by: Dominik Schrempf <dominik.schrempf <at> gmail.com>

Date: Thu, 27 Mar 2025 15:02:04 UTC

Severity: normal

Tags: patch

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 77311 in the body.
You can then email your comments to 77311 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#77311; Package emacs. (Thu, 27 Mar 2025 15:02:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dominik Schrempf <dominik.schrempf <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Mar 2025 15:02:05 GMT) Full text and rfc822 format available.

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

From: Dominik Schrempf <dominik.schrempf <at> gmail.com>
To: "Emacs Bug Tracker" <bug-gnu-emacs <at> gnu.org>
Subject: Minor documentation fix (`use-package')
Date: Thu, 27 Mar 2025 16:01:33 +0100
[Message part 1 (text/plain, inline)]
Hello,

I attach a suggested minor patch of the documentation of `use-package'.

[0001-Fix-minor-issues-in-documentation-of-use-package.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 28 Mar 2025 00:12:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77311; Package emacs. (Sat, 29 Mar 2025 10:05:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dominik Schrempf <dominik.schrempf <at> gmail.com>
Cc: 77311 <at> debbugs.gnu.org
Subject: Re: bug#77311: Minor documentation fix (`use-package')
Date: Sat, 29 Mar 2025 13:04:43 +0300
> From: Dominik Schrempf <dominik.schrempf <at> gmail.com>
> Date: Thu, 27 Mar 2025 16:01:33 +0100
> 
> I attach a suggested minor patch of the documentation of `use-package'.

Thanks, see some comments below.

> --- a/lisp/use-package/use-package-core.el
> +++ b/lisp/use-package/use-package-core.el
> @@ -1849,11 +1849,11 @@ Usage:
>  :magic-fallback  Form to be added to `magic-fallback-mode-alist'.
>  :interpreter     Form to be added to `interpreter-mode-alist'.
>  
> -:commands        Define autoloads for commands that will be defined by the
> +:commands        Define autoloads for interactive commands defined by the
>                   package.  This is useful if the package is being lazily
> -                 loaded, and you wish to conditionally call functions in your
> -                 `:init' block that are defined in the package.
> -:autoload        Similar to :commands, but it for no-interactive one.
> +                 loaded, and you wish to conditionally call functions in
> +                 your `:init' block that are defined in the package.
> +:autoload        Similar to `:commands', but used for non-interactive commands.
>  :hook            Specify hook(s) to attach this package to.
>  
>  :bind            Bind keys, and define autoloads for the bound commands.

A command is always interactive.  So saying "interactive commands" is
a kind-of tautology, and "non-interactive commands" is something that
doesn't exist in Emacs.

My suggestion is to leave the description of :commands unchanged, and
modify :autoload to say that its for non-interactive functions.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77311; Package emacs. (Sat, 29 Mar 2025 13:55:02 GMT) Full text and rfc822 format available.

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

From: Dominik Schrempf <dominik.schrempf <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77311 <at> debbugs.gnu.org
Subject: Re: bug#77311: Minor documentation fix (`use-package')
Date: Sat, 29 Mar 2025 14:54:39 +0100
[Message part 1 (text/plain, inline)]
Hi,

thanks for your comments.

Please find attached the updated patch. I still changed the tense used
in the documentation of `:commands'.

Best,
Dominik

[0001-Fix-minor-issues-in-documentation-of-use-package.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Dominik Schrempf <dominik.schrempf <at> gmail.com>
>> Date: Thu, 27 Mar 2025 16:01:33 +0100
>>
>> I attach a suggested minor patch of the documentation of `use-package'.
>
> Thanks, see some comments below.
>
>> --- a/lisp/use-package/use-package-core.el
>> +++ b/lisp/use-package/use-package-core.el
>> @@ -1849,11 +1849,11 @@ Usage:
>>  :magic-fallback  Form to be added to `magic-fallback-mode-alist'.
>>  :interpreter     Form to be added to `interpreter-mode-alist'.
>>
>> -:commands        Define autoloads for commands that will be defined by the
>> +:commands        Define autoloads for interactive commands defined by the
>>                   package.  This is useful if the package is being lazily
>> -                 loaded, and you wish to conditionally call functions in your
>> -                 `:init' block that are defined in the package.
>> -:autoload        Similar to :commands, but it for no-interactive one.
>> +                 loaded, and you wish to conditionally call functions in
>> +                 your `:init' block that are defined in the package.
>> +:autoload        Similar to `:commands', but used for non-interactive commands.
>>  :hook            Specify hook(s) to attach this package to.
>>
>>  :bind            Bind keys, and define autoloads for the bound commands.
>
> A command is always interactive.  So saying "interactive commands" is
> a kind-of tautology, and "non-interactive commands" is something that
> doesn't exist in Emacs.
>
> My suggestion is to leave the description of :commands unchanged, and
> modify :autoload to say that its for non-interactive functions.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 29 Mar 2025 14:19:02 GMT) Full text and rfc822 format available.

Notification sent to Dominik Schrempf <dominik.schrempf <at> gmail.com>:
bug acknowledged by developer. (Sat, 29 Mar 2025 14:19:03 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dominik Schrempf <dominik.schrempf <at> gmail.com>
Cc: 77311-done <at> debbugs.gnu.org
Subject: Re: bug#77311: Minor documentation fix (`use-package')
Date: Sat, 29 Mar 2025 17:17:43 +0300
> From: Dominik Schrempf <dominik.schrempf <at> gmail.com>
> Cc: 77311 <at> debbugs.gnu.org
> Date: Sat, 29 Mar 2025 14:54:39 +0100
> 
> thanks for your comments.
> 
> Please find attached the updated patch. I still changed the tense used
> in the documentation of `:commands'.

Thanks, installed on the emacs-30 branch, and closing the bug.




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

This bug report was last modified 49 days ago.

Previous Next


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