GNU bug report logs - #5512
Automatically saving and restoring an Emacs session in GNOME

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Reuben Thomas <rrt@HIDDEN>; dated Tue, 2 Feb 2010 15:23:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 9 Feb 2010 18:56:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 09 13:56:00 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NevFg-00013R-2w
	for submit <at> debbugs.gnu.org; Tue, 09 Feb 2010 13:56:00 -0500
Received: from proxy1.bredband.net ([195.54.101.71])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1NevFd-00013G-QS
	for 5512 <at> debbugs.gnu.org; Tue, 09 Feb 2010 13:55:58 -0500
Received: from ipb1.telenor.se (195.54.127.164) by proxy1.bredband.net
	(7.3.140.3) id 4B62ECEA0062C264 for 5512 <at> debbugs.gnu.org;
	Tue, 9 Feb 2010 19:55:52 +0100
X-SMTPAUTH-B2: 
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AnNIABY+cUtV4S1uPGdsb2JhbACBM4ZUkzEBAQEBN75xhFQE
X-IronPort-AV: E=Sophos;i="4.49,437,1262559600"; d="scan'208";a="35094941"
Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.110])
	by ipb1.telenor.se with ESMTP; 09 Feb 2010 19:55:52 +0100
Received: from [172.20.199.13] (zeplin [172.20.199.13])
	by coolsville.localdomain (Postfix) with ESMTPSA id 85E937FA01A;
	Tue,  9 Feb 2010 19:55:51 +0100 (CET)
Message-ID: <4B71AFB7.6030501@HIDDEN>
Date: Tue, 09 Feb 2010 19:55:51 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session
	in 	GNOME
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>	
	<4B6880D4.4080408@HIDDEN>	
	<f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>	
	<4B6FC1FD.1060502@HIDDEN>	
	<f92540e31002081245l35f048bdu6ecaf1d69be2e569@HIDDEN>	
	<4B7132C4.3060806@HIDDEN>
	<f92540e31002090947s4a556b08w83ae6a531073a9b8@HIDDEN>
In-Reply-To: <f92540e31002090947s4a556b08w83ae6a531073a9b8@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: Quoted-Printable
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)



Reuben Thomas skrev 2010-02-09 18.47:
> On 9 February 2010 10:02, Jan Dj=E4rv<jan.h.d@HIDDEN>  wrote:
>>   Anyway, you have session suport compiled in and Emacs talks to
>> the session manager.
>>
>> Do you have a directory ~/.emacs.d and is it writable?
>
> Yes.
>
>>   If you start emacs,
>> log out and then in again, do you have any session.* files in emacs.d?
>> Or any ~/.emacs.session.* files?
>
> OK, the problem seems to be a bit more complex than I thought.
>
> If I close down all my programs, log out, log in, start Emacs, then
> log out and back in, everything works, and my session is restored.
>
> If however I try to log out from a long-running session, GNOME says "A
> program is still running: Emacs", and offers me the choice to log out
> anyway, or to cancel the log-out action. If I ignore the warning and
> log out anyway, then indeed the Emacs session is restored when I log
> back in.
>
> So in fact, my problem is really: why sometimes does Emacs refuse to
> be killed? I tried for example starting an emacs client session, but
> that didn't seem to trigger this problem.
>
> In summary, it's a minor annoyance now that I understand what is going
> on better, but it would be nice to work out why Emacs sometimes
> refuses to die at first, althuogh it doesn't seem to matter if I just
> log out anyway.
>
> (I did come across another minor bug in the process which I'll now
> file separately.)

This is usually Emacs not responding to the session manager, or taking to=
o=20
long time to do so.  I have an idea about this, I'll have to check it out=
=2E

	Jan D.

>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 9 Feb 2010 17:47:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 09 12:47:17 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NeuBA-0000Np-Ii
	for submit <at> debbugs.gnu.org; Tue, 09 Feb 2010 12:47:16 -0500
Received: from exprod7og118.obsmtp.com ([64.18.2.8])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NeuB7-0000Nk-2U
	for 5512 <at> debbugs.gnu.org; Tue, 09 Feb 2010 12:47:15 -0500
Received: from source ([216.239.58.187]) by exprod7ob118.postini.com
	([64.18.6.12]) with SMTP
	ID DSNKS3GfmvIAmr8r9w3R6HUCdbd2ehswxdwK@HIDDEN;
	Tue, 09 Feb 2010 09:47:13 PST
