From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#35628: Keep track of what file sets variables... through init-file processing Date: Wed, 08 May 2019 14:37:14 +0800 Message-ID: <8736lp8nad.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="160876"; mail-complaints-to="usenet@blaine.gmane.org" To: 35628@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 08 08:38:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOGDg-000fea-6i for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 08:38:24 +0200 Original-Received: from localhost ([127.0.0.1]:60397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOGDf-0005Zv-8O for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 02:38:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOGDL-0005RY-J4 for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOGDK-0003PN-Ib for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOGDK-0003PI-FC for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOGDK-0004S6-8m for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2019 06:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35628 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155729745417074 (code B ref -1); Wed, 08 May 2019 06:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2019 06:37:34 +0000 Original-Received: from localhost ([127.0.0.1]:60208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOGCr-0004RK-Td for submit@debbugs.gnu.org; Wed, 08 May 2019 02:37:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOGCq-0004R5-FG for submit@debbugs.gnu.org; Wed, 08 May 2019 02:37:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOGCl-0003B0-83 for submit@debbugs.gnu.org; Wed, 08 May 2019 02:37:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOGCj-0004Z4-Us for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:37:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOGCi-0003AE-RN for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:37:25 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:37465) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOGCi-00039m-Iq for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 02:37:24 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D20CE3410F7 for ; Wed, 8 May 2019 06:37:22 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com (100-96-15-20.trex.outbound.svc.cluster.local [100.96.15.20]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4C431341694 for ; Wed, 8 May 2019 06:37:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 08 May 2019 06:37:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Left-Stop: 2dab211659eebda6_1557297442665_1055322378 X-MC-Loop-Signature: 1557297442665:2781333036 X-MC-Ingress-Time: 1557297442665 Original-Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 17FF883316 for ; Tue, 7 May 2019 23:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=StxFcE/JAOV+B9hyfV B3vZdTL8c=; b=DrtZvpsFol91SQw/W3yNhd4yBsiFjiD/QkEraJN4N+fTsP8qS4 cDPiB96Sl+Frdwe7b2xvvJvOmU2kYFFu8RV24I31pnXwgbiHMgLz+Sd1ayzd81aV KroQf6KPeg0tWlhNm59zdVsCt8/IyPWYbnvKRgr34AYE3RV1vpLa9GFF8= Original-Received: from jidanni.org (111-246-86-229.dynamic-ip.hinet.net [111.246.86.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id 9806983306 for ; Tue, 7 May 2019 23:37:17 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a27 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrkedvgddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucffohhmrghinhepuggvsghirghnrdhorhhgnecukfhppeduuddurddvgeeirdekiedrvddvleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddurddvgeeirdekiedrvddvledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158913 Archived-At: C-h v runs the command describe-variable. Its output looks like ............. is a variable defined in =E2=80=98.......el=E2=80=99. Its value is t Original value was nil So describe-variable knows several things including - the original value of a variable. - the file where that value was set. - the current value of a variable. - the file where that value was set <---- ALAS... it would know that but that part of its record keeping quits before ~/.emacs is processed! Try this: put (setq xxxx 2222) in ~/.emacs; restart emacs, and do describe-variable xxxx. You might say "Well we only remember one filename. If we remember .emacs, then we will forget the original file." Then I would say "You remember two values, then you should remember two f= iles." P.S., this has nothing to do with https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D910021