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

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

Re: problem reading ~/.emacs.desktop


From: Juanma Barranquero
Subject: Re: problem reading ~/.emacs.desktop
Date: Wed, 16 Sep 2009 10:39:05 +0200

[sorry for the previous unfinished post]

On Wed, Sep 16, 2009 at 10:14, ken <gebser@mousecar.com> wrote:

> In the newly created ".emacs.desktop" file (created by the upgraded
> version of emacs), this same argument is displayed as an 'I' with a
> diacritical mark over it-- the same as the old one was in the Debugger.
>  (?)  The value of that character (as determined by "C-x =") is 205.

?? With Emacs 23.1, the version should be 206 in a newly created .desktop.

I'd like to know what happens when you do the following

 - create an empty directory and cd to it
 - set HOME to that directory
 - create a test file (let's call it test.txt) with a couple lines
 - then
      emacs -Q test.txt
      M-x desktop-save <RET> <RET>      ; to create a new desktop file
      C-x C-c
  followed by
      emacs -Q -f desktop-load

> So then I edited ".emacs.desktop" to replace the 'I' with the
> diacritical mark with "205" (without the quotes).  And I comment out the
> code in ~/.emacs which invokes "desktop-read" and "desktop-save" and
> reload emacs and run these by hand.

You shouldn't use `desktop-save' and `desktop-read' in you ~/.emacs, just

  (desktop-save-mode 1)

is enough.

> Debugger entered--Lisp error: (error "Local variables entry is missing
> the suffix")
>  signal(error ("Local variables entry is missing the suffix"))
>  error("Local variables entry is missing the suffix")

> This error isn't clear enough for me to figure out.

This is not related to desktop. Emacs is complaining about a problem
with the Local variables section in the file, i.e., the

  Local Variables:
  one-variable: whatever
  another-variable: blah blah
  End:

section near the end of the file.

Just out of curiosity: it is possible you're using CRLF files in a
context that does not expect them, or that some of the files have
mixed LF and CRLF line endings?

    Juanma




reply via email to

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