* bug#5512: Automatically saving and restoring an Emacs session in GNOME
@ 2010-02-02 15:21 Reuben Thomas
2010-02-02 19:45 ` Jan Djärv
2022-01-31 17:09 ` Lars Ingebrigtsen
0 siblings, 2 replies; 11+ messages in thread
From: Reuben Thomas @ 2010-02-02 15:21 UTC (permalink / raw)
To: 5512
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-02 15:21 bug#5512: Automatically saving and restoring an Emacs session in GNOME Reuben Thomas
@ 2010-02-02 19:45 ` Jan Djärv
2010-02-02 20:10 ` Reuben Thomas
2022-01-31 17:09 ` Lars Ingebrigtsen
1 sibling, 1 reply; 11+ messages in thread
From: Jan Djärv @ 2010-02-02 19:45 UTC (permalink / raw)
To: Reuben Thomas; +Cc: 5512
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-02 19:45 ` Jan Djärv
@ 2010-02-02 20:10 ` Reuben Thomas
2010-02-08 7:49 ` Jan Djärv
0 siblings, 1 reply; 11+ messages in thread
From: Reuben Thomas @ 2010-02-02 20:10 UTC (permalink / raw)
To: Jan Djärv; +Cc: 5512
On 2 February 2010 19:45, Jan Djärv <jan.h.d@swipnet.se> 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.
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=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var/lib'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
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
--
http://rrt.sc3d.org
dowsing: it may not be scientific, but at least it’s well-intentioned
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-02 20:10 ` Reuben Thomas
@ 2010-02-08 7:49 ` Jan Djärv
2010-02-08 20:45 ` Reuben Thomas
0 siblings, 1 reply; 11+ messages in thread
From: Jan Djärv @ 2010-02-08 7:49 UTC (permalink / raw)
To: Reuben Thomas; +Cc: 5512
Reuben Thomas skrev:
> On 2 February 2010 19:45, Jan Djärv <jan.h.d@swipnet.se> 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.
>
> 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.
C-h v emacs-save-session-functions
C-h v emacs-session-filename
What is the output?
Jan D.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-08 7:49 ` Jan Djärv
@ 2010-02-08 20:45 ` Reuben Thomas
2010-02-09 10:02 ` Jan Djärv
0 siblings, 1 reply; 11+ messages in thread
From: Reuben Thomas @ 2010-02-08 20:45 UTC (permalink / raw)
To: Jan Djärv; +Cc: 5512
On 8 February 2010 07:49, Jan Djärv <jan.h.d@swipnet.se> wrote:
> Reuben Thomas skrev:
>>
>> On 2 February 2010 19:45, Jan Djärv <jan.h.d@swipnet.se> 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.
>>
>> 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...
--
http://rrt.sc3d.org
Police Refuse To Help Thug Attack Mum (Metro)
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-08 20:45 ` Reuben Thomas
@ 2010-02-09 10:02 ` Jan Djärv
2010-02-09 17:47 ` Reuben Thomas
0 siblings, 1 reply; 11+ messages in thread
From: Jan Djärv @ 2010-02-09 10:02 UTC (permalink / raw)
To: Reuben Thomas; +Cc: 5512
Reuben Thomas skrev:
> On 8 February 2010 07:49, Jan Djärv <jan.h.d@swipnet.se> wrote:
>> Reuben Thomas skrev:
>>> On 2 February 2010 19:45, Jan Djärv <jan.h.d@swipnet.se> 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.
>>> 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...
>
Yes sorry. 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? If you start emacs,
log out and then in again, do you have any session.* files in emacs.d?
Or any ~/.emacs.session.* files?
Jan D.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-09 10:02 ` Jan Djärv
@ 2010-02-09 17:47 ` Reuben Thomas
2010-02-09 18:55 ` Jan Djärv
0 siblings, 1 reply; 11+ messages in thread
From: Reuben Thomas @ 2010-02-09 17:47 UTC (permalink / raw)
To: Jan Djärv; +Cc: 5512
On 9 February 2010 10:02, Jan Djärv <jan.h.d@swipnet.se> 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.)
--
http://rrt.sc3d.org
occupants, n. professional underwear
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-09 17:47 ` Reuben Thomas
@ 2010-02-09 18:55 ` Jan Djärv
0 siblings, 0 replies; 11+ messages in thread
From: Jan Djärv @ 2010-02-09 18:55 UTC (permalink / raw)
To: Reuben Thomas; +Cc: 5512
Reuben Thomas skrev 2010-02-09 18.47:
> On 9 February 2010 10:02, Jan Djärv<jan.h.d@swipnet.se> 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 too
long time to do so. I have an idea about this, I'll have to check it out.
Jan D.
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#5512: Automatically saving and restoring an Emacs session in GNOME
2010-02-02 15:21 bug#5512: Automatically saving and restoring an Emacs session in GNOME Reuben Thomas
2010-02-02 19:45 ` Jan Djärv
@ 2022-01-31 17:09 ` Lars Ingebrigtsen
2022-01-31 17:17 ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-31 17:09 UTC (permalink / raw)
To: Reuben Thomas; +Cc: 5512
Reuben Thomas <rrt@sc3d.org> writes:
> 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.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Are you still seeing this issue in recent Emacs/Gnome versions? (I
can't recall seeing this myself in a long time.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-01-31 17:30 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 15:21 bug#5512: Automatically saving and restoring an Emacs session in GNOME Reuben Thomas
2010-02-02 19:45 ` Jan Djärv
2010-02-02 20:10 ` Reuben Thomas
2010-02-08 7:49 ` Jan Djärv
2010-02-08 20:45 ` Reuben Thomas
2010-02-09 10:02 ` Jan Djärv
2010-02-09 17:47 ` Reuben Thomas
2010-02-09 18:55 ` Jan Djärv
2022-01-31 17:09 ` Lars Ingebrigtsen
2022-01-31 17:17 ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-31 17:30 ` Lars Ingebrigtsen
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).