all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: .emacs-settings.el
Date: Mon, 10 Sep 2007 09:08:17 -0500	[thread overview]
Message-ID: <m2fy1m7gvi.fsf@lifelogs.com> (raw)
In-Reply-To: jwvejh7ehd6.fsf-monnier+emacs@gnu.org

On Sun, 09 Sep 2007 16:06:14 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

Stefan> I don't think it's a necessary feature, but it would be a nice
Stefan> addition (for for file-local and dir-local settings).  I'm not
Stefan> sure how to implement it either, but I guess we could change
Stefan> hack-local-variables to maintain a new (buffer-local) variable
Stefan> `file-local-settings' and in C-h v we check this var to see if
Stefan> the variable displayed is among the ones that were set
Stefan> file-locally.

>> I was thinking about this, and it occurred to me that we could have
>> "false positives".  E.g., project.el might set the variable and add it

SM> Of course.  The obvious solution is to record to value set, so if the value
SM> is still the same, you can reasonably presume that there's still
SM> a relationship between the setting and the variable's current value.

SM> Of course, maybe there isn't, but most likely if the setting is a problem,
SM> the user will see "this setting comes from ...", it will go there, remove
SM> the file-local or project-local setting and try again and will then see that
SM> the same problem is still present but without the "this setting comes from
SM> ..." at which it'll know that there's something more to it.

What about recording a stack of modifications, e.g.

this variable was created in x.el line 300
it was modified by Customize in y.el line 400
it was overridden by a buffer-local version in z.el line 500
(file and line are not always available)

I don't know how hard it is to implement this, but it would be great for
general debugging too.  If the new value of the variable could be
recorded as well (optionally), this would be even more useful.

Ted

  reply	other threads:[~2007-09-10 14:08 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 10:46 .emacs-settings.el Robert J. Chassell
2007-09-05 14:27 ` .emacs-settings.el Davis Herring
2007-09-06 14:29   ` .emacs-settings.el Juri Linkov
2007-09-06 15:23     ` .emacs-settings.el Robert J. Chassell
2007-09-06 15:36       ` .emacs-settings.el Ted Zlatanov
2007-09-06 16:04         ` .emacs-settings.el Michaël Cadilhac
2007-09-06 16:48           ` .emacs-settings.el Ted Zlatanov
2007-09-06 19:34             ` .emacs-settings.el David Kastrup
2007-09-06 20:21               ` .emacs-settings.el Ted Zlatanov
2007-09-06 21:07                 ` .emacs-settings.el Juri Linkov
2007-09-07  2:11                   ` .emacs-settings.el Ted Zlatanov
2007-09-06 23:55                 ` .emacs-settings.el Stefan Monnier
2007-09-07  2:18                   ` .emacs-settings.el Ted Zlatanov
2007-09-07  2:54                 ` .emacs-settings.el Miles Bader
2007-09-07  4:03                   ` .emacs-settings.el Stefan Monnier
2007-09-07 12:03                   ` .emacs-settings.el Ted Zlatanov
2007-09-07  6:19                 ` .emacs-settings.el David Kastrup
2007-09-07 11:56                   ` .emacs-settings.el Ted Zlatanov
2007-09-07 15:49                   ` .emacs-settings.el Davis Herring
2007-09-06 20:39             ` .emacs-settings.el Robert J. Chassell
2007-09-06 21:00               ` .emacs-settings.el Ted Zlatanov
2007-09-07  6:31             ` .emacs-settings.el Richard Stallman
2007-09-07 12:09               ` .emacs-settings.el Ted Zlatanov
2007-09-06 20:22           ` .emacs-settings.el Robert J. Chassell
2007-09-06 20:10         ` .emacs-settings.el Tom Tromey
2007-09-06 20:51           ` .emacs-settings.el Ted Zlatanov
2007-09-07 17:40           ` .emacs-settings.el Stefan Monnier
2007-09-08 17:47             ` .emacs-settings.el Tom Tromey
2007-09-08 19:19               ` .emacs-settings.el T. V. Raman
2007-09-08 22:17                 ` .emacs-settings.el Tom Tromey
2007-09-08 23:11                   ` .emacs-settings.el Juri Linkov
2007-09-08 23:09                     ` .emacs-settings.el Tom Tromey
2007-09-09  1:28                   ` .emacs-settings.el T. V. Raman
2007-09-09  8:09                   ` .emacs-settings.el David Kastrup
2007-09-10 22:21                   ` .emacs-settings.el Davis Herring
2007-09-09 20:06               ` .emacs-settings.el Stefan Monnier
2007-09-10 14:08                 ` Ted Zlatanov [this message]
2007-09-12  8:46                   ` .emacs-settings.el Richard Stallman
2007-09-07 19:53           ` .emacs-settings.el Richard Stallman
2007-09-06 20:08     ` .emacs-settings.el Tom Tromey
2007-09-06 20:50       ` .emacs-settings.el Juri Linkov
2007-09-07 17:43         ` .emacs-settings.el Stefan Monnier
2007-09-07 19:53         ` .emacs-settings.el Richard Stallman
2007-09-08 17:43           ` .emacs-settings.el Tom Tromey
2007-09-06 20:58       ` .emacs-settings.el Ted Zlatanov
2007-09-07  3:05         ` .emacs-settings.el Miles Bader
2007-09-07  6:17         ` .emacs-settings.el David Kastrup
2007-09-07  7:07           ` .emacs-settings.el Jason Rumney
2007-09-07  7:18             ` .emacs-settings.el David Kastrup
2007-09-07 12:08               ` .emacs-settings.el Ted Zlatanov
2007-09-07 15:52             ` .emacs-settings.el Davis Herring
2007-09-08  7:00             ` .emacs-settings.el Richard Stallman
2007-09-06 20:28     ` .emacs-settings.el Stefan Monnier
2007-09-06 20:50       ` .emacs-settings.el Juri Linkov
2007-09-06 23:52         ` .emacs-settings.el Stefan Monnier
2007-09-06 23:41           ` .emacs-settings.el Tom Tromey
2007-09-07  8:52             ` .emacs-settings.el Juri Linkov
2007-09-07 12:14   ` .emacs-settings.el Johannes Weiner
2007-09-07 16:03     ` .emacs-settings.el Davis Herring
2007-09-07 16:35     ` .emacs-settings.el Drew Adams
2007-09-07 18:11       ` .emacs-settings.el joakim
2007-09-08  7:01       ` .emacs-settings.el Richard Stallman
2007-09-08  7:00     ` .emacs-settings.el Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2fy1m7gvi.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.