Received: by gv-out-0910.google.com with SMTP id e6so275139gvc.17
	for <5512 <at> debbugs.gnu.org>; Tue, 09 Feb 2010 09:47:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.102.183.14 with SMTP id g14mr5897260muf.71.1265737625865; Tue, 
	09 Feb 2010 09:47:05 -0800 (PST)
In-Reply-To: <4B7132C4.3060806@HIDDEN>
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
	<4B6880D4.4080408@HIDDEN>
	<f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>
	<4B6FC1FD.1060502@HIDDEN>
	<f92540e31002081245l35f048bdu6ecaf1d69be2e569@HIDDEN>
	<4B7132C4.3060806@HIDDEN>
Date: Tue, 9 Feb 2010 17:47:04 +0000
Message-ID: <f92540e31002090947s4a556b08w83ae6a531073a9b8@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session in 
	GNOME
From: Reuben Thomas <rrt@HIDDEN>
To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

On 9 February 2010 10:02, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>=A0Anyway, you have session suport compiled in and Emacs talks to
> the session manager.
>
> Do you have a directory ~/.emacs.d and is it writable?

Yes.

>=A0If you start emacs,
> log out and then in again, do you have any session.* files in emacs.d?
> Or any ~/.emacs.session.* files?

OK, the problem seems to be a bit more complex than I thought.

If I close down all my programs, log out, log in, start Emacs, then
log out and back in, everything works, and my session is restored.

If however I try to log out from a long-running session, GNOME says "A
program is still running: Emacs", and offers me the choice to log out
anyway, or to cancel the log-out action. If I ignore the warning and
log out anyway, then indeed the Emacs session is restored when I log
back in.

So in fact, my problem is really: why sometimes does Emacs refuse to
be killed? I tried for example starting an emacs client session, but
that didn't seem to trigger this problem.

In summary, it's a minor annoyance now that I understand what is going
on better, but it would be nice to work out why Emacs sometimes
refuses to die at first, althuogh it doesn't seem to matter if I just
log out anyway.

(I did come across another minor bug in the process which I'll now
file separately.)

--=20
http://rrt.sc3d.org
occupants, n. professional underwear




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 9 Feb 2010 10:03:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 09 05:03:03 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Nemvu-0002JV-Et
	for submit <at> debbugs.gnu.org; Tue, 09 Feb 2010 05:03:02 -0500
Received: from proxy3.bredband.net ([195.54.101.73])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1Nemvg-0002J1-VE
	for 5512 <at> debbugs.gnu.org; Tue, 09 Feb 2010 05:03:01 -0500
Received: from ipb2.telenor.se (195.54.127.165) by proxy3.bredband.net
	(7.3.140.3) id 4AD3E1BA0311ED1C for 5512 <at> debbugs.gnu.org;
	Tue, 9 Feb 2010 11:02:45 +0100
X-SMTPAUTH-B2: 
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AnNIAGfBcEtV4S1uPGdsb2JhbACBMoZUkzQBAQEBN70MhFQE
X-IronPort-AV: E=Sophos;i="4.49,435,1262559600"; d="scan'208";a="34733585"
Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.110])
	by ipb2.telenor.se with ESMTP; 09 Feb 2010 11:02:45 +0100
Received: from [172.20.199.2] (gaffa [172.20.199.2])
	by coolsville.localdomain (Postfix) with ESMTP id 6B3E57FA01A;
	Tue,  9 Feb 2010 11:02:44 +0100 (CET)
Message-ID: <4B7132C4.3060806@HIDDEN>
Date: Tue, 09 Feb 2010 11:02:44 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session
	in 	GNOME
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>	
	<4B6880D4.4080408@HIDDEN>	
	<f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>	
	<4B6FC1FD.1060502@HIDDEN>
	<f92540e31002081245l35f048bdu6ecaf1d69be2e569@HIDDEN>
In-Reply-To: <f92540e31002081245l35f048bdu6ecaf1d69be2e569@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: Quoted-Printable
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)

Reuben Thomas skrev:
> On 8 February 2010 07:49, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>> Reuben Thomas skrev:
>>> On 2 February 2010 19:45, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>>>> Maybe your Emacs was built without libSM?  Did you compile it yourse=
lf?
>>>> In that case, check if HAVE_X_SM is defined in src/config.h.
>>> It is the standard Ubuntu build of Emacs 23.1, and it is linked
>>> against libSM. Is there any other information I can give?
>>>
>>> Here's the output that report-emacs-bug gives:
>> Start emacs and do
>> C-h v x-session-id.
>=20
> Its value is
> "1054f6786d2b365c6e126377503438154000000015820035"
>=20
>> C-h v emacs-save-session-functions
>=20
> Its value is nil
>=20
>> C-h v emacs-session-filename
>=20
> No such variable; there is a function of this name, however...
>=20

