GNU bug report logs - #64328
28.2; describe-function shows wrong arguments

Previous Next

Package: emacs;

Reported by: tom <at> logand.com

Date: Wed, 28 Jun 2023 16:26:02 UTC

Severity: normal

Tags: notabug

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: tom <at> logand.com
Cc: 64328 <at> debbugs.gnu.org
Subject: Re: bug#64328: 28.2; describe-function shows wrong arguments
Date: Wed, 28 Jun 2023 19:34:55 +0300
tags 64328 notabug
thanks

> From: tom <at> 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.




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

Previous Next


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