From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [angeli@caeruleus.net: custom-set-variables overwritten bysafe-local-variables] Date: Tue, 02 May 2006 16:43:30 -0400 Message-ID: <87veso88el.fsf@mit.edu> References: <25664.128.165.0.81.1146287440.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146602640 12509 80.91.229.2 (2 May 2006 20:44:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 20:44:00 +0000 (UTC) Cc: Ralf Angeli , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 22:43:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fb1iV-0002Fu-7M for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 22:43:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb1iU-0005dZ-Sr for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 16:43:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fb1iD-0005cO-VJ for emacs-devel@gnu.org; Tue, 02 May 2006 16:43:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fb1iC-0005br-Am for emacs-devel@gnu.org; Tue, 02 May 2006 16:43:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb1iC-0005bo-2S for emacs-devel@gnu.org; Tue, 02 May 2006 16:43:12 -0400 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fb1iO-0005rx-U8; Tue, 02 May 2006 16:43:24 -0400 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 7A07D12096E; Tue, 2 May 2006 16:43:30 -0400 (EDT) Original-To: herring@lanl.gov 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)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53814 Archived-At: > 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 ...))