Yes sorry.  Anyway, you have session suport compiled in and Emacs talks t=
o the=20
session manager.

Do you have a directory ~/.emacs.d and is it writable?  If you start emac=
s,=20
log out and then in again, do you have any session.* files in emacs.d?
Or any ~/.emacs.session.* files?

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 8 Feb 2010 20:46:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 08 15:46:11 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NeaUl-0002M2-8a
	for submit <at> debbugs.gnu.org; Mon, 08 Feb 2010 15:46:11 -0500
Received: from exprod7og118.obsmtp.com ([64.18.2.8])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NeaUj-0002Lq-5P
	for 5512 <at> debbugs.gnu.org; Mon, 08 Feb 2010 15:46:09 -0500
Received: from source ([209.85.220.226]) by exprod7ob118.postini.com
	([64.18.6.12]) with SMTP
	ID DSNKS3B4C4yHSfRNSEpvy842zQYDWHooMsvr@HIDDEN;
	Mon, 08 Feb 2010 12:46:09 PST
Received: by mail-fx0-f226.google.com with SMTP id 26so2345735fxm.33
	for <5512 <at> debbugs.gnu.org>; Mon, 08 Feb 2010 12:46:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.77.66 with SMTP id f2mr3913559fak.84.1265661954769; Mon, 
	08 Feb 2010 12:45:54 -0800 (PST)
In-Reply-To: <4B6FC1FD.1060502@HIDDEN>
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
	<4B6880D4.4080408@HIDDEN>
	<f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>
	<4B6FC1FD.1060502@HIDDEN>
Date: Mon, 8 Feb 2010 20:45:54 +0000
Message-ID: <f92540e31002081245l35f048bdu6ecaf1d69be2e569@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session in 
	GNOME
From: Reuben Thomas <rrt@HIDDEN>
To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

On 8 February 2010 07:49, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
> Reuben Thomas skrev:
>>
>> On 2 February 2010 19:45, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>>>
>>> Maybe your Emacs was built without libSM? =A0Did you compile it yoursel=
f?
>>> In that case, check if HAVE_X_SM is defined in src/config.h.
>>
>> It is the standard Ubuntu build of Emacs 23.1, and it is linked
>> against libSM. Is there any other information I can give?
>>
>> Here's the output that report-emacs-bug gives:
>
> Start emacs and do
> C-h v x-session-id.

Its value is
"1054f6786d2b365c6e126377503438154000000015820035"

> C-h v emacs-save-session-functions

Its value is nil

> C-h v emacs-session-filename

No such variable; there is a function of this name, however...

--=20
http://rrt.sc3d.org
Police Refuse To Help Thug Attack Mum (Metro)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 8 Feb 2010 07:49:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 08 02:49:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NeON2-0001mF-Oh
	for submit <at> debbugs.gnu.org; Mon, 08 Feb 2010 02:49:27 -0500
Received: from proxy3.bredband.net ([195.54.101.73])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1NeON0-0001m6-Sx
	for 5512 <at> debbugs.gnu.org; Mon, 08 Feb 2010 02:49:23 -0500
Received: from ipb2.telenor.se (195.54.127.165) by proxy3.bredband.net
	(7.3.140.3) id 4AD3E1BA0300FEAE for 5512 <at> debbugs.gnu.org;
	Mon, 8 Feb 2010 08:49:18 +0100
X-SMTPAUTH-B2: 
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Aj5QAEJQb0tV4S1uPGdsb2JhbACBMoZUky8BAQEBN7sRhFQE
X-IronPort-AV: E=Sophos;i="4.49,427,1262559600"; d="scan'208";a="34184951"
Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.110])
	by ipb2.telenor.se with ESMTP; 08 Feb 2010 08:49:18 +0100
Received: from [172.20.199.2] (gaffa [172.20.199.2])
	by coolsville.localdomain (Postfix) with ESMTP id 234027FA01A;
	Mon,  8 Feb 2010 08:49:18 +0100 (CET)
Message-ID: <4B6FC1FD.1060502@HIDDEN>
Date: Mon, 08 Feb 2010 08:49:17 +0100
From: =?windows-1252?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session
	in 	GNOME
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>	
	<4B6880D4.4080408@HIDDEN>
	<f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>
In-Reply-To: <f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: Quoted-Printable
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)

