From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: BUG: Newest org-mode interferes with desktop save Date: Wed, 15 Jun 2011 20:23:32 +0200 Message-ID: References: <87y613uj2x.fsf@gmail.com> <4570.1308159315@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00235452f83401626f04a5c440c0 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWukZ-000071-TF for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 14:23:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWukY-0005GU-1Y for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 14:23:35 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:34202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWukX-0005GP-Ll for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 14:23:33 -0400 Received: by qwa26 with SMTP id 26so487613qwa.0 for ; Wed, 15 Jun 2011 11:23:33 -0700 (PDT) In-Reply-To: <4570.1308159315@alphaville.americas.hpqcorp.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode --00235452f83401626f04a5c440c0 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 15, 2011 at 7:35 PM, Nick Dokos wrote: > Eric Schulte wrote: > > > > I was able to reproduce this query-on-close behavior with the following > > minimal config. > > > > #+begin_src sh > > emacs -Q -l ~/.emacs.d/src/org/lisp/org.el --eval "(desktop-save-mode > 1)" > > #+end_src > > > > however, I think this prompting behavior is expected, and when I > > switched to the following alternative > > > > #+begin_src sh > > emacs -Q -l ~/.emacs.d/src/org/lisp/org.el --eval '(desktop-read > "~/Desktop/")' > > #+end_src > > > > I received no prompt on exit. As far as I can tell there is not an > > Org-mode bug here, however I could very well have missed something. > > > > > Rainer M Krug writes: > > > > > when using the newest version of org-mode (Org-mode version 7.5 > > > (release_7.5.391.gfacc)), I get the following warning when closing > emacs, > > > > > > "Current desktop was not loaded from a file. Overwrite this desktop > file?" > > > > > > although it has loaded the desktop file. When I use 7.5 (and te one > from I > > > guess yesterday), the message did not occur. > > > > > > I have (desktop-save-mode 1) on my emacs.org. > > > > > > Maybe this will help? > > ,---- > | desktop-save is a variable defined in `desktop.el'. > | Its value is ask-if-new > | > | Documentation: > | Specifies whether the desktop should be saved when it is killed. > | A desktop is killed when the user changes desktop or quits Emacs. > | Possible values are: > | t -- always save. > | ask -- always ask. > | ask-if-new -- ask if no desktop file exists, otherwise just save. > | ask-if-exists -- ask if desktop file exists, otherwise don't save. > | if-exists -- save if desktop file exists, otherwise don't save. > | nil -- never save. > | The desktop is never saved when `desktop-save-mode' is nil. > | The variables `desktop-dirname' and `desktop-base-file-name' > | determine where the desktop is saved. > `---- > Might be, but my point is, that the behaviour has changed in org-mode - and that should not be. Cheers, Rainer > > Nick > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --00235452f83401626f04a5c440c0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Jun 15, 2011 at 7:35 PM, Nick Do= kos <nicholas= .dokos@hp.com> wrote:
Eric Schulte <schulte.eric@gmail.com> wrote:


> I was able to reproduce this query-on-close behavior with the followin= g
> minimal config.
>
> #+begin_src sh
> =A0 emacs -Q -l ~/.emacs.d/src/org/lisp/org.el --eval "(desktop-s= ave-mode 1)"
> #+end_src
>
> however, I think this prompting behavior is expected, and when I
> switched to the following alternative
>
> #+begin_src sh
> =A0 emacs -Q -l ~/.emacs.d/src/org/lisp/org.el --eval '(desktop-re= ad "~/Desktop/")'
> #+end_src
>
> I received no prompt on exit. =A0As far as I can tell there is not an<= br> > Org-mode bug here, however I could very well have missed something. >

> Rainer M Krug <r.m.krug@gmail.com> writes:
>
> > when using the newest version of org-mode= (Org-mode version 7.5
> > (release_7.5.391.gfacc)), I get the following warning when closin= g emacs,
> >
> > "Current desktop was not loaded from a file. Overwrite this = desktop file?"
> >
> > although it has loaded the desktop file. When I use 7.5 (and te o= ne from I
> > guess yesterday), the message did not occur.
> >
> > I have (desktop-save-mode 1) on my emacs.org.
> >


Maybe this will help?

,----
| desktop-save is a variable defined in `desktop.el'.
| Its value is ask-if-new
|
| Documentation:
| Specifies whether the desktop should be saved when it is killed.
| A desktop is killed when the user changes desktop or quits Emacs.
| Possible values are:
| =A0 =A0t =A0 =A0 =A0 =A0 =A0 =A0 -- always save.
| =A0 =A0ask =A0 =A0 =A0 =A0 =A0 -- always ask.
| =A0 =A0ask-if-new =A0 =A0-- ask if no desktop file exists, otherwise just= save.
| =A0 =A0ask-if-exists -- ask if desktop file exists, otherwise don't s= ave.
| =A0 =A0if-exists =A0 =A0 -- save if desktop file exists, otherwise don= 9;t save.
| =A0 =A0nil =A0 =A0 =A0 =A0 =A0 -- never save.
| The desktop is never saved when `desktop-save-mode' is nil.
| The variables `desktop-dirname' and `desktop-base-file-name'
| determine where the desktop is saved.
`----

Might be, but my point is, that t= he behaviour has changed in org-mode - and that should not be.
Cheers,

Rainer
=A0

Nick



--
Rainer M. Krug, = PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phy= s. (Germany)

Centre of Excellence for Invasion Biology
Stellenbos= ch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--00235452f83401626f04a5c440c0--