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.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 35628 <at> debbugs.gnu.org
Subject: 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).





This bug report was last modified 5 years and 245 days ago.

Previous Next


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