emacs-devel
[Top][All Lists]
Advanced

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

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


From: Chong Yidong
Subject: Re: address@hidden: custom-set-variables overwritten bysafe-local-variables]
Date: Tue, 02 May 2006 16:43:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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 ...))




reply via email to

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