[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug within desktop-save functionality in OS X port???
From: |
Glenn Morris |
Subject: |
Re: Bug within desktop-save functionality in OS X port??? |
Date: |
Wed, 09 Apr 2003 00:42:36 +0100 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) |
Sebastian Tennant wrote:
[desktop.el does not restore major mode]
desktop-save saves the major mode of each buffer to the desktop file,
as an argument of desktop-create-buffer. But desktop-create-buffer
doesn't make use of that argument.
Maybe the following patch will do?
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/desktop.el,v
retrieving revision 1.50
diff -c -r1.50 desktop.el
*** desktop.el 4 Nov 2002 08:19:59 -0000 1.50
--- desktop.el 8 Apr 2003 23:37:53 -0000
***************
*** 680,685 ****
--- 680,687 ----
(condition-case nil
(switch-to-buffer buf)
(error (pop-to-buffer buf)))
+ (if (functionp desktop-buffer-major-mode)
+ (funcall desktop-buffer-major-mode))
buf)
'ignored)))
;;
----------------------------------------------------------------------------