Reuben Thomas skrev:
> On 2 February 2010 19:45, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>> Maybe your Emacs was built without libSM?  Did you compile it yourself=
?
>> In that case, check if HAVE_X_SM is defined in src/config.h.
>=20
> It is the standard Ubuntu build of Emacs 23.1, and it is linked
> against libSM. Is there any other information I can give?
>=20
> Here's the output that report-emacs-bug gives:

Start emacs and do
C-h v x-session-id.
C-h v emacs-save-session-functions
C-h v emacs-session-filename

What is the output?

	Jan D.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 2 Feb 2010 20:11:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 02 15:11:16 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NcP5f-0002wi-PH
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 15:11:16 -0500
Received: from exprod7og116.obsmtp.com ([64.18.2.219])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NcP5P-0002wJ-Nb
	for 5512 <at> debbugs.gnu.org; Tue, 02 Feb 2010 15:11:14 -0500
Received: from source ([209.85.220.211]) by exprod7ob116.postini.com
	([64.18.6.12]) with SMTP
	ID DSNKS2iGy8rLzYDkiiEu5Ulx+RMANktGFGbh@HIDDEN;
	Tue, 02 Feb 2010 12:11:00 PST
Received: by fxm3 with SMTP id 3so504368fxm.19
	for <5512 <at> debbugs.gnu.org>; Tue, 02 Feb 2010 12:10:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.15.86 with SMTP id j22mr159902faa.47.1265141451141; Tue, 
	02 Feb 2010 12:10:51 -0800 (PST)
In-Reply-To: <4B6880D4.4080408@HIDDEN>
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
	<4B6880D4.4080408@HIDDEN>
Date: Tue, 2 Feb 2010 20:10:50 +0000
Message-ID: <f92540e31002021210j16bb975v9614599c2fbcf67b@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session in 
	GNOME
From: Reuben Thomas <rrt@HIDDEN>
To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <5512 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

On 2 February 2010 19:45, Jan Dj=E4rv <jan.h.d@HIDDEN> wrote:
>
> Maybe your Emacs was built without libSM? =A0Did you compile it yourself?
> In that case, check if HAVE_X_SM is defined in src/config.h.

It is the standard Ubuntu build of Emacs 23.1, and it is linked
against libSM. Is there any other information I can give?

Here's the output that report-emacs-bug gives:



In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on vernadsky, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure  '--build=3Di486-linux-gnu'
'--host=3Di486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib'
'--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib'
'--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes=
'
'--enable-locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23=
.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-li=
sp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scroll-bars'
'build_alias=3Di486-linux-gnu' 'host_alias=3Di486-linux-gnu'
'CFLAGS=3D-DDEBIAN -g -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Org

Minor modes in effect:
  shell-dirtrack-mode: t
  filladapt-mode: t
  longlines-mode: t
  buffer-face-mode: t
  show-paren-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  global-auto-revert-mode: t
  desktop-save-mode: t
  smart-quotes-mode: t
  global-whitespace-mode: t
  mouse-wheel-mode: t
  use-hard-newlines: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

--=20
http://rrt.sc3d.org
dowsing: it may not be scientific, but at least it=92s well-intentioned




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at 5512 <at> debbugs.gnu.org:


Received: (at 5512) by debbugs.gnu.org; 2 Feb 2010 19:45:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 02 14:45:37 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NcOgr-0002ew-3W
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 14:45:37 -0500
Received: from proxy3.bredband.net ([195.54.101.73])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1NcOgn-0002ep-6U
	for 5512 <at> debbugs.gnu.org; Tue, 02 Feb 2010 14:45:35 -0500
Received: from ipb2.telenor.se (195.54.127.165) by proxy3.bredband.net
	(7.3.140.3) id 4AD3E1BA02D3E1E4 for 5512 <at> debbugs.gnu.org;
	Tue, 2 Feb 2010 20:45:28 +0100
X-SMTPAUTH-B2: 
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjlCAAIQaEtV4S1uPGdsb2JhbACBM4ZRkzMBAQEBN74LhEUE
X-IronPort-AV: E=Sophos;i="4.49,393,1262559600"; d="scan'208";a="32026658"
Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.110])
	by ipb2.telenor.se with ESMTP; 02 Feb 2010 20:45:27 +0100
Received: from anon-111-180.ipredate.net (anon-111-180.ipredate.net
	[93.182.180.111])
	by coolsville.localdomain (Postfix) with ESMTPSA id 98F707FA01A;
	Tue,  2 Feb 2010 20:45:26 +0100 (CET)
Message-ID: <4B6880D4.4080408@HIDDEN>
Date: Tue, 02 Feb 2010 20:45:24 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#5512: Automatically saving and restoring an Emacs session
	in	GNOME
