From: Chong Yidong <cyd@mit.edu>
Cc: Ralf Angeli <angeli@caeruleus.net>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [angeli@caeruleus.net: custom-set-variables overwritten bysafe-local-variables]
Date: Tue, 02 May 2006 16:43:30 -0400 [thread overview]
Message-ID: <87veso88el.fsf@mit.edu> (raw)
In-Reply-To: <25664.128.165.0.81.1146287440.squirrel@webmail.lanl.gov> (Stuart D. Herring's message of "Fri, 28 Apr 2006 22:10:40 -0700 (PDT)")
> Well, here's the problem -- the (todo-show) invokes the local-variables
> warning, before the `custom-set-variables' has taken place. This means
> that A) the safe-locals setting hasn't taken place yet, so the warning
> will always occur, and B) if the .emacs is modified by Custom (via the
> local-variables warning), the fill-column hasn't been set yet and will be
> forgotten.
>
> Simple workaround is to put (todo-show) after the `custom-set-variables'.
> Better yet, replace with (add-hook 'after-init-hook 'todo-show); .emacs
> isn't really supposed to be doing anything user-visible (like opening
> buffers), but it can arrange for it to happen later.
Why not make todo-show do
(let ((enable-local-variables nil))
( ... load the files ...))
next prev parent reply other threads:[~2006-05-02 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-28 15:45 [angeli@caeruleus.net: custom-set-variables overwritten by safe-local-variables] Richard Stallman
2006-04-29 5:10 ` [angeli@caeruleus.net: custom-set-variables overwritten bysafe-local-variables] Stuart D. Herring
2006-05-02 20:10 ` Ralf Angeli
2006-05-02 20:43 ` Chong Yidong [this message]
2006-05-02 20:58 ` Stuart D. Herring
2006-05-02 23:21 ` Chong Yidong
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87veso88el.fsf@mit.edu \
--to=cyd@mit.edu \
--cc=angeli@caeruleus.net \
--cc=emacs-devel@gnu.org \
--cc=rms@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).