From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Debugging calendar gremlin in emacs 22.0.50.1 Date: Wed, 20 Sep 2006 11:46:18 +0200 Message-ID: <44EEBF41-E165-47B4-ADA7-9DACD299DB32@Web.DE> References: <450FE035.2020601@speakeasy.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1158745658 12458 80.91.229.2 (20 Sep 2006 09:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2006 09:47:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 11:47:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GPyfm-0004oz-EA for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Sep 2006 11:47:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPyfl-0000qr-Tl for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Sep 2006 05:47:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GPyfZ-0000oz-38 for help-gnu-emacs@gnu.org; Wed, 20 Sep 2006 05:47:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GPyfV-0000io-MP for help-gnu-emacs@gnu.org; Wed, 20 Sep 2006 05:47:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPyfV-0000iU-FQ for help-gnu-emacs@gnu.org; Wed, 20 Sep 2006 05:47:01 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GPyil-00029d-Dt for help-gnu-emacs@gnu.org; Wed, 20 Sep 2006 05:50:23 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 0FADC2044663; Wed, 20 Sep 2006 11:46:20 +0200 (CEST) Original-Received: from [84.245.187.118] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1GPyep-0005AP-00; Wed, 20 Sep 2006 11:46:19 +0200 In-Reply-To: <450FE035.2020601@speakeasy.net> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: ken X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37509 Archived-At: Am 19.09.2006 um 14:19 schrieb ken: > Everything's still good. So then I run "M-x diary" and get this: > > The local variables list in diary.emacs > contains values that may not be safe (*). > > Do you really want to apply it? You can type > y - to apply the local variables list. > n - to ignore.... > ! - to apply... and permanently mark these... > > * auto-fill-mode: off > fill-column: 999999 > > The reason for this (I'm guessing) is that I have this at the top of > ~/diary.emacs: > > ;-*- mode: lisp; auto-fill-mode: off; fill-column: 999999 -*- > > I hit y and emacs loads what it thinks is the diary. This has to do with a security feature introduced early this summer: =20 safe-local-variable-values. If you answer ``!=B4=B4 then the name will = be =20 recorded in your customisation and you won't be asked again to =20 confirm that this local variable is safe. (I had to type ! a few =20 times to make coding-system in different contexts a safe local =20 variable.) > > ~/diary.emacs contains: > > --------------------------------------------------------- > ;-*- mode: lisp; auto-fill-mode: off; fill-column: 999999 -*- I think the convention is to start such a line with ;;;. Then I think =20= it's needed that some space is left between the comment and the =20 expression, i.e. the -*- ...; -*- part. > > %%(diary-anniversary 9 18 1970) %d years ago it was 9/18/1970 > > %%(diary-anniversary 9 19 1911) %d years ago it was 9/19/1911 > > %%(diary-anniversary 9 20 1934) %d years ago it was 9/20/1934 > > %%(diary-anniversary 9 20 1885) %d years ago it was 9/20/1885 > > %%(diary-anniversary 9 20 1878) $d years ago it was 9/20/1878 > > ;end of ~/diary.emacs At this semicolon, could be, the set of local variables ends ... thy =20 syntax is: -*- : ; ; -*- You also can put at the end: ;; Local variables: ;; mode: lisp ;; auto-fill-mode: off ;; fill-column: 999999 ;; End: > > Next (in this new frame) I do "C-x f ~/diary.emacs RETURN": Nothing > happens. This is correct: you set fill-column. (But the other input, i.e. =20 ``~ / d i a r y . e m a c s=B4=B4 and the final RET should do something = ...) -- Greetings Pete "We have to expect it, otherwise we would be surprised."