References: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
In-Reply-To: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 5512
Cc: 5512 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)



Reuben Thomas skrev 2010-02-02 16.21:
> When I log out of my GNOME desktop, if Emacs (23.1) is running I get a
> message that it is "not responding". I therefore usually manually quit
> Emacs before logging out.
>
> Looking at the source, it seems that Emacs does have xsession support,
> so I am wondering what the problem is here. I am only running Emacs
> interactively, not in any sort of daemon mode, so the only emacs
> process I have running is the one I started myself.
>
> I can't see anything about this in the manual, but of course the
> trouble is that "session" occurs many times. I can't find "xsession"
> at all in the manual, and "log out" doesn't yield anything helpful
> either. Searching online suggests that Emacs may need some help with
> GNOME, but I can't see which version or why exactly it needs help, if
> it does.
>
> Clarification sought!

Maybe your Emacs was built without libSM?  Did you compile it yourself?
In that case, check if HAVE_X_SM is defined in src/config.h.

If not, try to see if Emacs is linked to libSM.  On GNU/Linux that is
% ldd emacs

Please yes M-x report-emacs-bug when reporting bugs, it includes information 
that helps tracking down the bug.

	Jan D.







Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Feb 2010 15:22:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 02 10:22:03 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NcKZh-000061-JU
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 10:22:03 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NcKZc-00005u-Be
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 10:21:56 -0500
Received: from mail.gnu.org ([199.232.76.166]:60375 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NcKZX-0004r5-Kt
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 10:21:47 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <rrt@HIDDEN>) id 1NcKZW-00075f-B2
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 10:21:47 -0500
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,
	UNPARSEABLE_RELAY autolearn=unavailable version=3.1.0
Received: from lists.gnu.org ([199.232.76.165]:59033)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <rrt@HIDDEN>) id 1NcKZV-000744-9V
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2010 10:21:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NcKZP-0000wm-KT
	for bug-gnu-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:39 -0500
Received: from [199.232.76.173] (port=43991 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NcKZO-0000vu-9p
	for bug-gnu-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:38 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <rrt@HIDDEN>) id 1NcKZN-00073Y-Ff
	for bug-gnu-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:38 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:41708)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <rrt@HIDDEN>) id 1NcKZN-00073S-92
	for bug-gnu-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:37 -0500
Received: from mx10.gnu.org ([199.232.76.166]:60366)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1NcKZM-0004qm-U0
	for bug-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:37 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <rrt@HIDDEN>) id 1NcKZK-00073A-Ep
	for bug-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:36 -0500
Received: from exprod7og101.obsmtp.com ([64.18.2.155]:57546)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <rrt@HIDDEN>) id 1NcKZK-00072q-2X
	for bug-emacs@HIDDEN; Tue, 02 Feb 2010 10:21:34 -0500
Received: from source ([209.85.220.225]) by exprod7ob101.postini.com
	([64.18.6.12]) with SMTP
	ID DSNKS2hC+tX8yqLRzX3PJypIwiDHO/iD4ACd@HIDDEN;
	Tue, 02 Feb 2010 07:21:33 PST
Received: by fxm25 with SMTP id 25so160881fxm.14
	for <bug-emacs@HIDDEN>; Tue, 02 Feb 2010 07:21:29 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.5.14 with SMTP id 14mr6309258fat.83.1265124089193; Tue, 02 
	Feb 2010 07:21:29 -0800 (PST)
Date: Tue, 2 Feb 2010 15:21:29 +0000
Message-ID: <f92540e31002020721j556b517cwf2f944d8790ac684@HIDDEN>
Subject: Automatically saving and restoring an Emacs session in GNOME
From: Reuben Thomas <rrt@HIDDEN>
To: bug-emacs <bug-emacs@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -5.8 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.8 (-----)

When I log out of my GNOME desktop, if Emacs (23.1) is running I get a
message that it is "not responding". I therefore usually manually quit
Emacs before logging out.

Looking at the source, it seems that Emacs does have xsession support,
so I am wondering what the problem is here. I am only running Emacs
interactively, not in any sort of daemon mode, so the only emacs
process I have running is the one I started myself.

I can't see anything about this in the manual, but of course the
trouble is that "session" occurs many times. I can't find "xsession"
at all in the manual, and "log out" doesn't yield anything helpful
either. Searching online suggests that Emacs may need some help with
GNOME, but I can't see which version or why exactly it needs help, if
it does.

Clarification sought!

-- 
http://rrt.sc3d.org
occupants, n. professional underwear





Acknowledgement sent to Reuben Thomas <rrt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5512; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.