From unknown Wed Jun 25 05:41:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64328: 28.2; describe-function shows wrong arguments Resent-From: tom@logand.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 64328@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168796953514411 (code B ref -1); Wed, 28 Jun 2023 16:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2023 16:25:35 +0000 Received: from localhost ([127.0.0.1]:51480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXz4-0003kN-Vu for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:25:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:35044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXz1-0003kD-Eq for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:25:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEXyz-0002jr-V3 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 12:25:31 -0400 Received: from logand.com ([37.48.87.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEXyy-00057W-00 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 12:25:29 -0400 Received: by logand.com (Postfix, from userid 1001) id 5E34119E6D1; Wed, 28 Jun 2023 18:25:17 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) From: tom@logand.com Date: Wed, 28 Jun 2023 18:25:15 +0200 Message-ID: <87fs6b4kr8.fsf@logand.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, 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) Cheers, Tomas In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) System Description: NixOS 22.11 (Raccoon) Configured using: 'configure --prefix=/nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2 --disable-build-details --with-modules --with-x-toolkit=no --with-xft --with-cairo --with-native-compilation --without-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB Important settings: value of $EMACSLOADPATH: value of $EMACSNATIVELOADPATH: /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/native-lisp:: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: eev-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/git/emacs-unoffice/junk hides ~/git/emacs-pdf/junk ~/git/emacs-unoffice/junk hides ~/git/emacs-framebuffer/junk /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/site-start /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/ivy-20220926.1250/elpa hides /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/lispy-20221114.2013/elpa /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/site-lisp/site-start /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/transient-20221118.1443/transient hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/transient /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/let-alist /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/nadvice-0.3/nadvice hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/nadvice Features: (shadow emacsbug jka-compr misearch multi-isearch macrostep-c cmacexp cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs eieio-opt speedbar ezimage dframe help-fns radix-tree mm-archive rect mailalias sendmail feedmail qp sort mail-extr gnutls network-stream url-http url-gw nsm url-cache url-auth mule-util tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time ls-lisp term/xterm xterm elm-mode elm-interactive elm-font-lock elm-indent-simple elm-indent elm-imenu elm-format reformatter elm-tags elm-util pulse color let-alist f f-shortdoc shortdoc bmenu watch term2 shell2 vc-git vc-dispatcher emacs-btap ffap emacs-unoffice view org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol org-keys oc org-compat org-macs org-loaddefs find-func emacs-pdf printing ps-print ps-print-loaddefs ps-def lpr emacs-framebuffer eev-beginner eev-load eev-rcirc eev-videolinks eev-audiovideo eev-wconfig eev-rstdoc eev-helpful eev-kla eev-testblocks eev-edit eev-pdflike eejump eev-brxxx eev-code eev-hlinks eev-tlinks eev-wrap eev-env eev-elinks eev-plinks eev-blinks eev-template0 eev-anchors eev-codings eepitch disp-table eev-mode eev-eval eev-multiwindow eev-flash eev-intro dumb-jump popup s email-eww cltl clhs notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag notmuch-lib notmuch-compat pcase hl-line mm-view mml-smime smime dig eww-lnum eww xdg url-queue shr kinsoku svg xml dom mm-url gnus nnheader wid-edit magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff git-commit log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete server magit-mode transient comp comp-cstr warnings rx cl-extra help-mode magit-git magit-base magit-section format-spec crm dash compat-27 compat-26 compat compat-macs diff-mode paredit slime-asdf grep slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree advice slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fancy-trace slime-fancy-inspector slime-fuzzy slime-c-p-c slime-autodoc slime-editing-commands slime-repl slime-parse slime compile text-property-search etags fileloop generator xref project arc-mode archive-mode noutline outline pp comint ansi-color ring hyperspec thingatpt picolisp tsm easy-mmode edmacro kmacro slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 7636108 781998) (symbols 48 36402 15) (strings 32 608067 70988) (string-bytes 1 31315435) (vectors 16 73421) (vector-slots 8 1977235 355884) (floats 8 654 769) (intervals 56 1485889 43056) (buffers 992 31)) From unknown Wed Jun 25 05:41:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64328: 28.2; describe-function shows wrong arguments Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: tom@logand.com Cc: 64328@debbugs.gnu.org Received: via spool by 64328-submit@debbugs.gnu.org id=B64328.168797007815307 (code B ref 64328); Wed, 28 Jun 2023 16:35:02 +0000 Received: (at 64328) by debbugs.gnu.org; 28 Jun 2023 16:34:38 +0000 Received: from localhost ([127.0.0.1]:51490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEY7q-0003yo-CN for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:34:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEY7o-0003yY-JN; Wed, 28 Jun 2023 12:34:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEY7j-0001Gz-4b; Wed, 28 Jun 2023 12:34:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RjMWXwBFR8mBOkno8YiL5Cg61mUjvE16FvILSrXsPH8=; b=TChBwam4FFXn kKI1S3LGz8KemAT1mu0ni0ik5lNEhP4L2iEf4B7AgX3lScO5SAj2TDkoGR5Rn+7OMgJnZ5XmJO6W4 BRvHesvxEjrMMfjrrMwlwJbeWGTN5RsDBJksVDTIoOmxKZ81tpAVefbRroUnuaOvdWcNlXhBPc6jZ gPWC4MquSDcWDKMCMtea4wcBBqfj4pZd5pjxizjButkdQ5haQzqD83Md6m46bi80FcgEJHkYTOW1E dVmIMqFidaEWWcyNXvmYASC8V3wJMCM+h2vqc4S/mjhOSj/2YuEbV1S395lc0BTnF91cAUcq2uBwA 28gBo5QkG3K1YjVgEJtZEw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEY7i-0001je-Js; Wed, 28 Jun 2023 12:34:30 -0400 Date: Wed, 28 Jun 2023 19:34:55 +0300 Message-Id: <835y77v93k.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87fs6b4kr8.fsf@logand.com> (tom@logand.com) References: <87fs6b4kr8.fsf@logand.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Wed Jun 25 05:41:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64328: 28.2; describe-function shows wrong arguments Resent-From: Tomas Hlavaty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 64328@debbugs.gnu.org Received: via spool by 64328-submit@debbugs.gnu.org id=B64328.168797072921776 (code B ref 64328); Wed, 28 Jun 2023 16:46:02 +0000 Received: (at 64328) by debbugs.gnu.org; 28 Jun 2023 16:45:29 +0000 Received: from localhost ([127.0.0.1]:51517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEYIK-0005eb-UK for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:45:29 -0400 Received: from logand.com ([37.48.87.44]:34468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEYIG-0005Nd-4W for 64328@debbugs.gnu.org; Wed, 28 Jun 2023 12:45:28 -0400 Received: by logand.com (Postfix, from userid 1001) id 1AFFC19E6D7; Wed, 28 Jun 2023 18:45:23 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) From: Tomas Hlavaty In-Reply-To: <835y77v93k.fsf@gnu.org> References: <87fs6b4kr8.fsf@logand.com> <835y77v93k.fsf@gnu.org> Date: Wed, 28 Jun 2023 18:45:21 +0200 Message-ID: <87bkgz4jtq.fsf@logand.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed 28 Jun 2023 at 19:34, Eli Zaretskii wrote: > 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". interesting > This is not a bug. sorry for the noise From unknown Wed Jun 25 05:41:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: tom@logand.com Subject: bug#64328: closed (Re: bug#64328: 28.2; describe-function shows wrong arguments) Message-ID: References: <83352bv3oa.fsf@gnu.org> <87fs6b4kr8.fsf@logand.com> X-Gnu-PR-Message: they-closed 64328 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 64328@debbugs.gnu.org Date: Wed, 28 Jun 2023 18:32:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1687977122-15071-1" This is a multi-part message in MIME format... ------------=_1687977122-15071-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #64328: 28.2; describe-function shows wrong arguments which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 64328@debbugs.gnu.org. --=20 64328: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64328 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1687977122-15071-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 64328-done) by debbugs.gnu.org; 28 Jun 2023 18:31:57 +0000 Received: from localhost ([127.0.0.1]:51602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZxN-0003ui-Di for submit@debbugs.gnu.org; Wed, 28 Jun 2023 14:31:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZxL-0003uW-NI for 64328-done@debbugs.gnu.org; Wed, 28 Jun 2023 14:31:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEZx5-0005h0-Co; Wed, 28 Jun 2023 14:31:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HE2g/BcqHUVUUnin+A/SIZ+xQC2YPl7uTR3eHPkB5EE=; b=PshE0mpgJ4BA juyw2Js6Ec5z8bCjOJy7MjtbUPy8qr8XzJeQzSU1H3DQzhtbHQ9aggZKTOOEJTlbNi9uVKn85XF5e l1l+OzAmLq235LwDJRkWou/5qhTXqm1GG+0iOjeA4kSs0S6JvjJMZT22pz+j4bUKUFUOIaNZwAyew Dt0meudPeuqmmsFILp0gwp9MUeeholZr1d/+ZR5xq8lFCsyzZrpcga59j03nLcw65m8VHCxAphf8J rC9hQGOzn15IM2Sgh2lctjqR5vproxHriuFRefk/g2rvcmRgtRNU4fKzwvIY30t8Ctn6ivZZeqxAA Dts/noVQStf6ryWasvJsYA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEZx4-0002RT-TE; Wed, 28 Jun 2023 14:31:39 -0400 Date: Wed, 28 Jun 2023 21:32:05 +0300 Message-Id: <83352bv3oa.fsf@gnu.org> From: Eli Zaretskii To: Tomas Hlavaty In-Reply-To: <87bkgz4jtq.fsf@logand.com> (message from Tomas Hlavaty on Wed, 28 Jun 2023 18:45:21 +0200) Subject: Re: bug#64328: 28.2; describe-function shows wrong arguments References: <87fs6b4kr8.fsf@logand.com> <835y77v93k.fsf@gnu.org> <87bkgz4jtq.fsf@logand.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64328-done Cc: 64328-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tomas Hlavaty > Cc: 64328@debbugs.gnu.org > Date: Wed, 28 Jun 2023 18:45:21 +0200 > > On Wed 28 Jun 2023 at 19:34, Eli Zaretskii wrote: > > 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". > > interesting > > > This is not a bug. > > sorry for the noise No sweat. I'm therefore closing this bug. ------------=_1687977122-15071-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jun 2023 16:25:35 +0000 Received: from localhost ([127.0.0.1]:51480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXz4-0003kN-Vu for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:25:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:35044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXz1-0003kD-Eq for submit@debbugs.gnu.org; Wed, 28 Jun 2023 12:25:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEXyz-0002jr-V3 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 12:25:31 -0400 Received: from logand.com ([37.48.87.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEXyy-00057W-00 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 12:25:29 -0400 Received: by logand.com (Postfix, from userid 1001) id 5E34119E6D1; Wed, 28 Jun 2023 18:25:17 +0200 (CEST) X-Mailer: emacs 28.2 (via feedmail 11-beta-1 I) From: tom@logand.com To: bug-gnu-emacs@gnu.org Subject: 28.2; describe-function shows wrong arguments Date: Wed, 28 Jun 2023 18:25:15 +0200 Message-ID: <87fs6b4kr8.fsf@logand.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, 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) Cheers, Tomas In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) System Description: NixOS 22.11 (Raccoon) Configured using: 'configure --prefix=/nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2 --disable-build-details --with-modules --with-x-toolkit=no --with-xft --with-cairo --with-native-compilation --without-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB Important settings: value of $EMACSLOADPATH: value of $EMACSNATIVELOADPATH: /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/native-lisp:: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: eev-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/git/emacs-unoffice/junk hides ~/git/emacs-pdf/junk ~/git/emacs-unoffice/junk hides ~/git/emacs-framebuffer/junk /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/site-start /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/ivy-20220926.1250/elpa hides /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/lispy-20221114.2013/elpa /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/site-lisp/site-start /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/transient-20221118.1443/transient hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/transient /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/let-alist /nix/store/aimwkbak11abj52c69dn0vn24dc7l6f4-emacs-packages-deps/share/emacs/site-lisp/elpa/nadvice-0.3/nadvice hides /nix/store/6wsl2kxw9vdhx79lvaprpil33vrvhgwp-emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/nadvice Features: (shadow emacsbug jka-compr misearch multi-isearch macrostep-c cmacexp cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs eieio-opt speedbar ezimage dframe help-fns radix-tree mm-archive rect mailalias sendmail feedmail qp sort mail-extr gnutls network-stream url-http url-gw nsm url-cache url-auth mule-util tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time ls-lisp term/xterm xterm elm-mode elm-interactive elm-font-lock elm-indent-simple elm-indent elm-imenu elm-format reformatter elm-tags elm-util pulse color let-alist f f-shortdoc shortdoc bmenu watch term2 shell2 vc-git vc-dispatcher emacs-btap ffap emacs-unoffice view org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol org-keys oc org-compat org-macs org-loaddefs find-func emacs-pdf printing ps-print ps-print-loaddefs ps-def lpr emacs-framebuffer eev-beginner eev-load eev-rcirc eev-videolinks eev-audiovideo eev-wconfig eev-rstdoc eev-helpful eev-kla eev-testblocks eev-edit eev-pdflike eejump eev-brxxx eev-code eev-hlinks eev-tlinks eev-wrap eev-env eev-elinks eev-plinks eev-blinks eev-template0 eev-anchors eev-codings eepitch disp-table eev-mode eev-eval eev-multiwindow eev-flash eev-intro dumb-jump popup s email-eww cltl clhs notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag notmuch-lib notmuch-compat pcase hl-line mm-view mml-smime smime dig eww-lnum eww xdg url-queue shr kinsoku svg xml dom mm-url gnus nnheader wid-edit magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff git-commit log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete server magit-mode transient comp comp-cstr warnings rx cl-extra help-mode magit-git magit-base magit-section format-spec crm dash compat-27 compat-26 compat compat-macs diff-mode paredit slime-asdf grep slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree advice slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fancy-trace slime-fancy-inspector slime-fuzzy slime-c-p-c slime-autodoc slime-editing-commands slime-repl slime-parse slime compile text-property-search etags fileloop generator xref project arc-mode archive-mode noutline outline pp comint ansi-color ring hyperspec thingatpt picolisp tsm easy-mmode edmacro kmacro slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 7636108 781998) (symbols 48 36402 15) (strings 32 608067 70988) (string-bytes 1 31315435) (vectors 16 73421) (vector-slots 8 1977235 355884) (floats 8 654 769) (intervals 56 1485889 43056) (buffers 992 31)) ------------=_1687977122-15071-1--