GNU bug report logs -
#24298
25.1; problem with restoring desktop
Previous Next
Reported by: covici <at> ccs.covici.com
Date: Wed, 24 Aug 2016 11:32:01 UTC
Severity: normal
Found in version 25.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #107 received at 24298 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 10 Dec 2016 13:46:15 -0500
> From: John Covici <covici <at> ccs.covici.com>
> Cc: 24298 <at> debbugs.gnu.org
>
> > > I am sorry, it wasn't a makefile, you are correct. OK, let me try
> > > again. Before the restore commit, when I enter emacs, the current
> > > buffer is brltty-9999.ebuild but after the commit the current buffer
> > > is the default.xml. Before the restore commit, if I do c-x-b the
> > > default buffer it wants to switch to is default.xml. After the
> > > restore commit, when the current buffer is default.xml when it should
> > > be brltty-9999.ebuild the default buffer to switch to is the scratch
> > > buffer. In a desktop with many buffers, after the restore commit, it
> > > seems to pick a random buffer to be the current buffer rather than the
> > > one it should be.
> > >
> > > I hope this is clear now.
> >
> > It is, thanks. But please also answer my question above about the
> > order of buffers in the list returned by buffer-list, before you quite
> > Emacs which writes the desktop file.
>
> Here is what I have before the restore commit.
>
> CRM Buffer Size Mode File
> . brltty-9999.ebuild 4916 Text
> /usr/local/portage/app-accessibility/brltty/brltty-9999.ebuild
> default.xml 48920 nXML Invalid
> /etc/freeswitch/conf/dialplan/default.xml
> %* *Completions* 275 Completion List
> *scratch* 145 Lisp Interaction
> %* *Messages* 578 Messages
>
> And here is what I get after the commit
> CRM Buffer Size Mode File
> *scratch* 145 Lisp Interaction
> %* *Messages* 206 Messages
> brltty-9999.ebuild 4916 Text
> /usr/local/portage/app-accessibility/brltty/brltty-9999.ebuild
> . default.xml 48920 nXML Invalid
> /etc/freeswitch/conf/dialplan/default.xml
>
> and if I quit emacs and use emacs before the commit, I get the first
> one.
>
> Hope this helps.
Thanks, can you try the patch below and see if it solves this problem?
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 1f460b7..e83891b 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1157,13 +1157,13 @@ desktop-lazy-timer
;; ----------------------------------------------------------------------------
(defun desktop-restoring-frameset-p ()
"True if calling `desktop-restore-frameset' will actually restore it."
- (and desktop-restore-frames desktop-saved-frameset t))
+ (and desktop-restore-frames desktop-saved-frameset (display-graphic-p) t))
(defun desktop-restore-frameset ()
"Restore the state of a set of frames.
This function depends on the value of `desktop-saved-frameset'
being set (usually, by reading it from the desktop)."
- (when (and (display-graphic-p) (desktop-restoring-frameset-p))
+ (when (desktop-restoring-frameset-p)
(frameset-restore desktop-saved-frameset
:reuse-frames (eq desktop-restore-reuses-frames t)
:cleanup-frames (not (eq desktop-restore-reuses-frames 'keep))
This bug report was last modified 8 years and 153 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.