Re: desktop.el not playing nice

2005-04-18 Thread Stephan Stahl
Hi Richard. Richard Stallman said: > 1. Just change --no-desktop to disabel desktop-save-mode. > > I think that is the right change. How about this? Lars Hansen commited a patch that does just this sligthly diffrent.. -- Stephan Stahl ___ Emacs

Re: desktop.el not playing nice

2005-04-18 Thread Richard Stallman
1. Just change --no-desktop to disabel desktop-save-mode. I think that is the right change. How about this? *** desktop.el 05 Apr 2005 15:08:34 -0400 1.82 --- desktop.el 18 Apr 2005 01:22:51 -0400 *** *** 1031,1037 '(lambda () (let ((key "--no-desktop"

Re: desktop.el not playing nice

2005-04-18 Thread Lars Hansen
Stephan Stahl wrote: However as others have pointed out, (desktop-read) at a later time should reenable desktop-save-mode which it does not right now. I disagree. The command desktop-read is supposed to reload a saved desktop and nothing else, it should never change desktop-save-mode. We have the

Re: desktop.el not playing nice

2005-04-18 Thread Lars Hansen
David Kastrup wrote: However, when calling desktop-read explicitly in a --no-desktop session, desktop-save-mode should probably be reset to the customized default. At least I think that is more or less what people would expect. I think it would be confusing if desktop-read behaved differently i

Re: desktop.el not playing nice

2005-04-18 Thread Lars Hansen
Stephan Stahl wrote: Maybe --no-desktop should disable desktop-save-mode? I just installed a change to make --no-desktop switch off desktop-save mode. BTW, I now see that RMS have proposed essentially the same patch. ___ Emacs-devel mailing list Emacs

Re: desktop.el not playing nice

2005-04-18 Thread Stephan Stahl
Richard Stallman said: > Does this patch give results you like? > > *** desktop.el05 Apr 2005 15:08:34 -0400 1.82 > --- desktop.el18 Apr 2005 01:22:51 -0400 > *** > *** 1031,1037 > '(lambda () > (let ((key "--no-desktop")) > (if (member key c

Re: desktop.el not playing nice

2005-04-18 Thread Richard Stallman
Does this patch give results you like? *** desktop.el 05 Apr 2005 15:08:34 -0400 1.82 --- desktop.el 18 Apr 2005 01:22:51 -0400 *** *** 1031,1037 '(lambda () (let ((key "--no-desktop")) (if (member key command-line-args) ! (delete key command

Re: desktop.el not playing nice

2005-04-17 Thread Lennart Borgman
- Original Message - From: "David Kastrup" <[EMAIL PROTECTED]> > > What do people like best: > > 1. Just change --no-desktop to disabel desktop-save-mode. > > That. Other effects are too confusing to warrant a separate option: > you can achieve them by setting variables manually. > > H

Re: desktop.el not playing nice

2005-04-17 Thread David Kastrup
Lars Hansen <[EMAIL PROTECTED]> writes: > Stephan Stahl wrote: > >> Specify the option `--no-desktop' on the command line when you don't >>want it to reload any saved desktop. >> >> > IMHO this describes clearly what the --no-desktop flag does. But you > may be right the the flag should do som

Re: desktop.el not playing nice

2005-04-17 Thread Lars Hansen
Stephan Stahl wrote: Specify the option `--no-desktop' on the command line when you don't want it to reload any saved desktop. IMHO this describes clearly what the --no-desktop flag does. But you may be right the the flag should do something different. I can make --no-desktop disabel desktop

Re: desktop.el not playing nice

2005-04-17 Thread Robert J. Chassell
Stephan Stahl asks Maybe --no-desktop should disable desktop-save-mode? Yes. I have run into the same problem: when I start an instance of Emacs with --no-desktop, I want neither to use nor to alter my saved desktop. I want that instance of Emacs to ignore my ~/.emacs.desktop file entirely.

Re: desktop.el not playing nice

2005-04-17 Thread David Kastrup
"Stephan Stahl" <[EMAIL PROTECTED]> writes: > --no-desktop and saving could overwrite my old desktop file. I work > around this by starting > > emacs --no-desktop --eval "(customize-set-variable 'desktop-enable > nil)" > > but this seems like a pitfall for emacs starters. Maybe > --no-desktop sh