From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: [angeli@caeruleus.net: custom-set-variables overwritten bysafe-local-variables] Date: Tue, 02 May 2006 22:10:11 +0200 Message-ID: <87r73c428s.fsf@neutrino.caeruleus.net> 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 1146600549 4583 80.91.229.2 (2 May 2006 20:09:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 20:09:09 +0000 (UTC) Cc: 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:09:07 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 1Fb1As-0003Q8-G0 for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 22:08:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb1As-000275-0X for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 16:08:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fb1Aa-00020s-JS for emacs-devel@gnu.org; Tue, 02 May 2006 16:08:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fb1AY-000205-Ha for emacs-devel@gnu.org; Tue, 02 May 2006 16:08:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb1AY-000202-Dg for emacs-devel@gnu.org; Tue, 02 May 2006 16:08:26 -0400 Original-Received: from [212.227.126.171] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fb1Ak-00015G-T9; Tue, 02 May 2006 16:08:39 -0400 Original-Received: from [212.144.210.23] (helo=neutrino.caeruleus.net) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1Fb1AQ1a4t-0002JE; Tue, 02 May 2006 22:08:20 +0200 Original-To: herring@lanl.gov X-Provags-ID: kundenserver.de abuse@kundenserver.de login:abf9ffac21f8345504ac40c53d3b40ba 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:53812 Archived-At: * Stuart D. Herring (2006-04-29) writes: > 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. Oh, that's ugly. > 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. Thanks for the info. I informed the original reporter about it. > 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... Possibly. For example the first line in my .emacs file is (setq debug-on-error t) and should stay like this. (c: -- Ralf