unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stuart D. Herring" <herring@lanl.gov>
Cc: Ralf Angeli <angeli@caeruleus.net>, emacs-devel@gnu.org
Subject: Re: [angeli@caeruleus.net: custom-set-variables overwritten  bysafe-local-variables]
Date: Fri, 28 Apr 2006 22:10:40 -0700 (PDT)	[thread overview]
Message-ID: <25664.128.165.0.81.1146287440.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <E1FZV9r-0000Rf-8B@fencepost.gnu.org>

> (todo-show)    ; european-calendar-style und number-of-diary-entries
> ;; 	       ; schon vorher definiert sein
>
>
> (custom-set-variables
>   ;; custom-set-variables was added by Custom.
>   ;; If you edit it by hand, you could mess it up, so be careful.
>   ;; Your init file should contain only one such instance.
>   ;; If there is more than one, they won't work right.
>  '(fill-column 72)
>  )
>
> ; .emacs.el END

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.

I don't know that there's any way to "fix" this, except maybe to have
Custom put its forms at the top of the .emacs.  But that might cause other
problems...

Hope this helps,
Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

  reply	other threads:[~2006-04-29  5:10 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 ` Stuart D. Herring [this message]
2006-05-02 20:10   ` [angeli@caeruleus.net: custom-set-variables overwritten bysafe-local-variables] Ralf Angeli
2006-05-02 20:43   ` Chong Yidong
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=25664.128.165.0.81.1146287440.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=angeli@caeruleus.net \
    --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 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).