help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Debugging calendar gremlin in emacs 22.0.50.1


From: Peter Dyballa
Subject: Re: Debugging calendar gremlin in emacs 22.0.50.1
Date: Wed, 20 Sep 2006 11:46:18 +0200


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: safe-local-variable-values. If you answer ``!´´ then the name will be recorded in your customisation and you won't be asked again to confirm that this local variable is safe. (I had to type ! a few times to make coding-system in different contexts a safe local 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 it's needed that some space is left between the comment and the 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 syntax is:

        -*- <some keyword>: <some other keyword>; <potentially other pair>; -*-

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. ``~ / d i a r y . e m a c s´´ and the final RET should do something ...)



--
Greetings

  Pete

"We have to expect it, otherwise we would be surprised."







reply via email to

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