bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64328: 28.2; describe-function shows wrong arguments


From: Eli Zaretskii
Subject: bug#64328: 28.2; describe-function shows wrong arguments
Date: Wed, 28 Jun 2023 19:34:55 +0300

tags 64328 notabug
thanks

> From: tom@logand.com
> Date: Wed, 28 Jun 2023 18:25:15 +0200
> 
> I have noticed that describe-function sometimes shows wrong arguments.
> Example:
> 
> (describe-function 'call-process-shell-command)
> 
> shows
> 
> (call-process-shell-command COMMAND &optional INFILE BUFFER DISPLAY)
> 
> but the function is defined as follows:
> 
> (defun call-process-shell-command (command &optional infile buffer display
>                                          &rest args)

That's on purpose: we want the function to be called as
describe-function says, not as the source code says.  This is called
"advertised calling convention".

This is not a bug.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]