GNU bug report logs - #35628
Keep track of what file sets variables... through init-file processing

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 8 May 2019 06:38:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 29495, 38173

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35628 in the body.
You can then email your comments to 35628 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35628; Package emacs. (Wed, 08 May 2019 06:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 May 2019 06:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Keep track of what file sets variables... through init-file processing
Date: Wed, 08 May 2019 14:37:14 +0800
C-h v runs the command describe-variable.

Its output looks like

   ............. is a variable defined in ‘.......el’.
   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 files."

P.S., this has nothing to do with
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910021




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35628; Package emacs. (Wed, 08 May 2019 11:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 35628 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 35628 <at> debbugs.gnu.org
Subject: Re: bug#35628: Keep track of what file sets variables... through
 init-file processing
Date: Wed, 08 May 2019 07:00:09 -0400
forcemerge 29495 35628
quit

積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> C-h v runs the command describe-variable.
>
> Its output looks like
>
>    ............. is a variable defined in ‘.......el’.
>    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).





Forcibly Merged 29495 35628. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 08 May 2019 11:01:02 GMT) Full text and rfc822 format available.

Forcibly Merged 29495 35628 38173. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 12 Nov 2019 01:20:02 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 14 Nov 2019 06:29:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 38173 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 14 Nov 2019 06:29:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Dec 2019 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.