all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19453: Bad interaction between daemon mode and desktop-save-mode
@ 2014-12-27 13:25 David Fiander
  2014-12-27 14:00 ` bug#19453: Possible fix David Fiander
  2014-12-27 14:02 ` bug#19453: Bad interaction between daemon mode and desktop-save-mode Ivan Shmakov
  0 siblings, 2 replies; 3+ messages in thread
From: David Fiander @ 2014-12-27 13:25 UTC (permalink / raw)
  To: 19453

This seems to be related to bugs 17957, 17963, and 7352.

In a terminal window, run

	$ emacs -Q -daemon

then run

	$ emacsclient -n -c

In the new emacs window, execute

	(desktop-save-mode 1)
	(kill-emacs)

and answer 'y' when asked if you want to save the desktop.

Back in the terminal, run

	$ emacs

(note that the daemon is already dead). Emacs will create a new 
graphical frame. This frame may display the warning

	Error (frameset): Font `tty' is not defined

And, according to the modeline, it will claim to be an emailclient 
frame, even though it's not. The problem is that the desktop save file 
saved the setting

	(client . nowait)

In general, I think that the problem is that certain parts of the emacs 
state are being saved (or restored, depending on your point of view) in 
the desktop file that shouldn't necessarily be, since they're tied to 
the method of invocation more than to the user's specific preferences.

- David





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

* bug#19453: Possible fix
  2014-12-27 13:25 bug#19453: Bad interaction between daemon mode and desktop-save-mode David Fiander
@ 2014-12-27 14:00 ` David Fiander
  2014-12-27 14:02 ` bug#19453: Bad interaction between daemon mode and desktop-save-mode Ivan Shmakov
  1 sibling, 0 replies; 3+ messages in thread
From: David Fiander @ 2014-12-27 14:00 UTC (permalink / raw)
  To: 19453

It looks like adding

	(client . :never)

to frameset-filter-alist (and frameset-persistent-filter-alist?) fixes 
the problem of the client state being saved incorrectly.





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

* bug#19453: Bad interaction between daemon mode and desktop-save-mode
  2014-12-27 13:25 bug#19453: Bad interaction between daemon mode and desktop-save-mode David Fiander
  2014-12-27 14:00 ` bug#19453: Possible fix David Fiander
@ 2014-12-27 14:02 ` Ivan Shmakov
  1 sibling, 0 replies; 3+ messages in thread
From: Ivan Shmakov @ 2014-12-27 14:02 UTC (permalink / raw)
  To: 19453, 17352, control

merge 17352 19453
thanks

>>>>> David Fiander <david@fiander.info> writes:

[…]

 > This frame may display the warning

 > 	Error (frameset): Font `tty' is not defined

	AIUI, this has already been reported as #17352.  As a
	workaround, the latter suggests the following setting:

(setq desktop-restore-frames nil)

	The issue isn’t really specific to the daemon mode: loading a
	desktop file saved from a non-windowed Emacs instance into a
	windowed produces the same error.

 > And, according to the modeline, it will claim to be an emailclient
 > frame, even though it's not.  The problem is that the desktop save
 > file saved the setting

 > 	(client . nowait)

 > In general, I think that the problem is that certain parts of the
 > emacs state are being saved (or restored, depending on your point of
 > view) in the desktop file that shouldn't necessarily be, since
 > they're tied to the method of invocation more than to the user's
 > specific preferences.

	Yes.

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A





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

end of thread, other threads:[~2014-12-27 14:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 13:25 bug#19453: Bad interaction between daemon mode and desktop-save-mode David Fiander
2014-12-27 14:00 ` bug#19453: Possible fix David Fiander
2014-12-27 14:02 ` bug#19453: Bad interaction between daemon mode and desktop-save-mode Ivan Shmakov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.