From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#35628: Keep track of what file sets variables... through init-file processing Date: Wed, 08 May 2019 07:00:09 -0400 Message-ID: <87zhnxjjnq.fsf@gmail.com> References: <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="205332"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35628@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 08 13:01:26 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 1hOKKB-000rDQ-OI for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 13:01:23 +0200 Original-Received: from localhost ([127.0.0.1]:34804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOKKA-00064H-Nh for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 07:01:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOKJx-00063z-9e for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 07:01:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOKJs-0003TH-2V for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 07:01:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOKJq-0003SO-9e for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 07:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOKJq-0002fr-7c for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 07:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2019 11:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35628 X-GNU-PR-Package: emacs Original-Received: via spool by 35628-submit@debbugs.gnu.org id=B35628.155731322010216 (code B ref 35628); Wed, 08 May 2019 11:01:02 +0000 Original-Received: (at 35628) by debbugs.gnu.org; 8 May 2019 11:00:20 +0000 Original-Received: from localhost ([127.0.0.1]:60439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOKJA-0002ed-6i for submit@debbugs.gnu.org; Wed, 08 May 2019 07:00:20 -0400 Original-Received: from mail-io1-f52.google.com ([209.85.166.52]:42113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOKJ8-0002eJ-0a; Wed, 08 May 2019 07:00:18 -0400 Original-Received: by mail-io1-f52.google.com with SMTP id g16so322553iom.9; Wed, 08 May 2019 04:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=D8d1oKPjbmETR1xY6gBHgxbpH3BeP/zWh0Hm3NBP5dc=; b=BhC6G8zMchE/MjDSn02y921Dm/txOLnIpts7m5GSzw+MObE1EY2a63fsnqpEadpMvA agSOU9jqU2Q5r/7KM7H26Qwf+9fpGqBbC7U2STEmctJwP+0r1QB7cB5wYh2UmmFBx/ru 0zt8qg3HYc/189Eknpv8JlXCpcAq22RZjO5/dBrKmNvc0SnxDwG1HRex0DgSN2774wtA WHMTJpvPO1Vp4Ak6vfc5j/Bwr6vFzZGsfPgJBd53vgPeSoXU6WAryePrAtiqBoKqm+kg 10WgZ5HRMyv/MPQy4X9hvg/2uRuQDBKBJQmKQ3jqpNzb2EPXrCoYQ1uHLnMBgGJv9IJC zA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=D8d1oKPjbmETR1xY6gBHgxbpH3BeP/zWh0Hm3NBP5dc=; b=Tgq4jPmG5hAOfF0p6J1CgWZgZYp3dRfLac9GBbJd2OuH2Sr/iTO68thpfhWXRZx4CP gN6KHxcYcR4BVMLc1S7qpkNkN23MtOjbj4JE+3nhsQurM5vVI6AGNfPW05BkO+M7rGgq nv+lj8L5RsdLmjwIFWfk0MBVuvsvfEam/HWWXOjarJKIok6BanagjO7GGTxwite+iy/L D0bvpkyJuF/XfrER6C9ctb8riGW8M3VgZvdk+4fI7lqZ+GLIMDAhCTD05dwabUo4XkrL E7JCvOaVTOO87dCCMx4mw8tvQaUBCYC0UGEt4BwVr3C1FCfPABgUW9vPj5GCdBg4fMG7 c1ow== X-Gm-Message-State: APjAAAULuGCWMRP4kgaBoRMNgxWj9Z8ulOe1Q2pXrtbfxFIN4ko92GFg V9fuxwRb4kaMrKZJoYbERaBzsghb X-Google-Smtp-Source: APXvYqxd4s6zV2b3cvdB20a23kcisYhmO05T0Z94ZYF3zeTvuluYxIooobsPr5LAJZaG3yMK/tqxNg== X-Received: by 2002:a5e:9313:: with SMTP id k19mr20741498iom.239.1557313211709; Wed, 08 May 2019 04:00:11 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id v25sm6033948ioh.81.2019.05.08.04.00.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 04:00:10 -0700 (PDT) In-Reply-To: <8736lp8nad.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Wed, 08 May 2019 14:37:14 +0800") 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:158931 Archived-At: forcemerge 29495 35628 quit =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > 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 > 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." Only defvar, defcustom, or defconst record a variable definition filename; setq records nothing (technically, it doesn't "define" a variable, just changes it). Maybe something could be hacked with add-variable-watcher (not sure if it's a good idea though).