From unknown Mon Aug 18 11:22:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4395: 23.1; byte-compiler loses top-level (put 'x...) Reply-To: "Drew Adams" , 4395@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Sep 2009 00:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125262751431236 (code B ref -1); Fri, 11 Sep 2009 00:15:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2009 00:05:14 +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=-2.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8B05CuK031193 for ; Thu, 10 Sep 2009 17:05:13 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MltdY-0003Nw-5g for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 20:05:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MltdT-0003L9-Ev for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 20:05:11 -0400 Received: from [199.232.76.173] (port=53137 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MltdT-0003L6-BW for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 20:05:07 -0400 Received: from acsinet12.oracle.com ([141.146.126.234]:57533) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MltdS-0007QY-O1 for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 20:05:07 -0400 Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8B04LVT008915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Sep 2009 00:04:22 GMT Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8B05Nr4019063 for ; Fri, 11 Sep 2009 00:05:23 GMT Received: from dradamslap1 (/141.144.80.125) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Sep 2009 17:05:01 -0700 From: "Drew Adams" To: Date: Thu, 10 Sep 2009 17:04:59 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acoyc4DbueuPJ/Z9QmSiFiJqqzJBcw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt001.oracle.com [141.146.116.10] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4AA9942D.0132:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 1. emacs -Q Put these sexps somewhere at the top level of a file foo.el: (require 'bar) ... (put 'thevar 'variable-documentation "The new doc string") ... (provide 'foo) Put these sexps in file bar.el: (defvar thevar 42 "Original doc string.") ... (provide 'bar) Byte-compile the files. emacs -Q Load library foo. C-h v the-var The doc shown is the original doc string. The top-level `put' had no effect. Doing the same thing using the *.el instead of *.elc works - no problem. It also works, with the byte-compiled files, if you wrap the `put' sexp in `when': (when t (put 'foovar 'variable-documentation "The new doc string")) (Actually, I tried with (require 'XXX) instead of t.) 2. It also works with the byte-compiled files, if you add a vacuous defvar to foo.el: (defvar thevar) (put 'thevar 'variable-documentation "The new doc string") That is the approach used in library cc-vars.el. If this is a recommended cliche, or is the only good way to change the doc string of a var, then it needs to be documented in the Elisp manual. 3. Feature request: Have something similar to defadvice for a variable, at least to be able to add to its doc string. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' From unknown Mon Aug 18 11:22:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4395: 23.1; byte-compiler loses top-level (put 'x...) Reply-To: Stefan Monnier , 4395@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Sep 2009 02:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4395-submit@emacsbugs.donarmstrong.com id=B4395.125263576023594 (code B ref 4395); Fri, 11 Sep 2009 02:30:05 +0000 Received: (at 4395) by emacsbugs.donarmstrong.com; 11 Sep 2009 02:22: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=-2.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.183] (may be forged)) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8B2McVF023586 for <4395@emacsbugs.donarmstrong.com>; Thu, 10 Sep 2009 19:22:39 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkEAGNRqUpFpZBe/2dsb2JhbACBU90KhBgFh20 X-IronPort-AV: E=Sophos;i="4.44,367,1249272000"; d="scan'208";a="45549992" Received: from 69-165-144-94.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.94]) by ironport2-out.pppoe.ca with ESMTP; 10 Sep 2009 22:21:02 -0400 Received: by pastel.home (Postfix, from userid 20848) id EB8FE7F87; Thu, 10 Sep 2009 22:22:32 -0400 (EDT) From: Stefan Monnier To: Drew Adams Cc: 4395@debbugs.gnu.org Message-ID: References: Date: Thu, 10 Sep 2009 22:22:32 -0400 In-Reply-To: (Drew Adams's message of "Thu, 10 Sep 2009 17:04:59 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > C-h v the-var > The doc shown is the original doc string. The top-level `put' had no > effect. I cannot reproduce this. Neither with Debian's Emacs-23.1, nor with the CVS trunk. Stefan From unknown Mon Aug 18 11:22:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4395: 23.1; byte-compiler loses top-level (put 'x...) Reply-To: "Drew Adams" , 4395@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Sep 2009 14:30:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4395-submit@emacsbugs.donarmstrong.com id=B4395.125267904728724 (code B ref 4395); Fri, 11 Sep 2009 14:30:07 +0000 Received: (at 4395) by emacsbugs.donarmstrong.com; 11 Sep 2009 14:24:07 +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=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from acsinet12.oracle.com (acsinet12.oracle.com [141.146.126.234]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8BEO6G5028716 for <4395@emacsbugs.donarmstrong.com>; Fri, 11 Sep 2009 07:24:07 -0700 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8BENGvl005566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Sep 2009 14:23:17 GMT Received: from abhmt013.oracle.com (abhmt013.oracle.com [141.146.116.22]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8BEOBbG012669; Fri, 11 Sep 2009 14:24:12 GMT Received: from dradamslap1 (/141.144.80.125) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 Sep 2009 07:23:56 -0700 From: "Drew Adams" To: "'Stefan Monnier'" Cc: <4395@debbugs.gnu.org> References: Date: Fri, 11 Sep 2009 07:23:56 -0700 Message-ID: <16E4C9B88C5440848A0DD43BE2DE1076@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcoyhrshOzij5GfAQlqbszqfmPu2gAAZB7dg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt013.oracle.com [141.146.116.22] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4AAA5D7D.0154:SCFSTAT5015188,ss=1,fgs=0 > > C-h v the-var > > > The doc shown is the original doc string. The top-level `put' had no > > effect. > > I cannot reproduce this. Neither with Debian's Emacs-23.1, > nor with the CVS trunk. Perhaps it is Windows-only, then. What is the behavior you saw? Did the put take place in the byte-compiled file? When you used C-h v, did you see the new doc string (from the put), instead of the original one? From unknown Mon Aug 18 11:22:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4395: 23.1; byte-compiler loses top-level (put 'x...) Reply-To: Stefan Monnier , 4395@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Sep 2009 19:05:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4395-submit@emacsbugs.donarmstrong.com id=B4395.12526955595741 (code B ref 4395); Fri, 11 Sep 2009 19:05:11 +0000 Received: (at 4395) by emacsbugs.donarmstrong.com; 11 Sep 2009 18:59:19 +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=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from tomts40-srv.bellnexxia.net (tomts40.bellnexxia.net [209.226.175.97]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8BIxH5h005735 for <4395@emacsbugs.donarmstrong.com>; Fri, 11 Sep 2009 11:59:18 -0700 Received: from toip4.srvr.bell.ca ([209.226.175.87]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20090911185916.RXPB14748.tomts40-srv.bellnexxia.net@toip4.srvr.bell.ca> for <4395@emacsbugs.donarmstrong.com>; Fri, 11 Sep 2009 14:59:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFANM6qkpGN458/2dsb2JhbACBU9wRhBgF Received: from bas1-montreal42-1178046076.dsl.bell.ca (HELO ceviche.home) ([70.55.142.124]) by toip4.srvr.bell.ca with ESMTP; 11 Sep 2009 15:16:11 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 51582B40D4; Fri, 11 Sep 2009 14:59:14 -0400 (EDT) From: Stefan Monnier To: "Drew Adams" Cc: <4395@debbugs.gnu.org> Message-ID: References: <16E4C9B88C5440848A0DD43BE2DE1076@us.oracle.com> Date: Fri, 11 Sep 2009 14:59:14 -0400 In-Reply-To: <16E4C9B88C5440848A0DD43BE2DE1076@us.oracle.com> (Drew Adams's message of "Fri, 11 Sep 2009 07:23:56 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> > C-h v the-var >> >> > The doc shown is the original doc string. The top-level `put' had no >> > effect. >> >> I cannot reproduce this. Neither with Debian's Emacs-23.1, >> nor with the CVS trunk. > Perhaps it is Windows-only, then. Everything's possible, tho it does sound unlikely. > What is the behavior you saw? Did the put take place in the > byte-compiled file? When you used C-h v, did you see the new doc > string (from the put), instead of the original one? The "expected" one. Yes. Yes. Maybe if you give a more complete and detailed recipe (showing the exact file content (I used files containing the code you suggested, with the "..." stripped out), the commands you use to compile the files, when you exit Emacs and restart it, ...) we can get to the bottom of it. Stefan From unknown Mon Aug 18 11:22:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4395: 23.1; byte-compiler loses top-level (put 'x...) Reply-To: "Drew Adams" , 4395@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 11 Sep 2009 20:40:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4395-submit@emacsbugs.donarmstrong.com id=B4395.125270109521890 (code B ref 4395); Fri, 11 Sep 2009 20:40:09 +0000 Received: (at 4395) by emacsbugs.donarmstrong.com; 11 Sep 2009 20:31:35 +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=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8BKVX8U021886 for <4395@emacsbugs.donarmstrong.com>; Fri, 11 Sep 2009 13:31:34 -0700 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8BKWU1j006546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Sep 2009 20:32:31 GMT Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8BKVcrY012101; Fri, 11 Sep 2009 20:31:38 GMT Received: from dradamslap1 (/141.144.82.132) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 Sep 2009 13:31:23 -0700 From: "Drew Adams" To: "'Stefan Monnier'" Cc: <4395@debbugs.gnu.org> References: <16E4C9B88C5440848A0DD43BE2DE1076@us.oracle.com> Date: Fri, 11 Sep 2009 13:31:22 -0700 Message-ID: <7CD323C63C4247BEBE856827F1E5D196@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcozEf3cPHoDDXKqQB6mJzUrSD7neAADJqgQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 In-Reply-To: X-Source-IP: abhmt006.oracle.com [141.146.116.15] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4AAAB39B.01B2:SCFSTAT5015188,ss=1,fgs=0 > > What is the behavior you saw? Did the put take place in the > > byte-compiled file? When you used C-h v, did you see the new doc > > string (from the put), instead of the original one? > > The "expected" one. Yes. Yes. > Maybe if you give a more complete and detailed recipe (showing the > exact file content (I used files containing the code you suggested, > with the "..." stripped out), the commands you use to compile > the files, when you exit Emacs and restart it, ...) we can get > to the bottom of it. I can't reproduce it now either. I'll try to find an old version of the file that produced the problem. Probably it was user error in some way. Thx. From lekktu@gmail.com Thu Oct 22 02:35:31 2009 Received: (at control) by emacsbugs.donarmstrong.com; 22 Oct 2009 09:35:32 +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=AWL,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-fx0-f213.google.com (mail-fx0-f213.google.com [209.85.220.213]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9M9ZTNW004084 for ; Thu, 22 Oct 2009 02:35:31 -0700 Received: by fxm9 with SMTP id 9so9696363fxm.1 for ; Thu, 22 Oct 2009 02:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=8EmqKmTQZFxRHmBqMf0mAHPBq3MFliknc0lztWoJq6Y=; b=HxQYupT4FFltZz1ItMJj0h3XTFYNK5e7ryT0Cek2T3YESYQLNQM8G9V9i2CKiMAEbc EvYuLj8f7w1qApk14qvzihjcYCGQUOU+1DBevO5UhGKLQhzQ6+vBiuihHNGFYaXeeEYe kJYg0CmwEGM5xp9e/Qz4pt4br7Ml4TcpNJkWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Y5ybjjcxlLdLgAFAm7oQwPF4q6enZ/vhDgoBesbKLPsYfKZBy2gNxuVUArd1lZsA9C Mqc9bcUQhekOxrkhuBrM/oRLNjZDm8m0DPtCnEMhvvK6rKfs9H9j6QMJR6VObUwlfUeo 7VB35jQ8OYFrwvpcsbgPdQA8bmjmcb1XFRU14= MIME-Version: 1.0 Received: by 10.239.145.8 with SMTP id q8mr761204hba.122.1256204124158; Thu, 22 Oct 2009 02:35:24 -0700 (PDT) From: Juanma Barranquero Date: Thu, 22 Oct 2009 11:35:04 +0200 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 reassign 4326 emacs,ns merge 4261 4434 merge 1589 3359 4207 merge 3829 4077 tags 4781 + patch tags 4747 + patch tags 4579 + patch tags 4471 + patch tags 4434 + patch tags 4234 + patch tags 4221 + patch tags 4147 + patch tags 4144 + patch tags 4139 + patch tags 4023 + patch tags 4736 + moreinfo unreproducible tags 4547 + notabug tags 4451 + notabug tags 4448 + moreinfo tags 4427 + moreinfo tags 4373 + notabug tags 4360 + notabug tags 4271 + moreinfo tags 4236 + moreinfo tags 4143 + moreinfo unreproducible tags 4120 + moreinfo unreproducible tags 4070 + moreinfo unreproducible severity 4422 wishlist severity 4396 minor severity 4394 minor severity 4341 wishlist severity 4300 minor severity 4263 minor severity 4178 minor severity 4172 wishlist severity 4110 wishlist severity 4056 wishlist close 4772 close 4700 close 4599 close 4515 close 4463 close 4445 close 4395 close 4334 close 4289 close 4219 quit