unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* saving shell-sessions with desktop.el?
@ 2005-04-27 17:37 stefan riha
  2005-04-27 19:08 ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: stefan riha @ 2005-04-27 17:37 UTC (permalink / raw)


Hi!
I'm trying to save my buffer list by putting
the lines

(desktop-load-default)
(desktop-read)

into .emacs
This works, except that I can't save shell-sessions.
I just don't want to type "M-x shell" RET "M-x
rename-buffer" "sh1" RET every time I start emacs.

I've read something about a variable called
"desktop-files-not-to-save", but I don't know if it
has something to do with the problem nor how to look
at it's value.

Thanks,
 --Stefan


	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

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

* Re: saving shell-sessions with desktop.el?
  2005-04-27 17:37 stefan riha
@ 2005-04-27 19:08 ` Kevin Rodgers
  2005-04-27 20:08   ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2005-04-27 19:08 UTC (permalink / raw)


stefan riha wrote:
 > I'm trying to save my buffer list by putting
 > the lines
 >
 > (desktop-load-default)
 > (desktop-read)
 >
 > into .emacs
 > This works, except that I can't save shell-sessions.
 > I just don't want to type "M-x shell" RET "M-x
 > rename-buffer" "sh1" RET every time I start emacs.

I don't think desktop.el saves anything but buffers visiting files,
unless you add the major mode to desktop-buffer-modes-to-save:

(setq desktop-buffer-modes-to-save
       (cons 'shell-mode desktop-buffer-modes-to-save))

-- 
Kevin Rodgers

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

* Re: saving shell-sessions with desktop.el?
  2005-04-27 19:08 ` Kevin Rodgers
@ 2005-04-27 20:08   ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2005-04-27 20:08 UTC (permalink / raw)


Kevin Rodgers wrote:
 > I don't think desktop.el saves anything but buffers visiting files,
 > unless you add the major mode to desktop-buffer-modes-to-save:

Since desktop.el save global variables, I should have said:

I don't think desktop.el saves any buffers that aren't visiting files,
unless you add the major mode to desktop-buffer-modes-to-save:

 > (setq desktop-buffer-modes-to-save
 >       (cons 'shell-mode desktop-buffer-modes-to-save))

-- 
Kevin Rodgers

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

* Re: saving shell-sessions with desktop.el?
       [not found] <mailman.3200.1114623559.2895.help-gnu-emacs@gnu.org>
@ 2005-04-28 12:29 ` Phillip Lord
  0 siblings, 0 replies; 4+ messages in thread
From: Phillip Lord @ 2005-04-28 12:29 UTC (permalink / raw)


>>>>> "stefan" == stefan riha <stefanriha@yahoo.de> writes:

  stefan> Hi!  I'm trying to save my buffer list by putting the lines

  stefan> (desktop-load-default) (desktop-read)

  stefan> into .emacs This works, except that I can't save
  stefan> shell-sessions.  I just don't want to type "M-x shell" RET
  stefan> "M-x rename-buffer" "sh1" RET every time I start emacs.

Rather than messing around with desktop, why don't you just stick...

(shell "*sh1*")

at the end of your .emacs.

Phil

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

end of thread, other threads:[~2005-04-28 12:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3200.1114623559.2895.help-gnu-emacs@gnu.org>
2005-04-28 12:29 ` saving shell-sessions with desktop.el? Phillip Lord
2005-04-27 17:37 stefan riha
2005-04-27 19:08 ` Kevin Rodgers
2005-04-27 20:08   ` Kevin Rodgers

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