From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: problem reading ~/.emacs.desktop Date: Wed, 16 Sep 2009 04:14:56 -0400 Message-ID: <4AB09E80.40904@mousecar.com> References: <4AAECA72.4050103@mousecar.com> <4AAF054D.8010300@mousecar.com> <4AAF5D4C.2040402@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1253088939 29318 80.91.229.12 (16 Sep 2009 08:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 08:15:39 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 10:15:32 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mnpfl-00032B-Sy for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 10:15:30 +0200 Original-Received: from localhost ([127.0.0.1]:49901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnpfl-0008Tz-4d for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 04:15:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnpfM-0008T6-IP for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:15:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnpfL-0008Sp-TS for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:15:04 -0400 Original-Received: from [199.232.76.173] (port=50540 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnpfL-0008Sm-QU for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:15:03 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:54664) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnpfK-00015F-IX for help-gnu-emacs@gnu.org; Wed, 16 Sep 2009 04:15:03 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-017.cle1.dsl.speakeasy.net [66.93.11.17]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MKp8S-1MnpfF1ZSr-000OTp; Wed, 16 Sep 2009 04:14:58 -0400 User-Agent: Thunderbird 2.0.0.22 (X11/20090625) In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=5AD091E7 X-Provags-ID: V01U2FsdGVkX18k4/cRyMyR9XBSK9dguTlgnIGeoXgMpDwZJ03 3wN+kCeDxuhhQvj7/4PIO2dnISUR6FwnuMwR8YSL2wy1jdtnOI U8YJku05J+dyXjiaH5CglBvRVoMcRWN X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:68200 Archived-At: On 09/15/2009 05:37 AM Juanma Barranquero wrote: > On Tue, Sep 15, 2009 at 11:24, ken wrote: > >> My (uneducated) hunch is that desktop-create-buffer doesn't like the >> first argument. This argument is a number (which in my email client is >> displayed as an 'I' with a diacritical mark above it). When the above >> Debugger output is displayed in emacs the number is '\315'. If I look >> at this ~/.emacs.desktop file with the "less" command, it is displayed >> as "<81>"... for every instance of a buffer. (?) >> >> According to the emacs doc on "desktop-create-buffer", this first arg is >> "desktop-file-version"; I don't know what that is and have no idea why >> the function "desktop-file-version" doesn't like it. >> >> Anybody able to figure out what this problem is? > > Can you edit the desktop file and change these Í to 205 (the literal > string "205", I mean)? The version number should be a literal, for > example: > > (desktop-create-buffer 206 > "c:/my-file" > ... etc) > > Can you move aside your current desktop file and recreate one with > `desktop-save' (or `desktop-save-in-desktop-dir') to see whether it is > correctly created? > > Juanma Juanma, Thanks much for replying. You and I are thinking the same. But emacs isn't thinking like either of us. The "desktop-file-version" argument *is* an integer... but in our email clients it is being *displayed* as a character. In emacs as I view the old ".emacs.desktop" on my system (not in the Debugger, but as a normal file/buffer), it displays as "205" (without the quotes). The Linux "less" command displays the same. 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. This I don't understand: it's as if the Debugger incorrectly interpreted the correct integer as a character and then complained about it. Well, I used another workaround: I found that if I loaded the old ".emacs.desktop" into a buffer and then did "C-x e" at the end of each "(desktop-create-buffer ...)", it would properly load each buffer.... Well, there were a couple files (out of over 100) which, for irrelevant reasons, were absent from my system. But none of the missing files were what the Debugger complained about-- and the message which the Debugger gave said nothing about a missing file, but rather indicated that the first argument somehow was incorrect. See my previous email. Using the above workaround, I successfully load (nearly) all files listed in ".emacs.desktop" into emacs buffers. And I can see them all using "C-x b" and I can visit them all. But then I do a "desktop-save" as you recommended, quit emacs, start emacs again, and get the same Debugger error message again. 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. I find that emacs has changed "205" to "206". And though the files are read into emacs fine, I get this different error from Debugger: 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") hack-local-variables() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/pub/g-mob" nil nil "~/pub/g-mob" (38245125 64771)) find-file-noselect("/home/zl/pub/g-mob") desktop-restore-file-buffer("/home/zl/pub/g-mob" "g-mob" nil) #[nil " A This error isn't clear enough for me to figure out. And it's probably over the head of most, if not all, of the people on this list. But if anyone has a cogent guess as to how to fix this, I'd be willing to give it a try. Thanks again, Juanma, for your help. It got me a little further toward resolution.