From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Load of .emacs.desktop from Emacs 21 fails
Date: Wed, 12 Oct 2005 00:46:00 +0200 [thread overview]
Message-ID: <v93bn7d653.fsf@marauder.physik.uni-ulm.de> (raw)
Hi,
when reading this .emacs.desktop file section...
--8<---------------cut here---------------start------------->8---
;; Buffer section:
(desktop-create-buffer 205
"/tmp/Online.pl"
"Online.pl"
'cperl-mode
'(auto-fill-mode abbrev-mode nil)
5558
'(11044 t)
nil
nil
nil)
--8<---------------cut here---------------end--------------->8---
... (created by Emacs 21.3), I get an error in `desktop-load-file'
because `nil' in the mode list.
The following patch fixed it. Okay to install?
--8<---------------cut here---------------start------------->8---
--- desktop.el 19 Sep 2005 11:36:25 +0200 1.93
+++ desktop.el 11 Oct 2005 13:19:18 +0200
@@ -963,10 +963,11 @@
(defun desktop-load-file (function)
"Load the file where auto loaded FUNCTION is defined."
- (let ((fcell (symbol-function function)))
- (when (and (listp fcell)
- (eq 'autoload (car fcell)))
- (load (cadr fcell)))))
+ (when function
+ (let ((fcell (symbol-function function)))
+ (when (and (listp fcell)
+ (eq 'autoload (car fcell)))
+ (load (cadr fcell))))))
;; ----------------------------------------------------------------------------
;; Create a buffer, load its file, set its mode, ...;
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next reply other threads:[~2005-10-11 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-11 22:46 Reiner Steib [this message]
2005-10-12 9:18 ` Load of .emacs.desktop from Emacs 21 fails Lars Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v93bn7d653.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).