From unknown Fri Aug 15 12:43:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2603 <2603@debbugs.gnu.org> To: bug#2603 <2603@debbugs.gnu.org> Subject: Status: defalias - doc string copied to definition Reply-To: bug#2603 <2603@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:43:45 +0000 retitle 2603 defalias - doc string copied to definition=20 reassign 2603 emacs submitter 2603 David Reitter severity 2603 normal thanks From david.reitter@gmail.com Sun Mar 8 19:39:40 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Mar 2009 02:39:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n292db6V020020 for ; Sun, 8 Mar 2009 19:39:38 -0700 Received: from mail.gnu.org ([66.92.78.42]:53255 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LgVOy-0006Yt-Pd for emacs-pretest-bug@gnu.org; Sun, 08 Mar 2009 22:39:37 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LgVOt-0001sM-80 for emacs-pretest-bug@gnu.org; Sun, 08 Mar 2009 22:39:36 -0400 Received: from mx20.gnu.org ([199.232.41.8]:36532) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgVOs-0001sC-QZ for emacs-pretest-bug@gnu.org; Sun, 08 Mar 2009 22:39:31 -0400 Received: from qw-out-1920.google.com ([74.125.92.148]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LgSdJ-00066D-BY for emacs-pretest-bug@gnu.org; Sun, 08 Mar 2009 19:42:13 -0400 Received: by qw-out-1920.google.com with SMTP id 4so789450qwk.24 for ; Sun, 08 Mar 2009 16:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:mime-version:subject:date:x-mailer; bh=dBTPAEMOlP82dT62B1BlHfg6PANkr7vDHVJjTFoCUiQ=; b=wwbEZcdCw/kyoBIiTM2hvtNYayA/0MkuhQAoXL2vHhWUEM2WP/v/U/d2BJJGRxnD37 qkdBcSqshXD5vgtdcfXtZbV8unSpooZc9uz4SX5SUtlOagcgvmF4GMz/A1AVNFkkcxAw eMDmZb58QtMqZTiyZCdOPkrrful9+pUEcheaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:mime-version:subject:date:x-mailer; b=bxRz7WvN2u6PhOh7Z21N64oNJ5g7PukD/f9woPbdq1eqg3IWyFOwZqrLSVfNiZot0i cB7xeys/gSwhxCw6vudSQNAa0LgTkw9V4xRIek43yAz9AOfc1RygLtxJ2guQkkR9DK2v cVQ4uZmXvKdeZHy4KjOhdhQFkwJTvXwMIkPGc= Received: by 10.224.28.77 with SMTP id l13mr6383080qac.19.1236555655223; Sun, 08 Mar 2009 16:40:55 -0700 (PDT) Received: from ?192.168.1.42? (pool-72-65-195-138.pitbpa.east.verizon.net [72.65.195.138]) by mx.google.com with ESMTPS id 5sm4460951ywl.18.2009.03.08.16.40.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Mar 2009 16:40:54 -0700 (PDT) Message-Id: From: David Reitter To: emacs-pretest-bug@gnu.org Content-Type: multipart/signed; boundary=Apple-Mail-81-550405975; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v930.3) Subject: defalias - doc string copied to definition Date: Sun, 8 Mar 2009 19:40:43 -0400 X-Mailer: Apple Mail (2.930.3) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. --Apple-Mail-81-550405975 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit It seems that a `defalias' call such as (defalias foo bar) will, in certain circumstances, set the doc string of BAR to the one of FOO, even though it should only set the doc string of FOO. It also contains "[Missing arglist. Please make a bug report.]". This happens in case where FOO is a Lisp function, BAR is a Lisp accessor to a function defined in C source, and the defalias occurs in a preloaded (?) file in lisp/term. The concrete example is in ns-win.el, for `ns-popup-font-panel'. With the defalias in place, the `ns-popup-font-panel' DOC string will be the one previously assigned to `generate-fontset-menu'. Note that the DOC file appears to contain the right (original) DOC strings for all functions. Setting the doc string directly using defalias will result in BAR having the defined doc string, but FOO's doc string will still be overwritten. ;; Set to use font panel instead (declare-function ns-popup-font-panel "nsfns.m" (&optional frame)) (defalias 'generate-fontset-menu 'ns-popup-font-panel "Pop up the font panel. This function has been overloaded in NS.") (defalias 'mouse-set-font 'ns-popup-font-panel "Pop up the font panel. This function has been overloaded in NS.") --Apple-Mail-81-550405975 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICED6shx13jEDrq0eL8FRq5ykwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MTIwOTAyMDgwMVoXDTA5MTIw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YDVQQKExxUaGF3dGUgQ29uc3Vs dGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWlu ZyBDQQIQPqyHHXeMQOurR4vwVGrnKTCBhwYLKoZIhvcNAQkQAgsxeKB2MGIxCzAJBgNVBAYTAlpB MSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUg UGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIQPqyHHXeMQOurR4vwVGrnKTANBgkqhkiG9w0B AQEFAASBgESsH3s9prPN8330pw/s6PXvWXd+tzJP1xP4zZ2ITjCgeFx+98pbp7ugCxZvpTASUmOX /9oSdJyH6nC+Eri6v1dTbZ/IH8o7ZU312SPkXrn3hXV7eCPFL9xzfYSj18xlu2GlqEEB4qmuyV68 ETGOvHZfUIalL/LZicgqu4Kc9ziNAAAAAAAA --Apple-Mail-81-550405975-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 08:47:26 2012 Received: (at 2603) by debbugs.gnu.org; 6 Feb 2012 13:47:26 +0000 Received: from localhost ([127.0.0.1]:56503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuOuj-0002Au-T8 for submit@debbugs.gnu.org; Mon, 06 Feb 2012 08:47:26 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:44923 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuOug-0002Ak-My for 2603@debbugs.gnu.org; Mon, 06 Feb 2012 08:47:23 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:58561 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RuOtr-00026b-ST; Mon, 06 Feb 2012 08:46:32 -0500 From: Chong Yidong To: David Reitter Subject: Re: bug#2603: defalias - doc string copied to definition References: Date: Mon, 06 Feb 2012 21:46:24 +0800 In-Reply-To: (David Reitter's message of "Sun, 8 Mar 2009 19:40:43 -0400") Message-ID: <87k440jcr3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 2603 Cc: 2603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) David Reitter writes: > It seems that a `defalias' call such as (defalias foo bar) will, in > certain circumstances, set the doc string of BAR to the one of FOO, > even though it should only set the doc string of FOO. It also > contains "[Missing arglist. Please make a bug report.]". > > This happens in case where FOO is a Lisp function, BAR is a Lisp > accessor to a function defined in C source, and the defalias occurs in > a preloaded (?) file in lisp/term. I've committed a fix. Thanks for the bug report. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 08:47:36 2012 Received: (at control) by debbugs.gnu.org; 6 Feb 2012 13:47:36 +0000 Received: from localhost ([127.0.0.1]:56506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuOut-0002BF-HE for submit@debbugs.gnu.org; Mon, 06 Feb 2012 08:47:35 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:44925 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuOus-0002B9-Aa for control@debbugs.gnu.org; Mon, 06 Feb 2012 08:47:34 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:58562 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RuOu3-00026u-89 for control@debbugs.gnu.org; Mon, 06 Feb 2012 08:46:44 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 2603 Date: Mon, 06 Feb 2012 21:46:37 +0800 Message-ID: <8739aoyszm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 2603 thanks From unknown Fri Aug 15 12:43:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Mar 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator