unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Bug within desktop-save functionality in OS X port???
@ 2003-04-08 20:20 Sebastian Tennant
  2003-04-08 23:42 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Tennant @ 2003-04-08 20:20 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1738 bytes --]

Operating System: 		Mac OSX 'Jaguar' 10.2.4
Emacs version:		21.1.1 (pre-compiled version that ships with Developer 
Tools)

I believe this is a bug, forgive me if I'm wrong.  To try and be as 
sure as possible I created a brand new user and tried the following 
sequence from this new home directory:

	Launch Terminal 						(default shell - tcsh)
	% emacs
	C-x C-f test 							(enter 'This is a text file' in new buffer)
	M-x text-mode
	M-x auto-fill-mode
	M-x customize-group <RET> desktop
	desktop-enable [toggle] non-nil			(saving state for future sessions, 
.emacs created)
	M-x desktop-save <RET>				(selecting home directory, .emacs.desktop 
created)
	C-x C-c <y RET>						(writing file 'test' to disk)
	% emacs								'test' read & buffer created but in FUNDAMENTAL mode, 
auto-fill mode preserved.

I've tried re-ordering this sequence, ie, 'desktop-enabling' before 
setting the major & minor mode but to cut a long story short, the major 
mode text-mode is simply not being preserved, even when starting emacs 
completely from scratch, i.e., in a whole new home directory.  I have 
posted pleas for help at help-gnu-emacs without success.  The best 
explanation I've been given so far was that a function involved with 
restoring the desktop must be crashing and that I should check my 
*Messages* buffer immediately after start-up, and failing that, disable 
my .emacs file (effectively starting from scratch) and see if the 
problem persisted.  I have done both, (no relevant messages were being 
shown), and this has lead me to conclude that there must be a bug.

Dying to know what's going on / if it's a bug / if not, what I'm 
missing / doing wrong.

Seb.



"War is not the answer..." - Marvin Gaye - 'What's Going On?'

[-- Attachment #1.2: Type: text/enriched, Size: 1986 bytes --]

Operating System: 		Mac OSX 'Jaguar' 10.2.4<color><param>0000,0000,0706</param>

Emacs version:		21.1.1 (pre-compiled version that ships with Developer
Tools)


I believe this is a bug, forgive me if I'm wrong.  To try and be as
sure as possible I created a brand new user and tried the following
sequence from this new home directory:


	Launch Terminal 						(default shell - tcsh)

	% emacs

	C-x C-f test 							(enter 'This is a text file' in new buffer)

	M-x text-mode

	M-x auto-fill-mode

	M-x customize-group <<RET> desktop

	desktop-enable [toggle] non-nil			(saving state for future sessions,
.emacs created)

	M-x desktop-save <<RET>				(selecting home directory, .emacs.desktop
created)

	C-x C-c <<y RET>						(writing file 'test' to disk)

	% emacs								'test' read & buffer created but in
<italic>FUNDAMENTAL </italic>mode, auto-fill mode preserved.


I've tried re-ordering this sequence, ie, 'desktop-enabling' before
setting the major & minor mode but to cut a long story short, the
major mode text-mode is <italic>simply not being preserved</italic>,
even when starting emacs completely from scratch, i.e., in a whole new
home directory.  I have posted pleas for help at help-gnu-emacs
without success.  The best explanation I've been given so far was that
a function involved with restoring the desktop must be crashing and
that I should check my *Messages* buffer immediately after start-up,
and failing that, disable my .emacs file (effectively starting from
scratch) and see if the problem persisted.  I have done both, (no
relevant messages were being shown), and this has lead me to conclude
that there must be a bug.


Dying to know what's going on / if it's a bug / if not, what I'm
missing / doing wrong.


Seb.</color><italic><color><param>FFFE,2726,4241</param>


</color><color><param>FFFF,2727,4242</param>


</color></italic><color><param>FFFF,2727,4242</param>"War is not the
answer..." - Marvin Gaye -<italic> 'What's Going On?'</italic></color>


[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug within desktop-save functionality in OS X port???
  2003-04-08 20:20 Bug within desktop-save functionality in OS X port??? Sebastian Tennant
@ 2003-04-08 23:42 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2003-04-08 23:42 UTC (permalink / raw)
  Cc: bug-gnu-emacs

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)))
  ;; ----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-08 23:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-08 20:20 Bug within desktop-save functionality in OS X port??? Sebastian Tennant
2003-04-08 23:42 ` Glenn Morris

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).