[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: custom-set-variables overwritten bysafe-local-varia

From: Stuart D. Herring
Subject: Re: address@hidden: custom-set-variables overwritten bysafe-local-variables]
Date: Fri, 28 Apr 2006 22:10:40 -0700 (PDT)
User-agent: SquirrelMail/1.4.3a-11.EL3

> (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

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

Hope this helps,

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]