GNU bug report logs - #17957
24.3.92; Bad interaction between "emacs --daemon" and "desktop-save-mode"

Previous Next

Package: emacs;

Reported by: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>

Date: Sun, 6 Jul 2014 16:38:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3.92

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17957 in the body.
You can then email your comments to 17957 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Sun, 06 Jul 2014 16:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Jul 2014 16:38:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.92;
 Bad interaction between "emacs --daemon" and "desktop-save-mode"
Date: Sun, 06 Jul 2014 18:36:19 +0200
Receipe from a command line:

  mkdir /tmp/t
  cd /tmp/t
  cat > .emacs <<EOF
    (add-to-list 'window-system-default-frame-alist '(nil . ((menu-bar-lines . 0))))
    (desktop-save-mode 1)
  EOF
  HOME=$PWD emacs --daemon
  emacsclient -n -c

Now in Emacs execute the commands 

  desktop-save
  kill-emacs

Restart Emacs with

  HOME=$PWD emacs --daemon

The menu bar has disappeared and a get an error message:

  Error (frameset): Wrong type argument: number-or-marker-p, nil

-----------------
In GNU Emacs 24.3.92.1 (i686-pc-linux-gnu, GTK+ Version 3.10.9)
 of 2014-06-27 on justinian
Windowing system distributor `Fedora Project', version 11.0.11404000
Configured using:
 `configure --prefix=/usr/local/emacs-24.3.92'

Important settings:
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Wed, 16 Jul 2014 04:36:02 GMT) Full text and rfc822 format available.

Message #8 received at 17957 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: 17957 <at> debbugs.gnu.org
Subject: Re: bug#17957: 24.3.92;
 Bad interaction between "emacs --daemon" and "desktop-save-mode"
Date: Wed, 16 Jul 2014 00:35:11 -0400
Benjamin Riefenstahl wrote:

>   mkdir /tmp/t
>   cd /tmp/t
>   cat > .emacs <<EOF
>     (add-to-list 'window-system-default-frame-alist '(nil . ((menu-bar-lines . 0))))
>     (desktop-save-mode 1)
>   EOF
>   HOME=$PWD emacs --daemon
>   emacsclient -n -c
>
> Now in Emacs execute the commands 
>
>   desktop-save
>   kill-emacs
>
> Restart Emacs with
>
>   HOME=$PWD emacs --daemon
>
> The menu bar has disappeared and a get an error message:
>
>   Error (frameset): Wrong type argument: number-or-marker-p, nil


Thanks for the nice report.

Following my change for

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17693

this issue does not seem to occur any more.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Thu, 17 Jul 2014 21:28:01 GMT) Full text and rfc822 format available.

Message #11 received at 17957 <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17957 <at> debbugs.gnu.org
Subject: Re: bug#17957: 24.3.92;
 Bad interaction between "emacs --daemon" and "desktop-save-mode"
Date: Thu, 17 Jul 2014 23:26:45 +0200
Hi Glenn,

Glenn Morris writes:
> Following my change for
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17693
>
> this issue does not seem to occur any more.

That is a good change, I think, I was wondering if the behaviour was
intended.

OTOH I still think there is another issue.  An entry in
window-system-default-frame-alist for terminal type nil should not cause
changes for a graphical display, regardless what desktop.el does, right?
Unless desktop.el messes with these variables in the wrong way.  So
there is either a problem with the interpretation of these variables or
with desktop.el setting them wrong.  And it is not a problem caused by
an .emacs.desktop saved with the previous version.

benny





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Wed, 14 Jul 2021 09:24:01 GMT) Full text and rfc822 format available.

Message #14 received at 17957 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: Glenn Morris <rgm <at> gnu.org>, 17957 <at> debbugs.gnu.org
Subject: Re: bug#17957: 24.3.92; Bad interaction between "emacs --daemon"
 and "desktop-save-mode"
Date: Wed, 14 Jul 2021 11:23:08 +0200
Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net> writes:

> OTOH I still think there is another issue.  An entry in
> window-system-default-frame-alist for terminal type nil should not cause
> changes for a graphical display, regardless what desktop.el does, right?
> Unless desktop.el messes with these variables in the wrong way.  So
> there is either a problem with the interpretation of these variables or
> with desktop.el setting them wrong.  And it is not a problem caused by
> an .emacs.desktop saved with the previous version.

(I'm going through old bug reports that unfortunately got little response at
the time.)

I tried following the recipe (in Emacs 28), but I was unable to
reproduce the problem.  Are you still seeing this issue in more recent
versions of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2021 09:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Sat, 17 Jul 2021 13:54:02 GMT) Full text and rfc822 format available.

Message #19 received at 17957 <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 17957 <at> debbugs.gnu.org
Subject: Re: bug#17957: 24.3.92; Bad interaction between "emacs --daemon"
 and "desktop-save-mode"
Date: Sat, 17 Jul 2021 15:52:53 +0200
Hi Lars,

> Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net> writes:
>> OTOH I still think there is another issue.  [...]

Lars Ingebrigtsen writes:
> I tried following the recipe (in Emacs 28), but I was unable to
> reproduce the problem.  Are you still seeing this issue in more recent
> versions of Emacs?

The original issue was fixed.  I was somehow wondering about a more
fundmental problem, but I can not at this time reconstruct what it was
or why I thought that the patch was not sufficient for that (I assume we
were talking about #c9f7ec736b here).

I think we can just close the bug and assume that any other issues have
been or will be dealt with when they cause actual problems.

Thanks, benny




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17957; Package emacs. (Sat, 17 Jul 2021 14:11:01 GMT) Full text and rfc822 format available.

Message #22 received at 17957 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: Glenn Morris <rgm <at> gnu.org>, 17957 <at> debbugs.gnu.org
Subject: Re: bug#17957: 24.3.92; Bad interaction between "emacs --daemon"
 and "desktop-save-mode"
Date: Sat, 17 Jul 2021 16:10:24 +0200
Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net> writes:

> I think we can just close the bug and assume that any other issues have
> been or will be dealt with when they cause actual problems.

Yup.  I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 17957 <at> debbugs.gnu.org and Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Jul 2021 14:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Aug 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 314 days ago.

Previous Next


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