GNU bug report logs - #1019
23.0.60; emacs --daemon doesn't work on a console

Previous Next

Package: emacs;

Reported by: Tassilo Horn <thorn <at> fastmail.fm>

Date: Tue, 23 Sep 2008 19:25:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 1019 in the body.
You can then email your comments to 1019 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; emacs --daemon doesn't work on a console
Date: Tue, 23 Sep 2008 21:19:16 +0200
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I'd like to start an emacs daemon on startup in a runlevel script.  So I
added

  su --login --command 'emacs --daemon' horn

but that doesn't start a daemon.  So I tried issuing

  emacs --daemon

or

  emacs -Q --daemon

on a login shell, but that returns instantly and doesn't start an emacs
daemon, too.  Running inside gdb only says "Program exited normally."

When issuing the same commands inside a X terminal emulator they work as
they should, though.

What's going wrong?

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2008-09-23 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10500000
configured using `configure  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-g -ggdb -O1 -pipe' 'LDFLAGS=''

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_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  yas/minor-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  window-number-meta-mode: t
  window-number-mode: t
  savehist-mode: t
  exec-abbrev-cmd-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: 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

Recent input:
M-x g <return> <return> <escape> <escape> <escape> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <return> y SPC <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> SPC <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> SPC <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <backspace> 
^ c <return> SPC SPC c M-x r e b <return> <right> 
<return>

Recent messages:
20080923T210621.222> Fetching headers for nnimap+Fastmail:INBOX.mailinglists.emacs-devel...
20080923T210621.288> Fetching headers for nnimap+Fastmail:INBOX.mailinglists.emacs-devel...done
20080923T210621.347> Scoring...
20080923T210621.351> Scoring...done
20080923T210621.354> Generating summary...
20080923T210621.364> Generating summary...done
20080923T210646.338> Exiting summary buffer and applying spam rules
20080923T210646.366> nnimap: Setting marks in INBOX.mailinglists.emacs-devel...
20080923T210646.495> nnimap: Setting marks in INBOX.mailinglists.emacs-devel...done
Repeating command self-insert-command




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: 1019 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Wed, 24 Sep 2008 13:07:30 -0700 (PDT)
Tassilo Horn <thorn <at> fastmail.fm> writes:

  > Please write in English if possible, because the Emacs maintainers
  > usually do not have translators to read other languages for them.
  > 
  > Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing list.
  > 
  > Please describe exactly what actions triggered the bug
  > and the precise symptoms of the bug:
  > 
  > I'd like to start an emacs daemon on startup in a runlevel script.  So I
  > added
  > 
  >   su --login --command 'emacs --daemon' horn
  > 
  > but that doesn't start a daemon.  So I tried issuing
  > 
  >   emacs --daemon
  > 
  > or
  > 
  >   emacs -Q --daemon
  > 
  > on a login shell, but that returns instantly and doesn't start an emacs
  > daemon, too.  Running inside gdb only says "Program exited normally."
  > 
  > When issuing the same commands inside a X terminal emulator they work as
  > they should, though.

Thanks.  I checked in a fix, can you please try again?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: Tassilo Horn <thorn <at> fastmail.fm>, 1019 <at> debbugs.gnu.org,
        emacs-pretest-bug <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 09:53:29 +0200
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

Hi Dan!

>   > I'd like to start an emacs daemon on startup in a runlevel script.  So I
>   > added
>   > 
>   >   su --login --command 'emacs --daemon' horn
>   > 
>   > but that doesn't start a daemon.  So I tried issuing
>   > 
>   >   emacs --daemon
>   > 
>   > or
>   > 
>   >   emacs -Q --daemon
>   > 
>   > on a login shell, but that returns instantly and doesn't start an emacs
>   > daemon, too.  Running inside gdb only says "Program exited normally."
>   > 
>   > When issuing the same commands inside a X terminal emulator they work as
>   > they should, though.
>
> Thanks.  I checked in a fix, can you please try again?

Yes, it works now.  Thanks a lot.

But I have two additional questions.

1) How do I shutdown the emacs server cleanly? 

  IMO there should be some --kill-daemon option so that it can really be
  integrated as a system service.  Then of course there's the question
  what to do if unsaved buffers and running processes exist, where I
  don't have a good answer now.  Maybe killing processes unconditionally
  and saving files as #<filerame>#.  Unsaved buffers could be saved as
  ~/.emacs.d/unsaved-buffers/<buffername>.

2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
   But when I start emacsclient -c the first time, it has a toolbar,
   although the value of `tool-bar-mode' is nil.  Then I have to toggle
   t-b-m twice, and from there on it's disabled for the current and all
   new frames.  I disable the scroll- and menu-bars the same way, and
   they are disabled directly, e.g. even for the first X frame.

Bye,
Tassilo




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #30 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 10:43:09 -0700 (PDT)
Tassilo Horn <thorn <at> fastmail.fm> writes:

  > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
  > 
  > Hi Dan!
  > 
  > >   > I'd like to start an emacs daemon on startup in a runlevel script.  So I
  > >   > added
  > >   > 
  > >   >   su --login --command 'emacs --daemon' horn
  > >   > 
  > >   > but that doesn't start a daemon.  So I tried issuing
  > >   > 
  > >   >   emacs --daemon
  > >   > 
  > >   > or
  > >   > 
  > >   >   emacs -Q --daemon
  > >   > 
  > >   > on a login shell, but that returns instantly and doesn't start an emacs
  > >   > daemon, too.  Running inside gdb only says "Program exited normally."
  > >   > 
  > >   > When issuing the same commands inside a X terminal emulator they work as
  > >   > they should, though.
  > >
  > > Thanks.  I checked in a fix, can you please try again?
  > 
  > Yes, it works now.  Thanks a lot.
  > 
  > But I have two additional questions.
  > 
  > 1) How do I shutdown the emacs server cleanly? 

Use emacsclient to eval `save-buffers-kill-emacs'?

  > 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).

There's a better way to do this, use ~/.Xdefaults:

Emacs.ToolBar:                  0
Emacs.verticalScrollBars:       off

  >    But when I start emacsclient -c the first time, it has a toolbar,
  >    although the value of `tool-bar-mode' is nil.  Then I have to toggle
  >    t-b-m twice, and from there on it's disabled for the current and all
  >    new frames.  I disable the scroll- and menu-bars the same way, and
  >    they are disabled directly, e.g. even for the first X frame.

I checked in a fix to fix the initialization of tool-bar-mode and menu-bar-mode.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #35 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 27 Sep 2008 10:07:57 +0200
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

Hi Dan,

>   > But I have two additional questions.
>   > 
>   > 1) How do I shutdown the emacs server cleanly? 
>
> Use emacsclient to eval `save-buffers-kill-emacs'?

I'm pretty sure I tried `kill-emacs' yesterday and the emacs process
survived, but the server was shut down, so I couldn't connect anymore.
But I tested again and it works.  Thanks for the hint.

>   > 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
>
> There's a better way to do this, use ~/.Xdefaults:
>
> Emacs.ToolBar:                  0
> Emacs.verticalScrollBars:       off

Yes, I know.  But I like to have all my emacs customizations in lisp and
in ~/.emacs.

>   >    But when I start emacsclient -c the first time, it has a
>   >    toolbar, although the value of `tool-bar-mode' is nil.  Then I
>   >    have to toggle t-b-m twice, and from there on it's disabled for
>   >    the current and all new frames.  I disable the scroll- and
>   >    menu-bars the same way, and they are disabled directly,
>   >    e.g. even for the first X frame.
>
> I checked in a fix to fix the initialization of tool-bar-mode and
> menu-bar-mode.

Nothing visible has changed for me.  Still the first X11 frame after
starting the daemon has a tool-bar (and tool-bar-mode is nil).

Bye,
Tassilo
-- 
Some people wear Superman pajamas. Superman wears Chuck Norris pajamas. 




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #40 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 27 Sep 2008 08:51:03 -0700 (PDT)
Tassilo Horn <thorn <at> fastmail.fm> writes:

  > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
  > 
  > >   >    But when I start emacsclient -c the first time, it has a
  > >   >    toolbar, although the value of `tool-bar-mode' is nil.  Then I
  > >   >    have to toggle t-b-m twice, and from there on it's disabled for
  > >   >    the current and all new frames.  I disable the scroll- and
  > >   >    menu-bars the same way, and they are disabled directly,
  > >   >    e.g. even for the first X frame.
  > >
  > > I checked in a fix to fix the initialization of tool-bar-mode and
  > > menu-bar-mode.
  > 
  > Nothing visible has changed for me.  Still the first X11 frame after
  > starting the daemon has a tool-bar (and tool-bar-mode is nil).

Did you recompile startup.el and dump emacs again?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #45 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 27 Sep 2008 18:18:18 +0200
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

> Tassilo Horn <thorn <at> fastmail.fm> writes:
>
>   > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
>   > 
>   > >   >    But when I start emacsclient -c the first time, it has a
>   > >   >    toolbar, although the value of `tool-bar-mode' is nil.  Then I
>   > >   >    have to toggle t-b-m twice, and from there on it's disabled for
>   > >   >    the current and all new frames.  I disable the scroll- and
>   > >   >    menu-bars the same way, and they are disabled directly,
>   > >   >    e.g. even for the first X frame.
>   > >
>   > > I checked in a fix to fix the initialization of tool-bar-mode and
>   > > menu-bar-mode.
>   > 
>   > Nothing visible has changed for me.  Still the first X11 frame after
>   > starting the daemon has a tool-bar (and tool-bar-mode is nil).
>
> Did you recompile startup.el and dump emacs again?

I used my package manager (paludis).  It always copies the fresh source
tree to some location and makes a full bootstrap.

Bye,
Tassilo




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Dan Nicolaescu <dann <at> ics.uci.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #50 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 27 Sep 2008 10:00:55 -0700 (PDT)
Tassilo Horn <thorn <at> fastmail.fm> writes:

  > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
  > 
  > > Tassilo Horn <thorn <at> fastmail.fm> writes:
  > >
  > >   > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
  > >   > 
  > >   > >   >    But when I start emacsclient -c the first time, it has a
  > >   > >   >    toolbar, although the value of `tool-bar-mode' is nil.  Then I
  > >   > >   >    have to toggle t-b-m twice, and from there on it's disabled for
  > >   > >   >    the current and all new frames.  I disable the scroll- and
  > >   > >   >    menu-bars the same way, and they are disabled directly,
  > >   > >   >    e.g. even for the first X frame.
  > >   > >
  > >   > > I checked in a fix to fix the initialization of tool-bar-mode and
  > >   > > menu-bar-mode.
  > >   > 
  > >   > Nothing visible has changed for me.  Still the first X11 frame after
  > >   > starting the daemon has a tool-bar (and tool-bar-mode is nil).
  > >
  > > Did you recompile startup.el and dump emacs again?
  > 
  > I used my package manager (paludis).  It always copies the fresh source
  > tree to some location and makes a full bootstrap.

It works for me with a .emacs containing just your code:
 (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #55 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Wed, 08 Oct 2008 19:19:18 -0400
> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
>    But when I start emacsclient -c the first time, it has a toolbar,
>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
>    t-b-m twice, and from there on it's disabled for the current and all
>    new frames.  I disable the scroll- and menu-bars the same way, and
>    they are disabled directly, e.g. even for the first X frame.

Do you still see this problem?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #60 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 1019 <at> debbugs.gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Thu, 09 Oct 2008 11:12:22 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

Hi!

>> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
>>    But when I start emacsclient -c the first time, it has a toolbar,
>>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
>>    t-b-m twice, and from there on it's disabled for the current and all
>>    new frames.  I disable the scroll- and menu-bars the same way, and
>>    they are disabled directly, e.g. even for the first X frame.
>
> Do you still see this problem?

Yes, I updated my sources 30 minutes ago and made a complete bootstrap
to be sure.  Still, emacsclient -c gives a frame with toolbar and
tool-bar-mode set to nil.  `C-x 5 0' and another emacsclient -c again
gives another frame with toolbar.  So I really have to toggle t-b-m
twice and from then on it's all fine for this and all next frames.

Bye,
Tassilo
-- 
Chuck Norris doesn't read books. He stares them down until he gets the information he wants. 




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Message #63 received at 1019 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 1019 <at> debbugs.gnu.org, Tassilo Horn <thorn <at> fastmail.fm>
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Thu, 9 Oct 2008 09:49:00 -0700 (PDT)
Chong Yidong <cyd <at> stupidchicken.com> writes:

  > > 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
  > >    But when I start emacsclient -c the first time, it has a toolbar,
  > >    although the value of `tool-bar-mode' is nil.  Then I have to toggle
  > >    t-b-m twice, and from there on it's disabled for the current and all
  > >    new frames.  I disable the scroll- and menu-bars the same way, and
  > >    they are disabled directly, e.g. even for the first X frame.
  > 
  > Do you still see this problem?

This issue seem to have been fixed by:

2008-10-04  Dan Nicolaescu  <dann <at> ics.uci.edu>

      * faces.el (x-create-frame-with-faces): Only setup the toolbar if
      tool-bar-mode is on.

but I had to back out that change later because it was causing problems
in compile.el.  The compile.el problems are independent of this change,
and are described in bug#1133. 





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #68 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Xavier Maillard <xma <at> gnu.org>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: cyd <at> stupidchicken.com, bug-submit-list <at> donarmstrong.com,
        1019 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 10 Oct 2008 02:00:02 +0200
Hi,

I also checked with a fresh checked-out emacs and I can observe
the same behaviour here.

Regards

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #78 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Xavier Maillard <xma <at> gnu.org>
Cc: Tassilo Horn <thorn <at> fastmail.fm>, bug-submit-list <at> donarmstrong.com,
        1019 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Thu, 09 Oct 2008 20:40:24 -0400
Xavier Maillard <xma <at> gnu.org> writes:

>> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
>>    But when I start emacsclient -c the first time, it has a toolbar,
>>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
>>    t-b-m twice, and from there on it's disabled for the current and all
>>    new frames.  I disable the scroll- and menu-bars the same way, and
>>    they are disabled directly, e.g. even for the first X frame.

> I also checked with a fresh checked-out emacs and I can observe
> the same behaviour here.

When did you check it out?  I checked in a fix a few hours ago that
should have fixed this problem.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #88 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tassilo Horn <thorn <at> fastmail.fm>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Xavier Maillard <xma <at> gnu.org>, bug-submit-list <at> donarmstrong.com,
        1019 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 10 Oct 2008 09:55:43 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

Hi!

> Xavier Maillard <xma <at> gnu.org> writes:
>
>>> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
>>>    But when I start emacsclient -c the first time, it has a toolbar,
>>>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
>>>    t-b-m twice, and from there on it's disabled for the current and all
>>>    new frames.  I disable the scroll- and menu-bars the same way, and
>>>    they are disabled directly, e.g. even for the first X frame.
>
>> I also checked with a fresh checked-out emacs and I can observe
>> the same behaviour here.
>
> When did you check it out?  I checked in a fix a few hours ago that
> should have fixed this problem.

Your fix works for me.  There's no tool-bar on the initial frame.

Thanks a lot,
Tassilo
-- 
A morning without coffee is like something without something else.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <thorn <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug closed, send any further explanations to Tassilo Horn <thorn <at> fastmail.fm> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Fri, 10 Oct 2008 19:20:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #100 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Xavier Maillard <xma <at> gnu.org>
To: Tassilo Horn <thorn <at> fastmail.fm>
Cc: cyd <at> stupidchicken.com, bug-submit-list <at> donarmstrong.com,
        1019 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 11 Oct 2008 02:00:34 +0200
   Chong Yidong <cyd <at> stupidchicken.com> writes:

   Hi!

   > Xavier Maillard <xma <at> gnu.org> writes:
   >
   >>> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
   >>>    But when I start emacsclient -c the first time, it has a toolbar,
   >>>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
   >>>    t-b-m twice, and from there on it's disabled for the current and all
   >>>    new frames.  I disable the scroll- and menu-bars the same way, and
   >>>    they are disabled directly, e.g. even for the first X frame.
   >
   >> I also checked with a fresh checked-out emacs and I can observe
   >> the same behaviour here.
   >
   > When did you check it out?  I checked in a fix a few hours ago that
   > should have fixed this problem.

   Your fix works for me.  There's no tool-bar on the initial frame.

Same here. Thank you very much

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #105 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Xavier Maillard <xma <at> gnu.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: thorn <at> fastmail.fm, bug-submit-list <at> donarmstrong.com,
        1019 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Sat, 11 Oct 2008 02:00:05 +0200
   Xavier Maillard <xma <at> gnu.org> writes:

   >> 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
   >>    But when I start emacsclient -c the first time, it has a toolbar,
   >>    although the value of `tool-bar-mode' is nil.  Then I have to toggle
   >>    t-b-m twice, and from there on it's disabled for the current and all
   >>    new frames.  I disable the scroll- and menu-bars the same way, and
   >>    they are disabled directly, e.g. even for the first X frame.

   > I also checked with a fresh checked-out emacs and I can observe
   > the same behaviour here.

   When did you check it out?  I checked in a fix a few hours ago that
   should have fixed this problem.

I will have to test it again but if it can help, here is the
output from C-u M-x emacs-version:

GNU Emacs 23.0.60.11 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-10-09 on zogzog


	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1019; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Xavier Maillard <xma <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 08 Nov 2008 15:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 305 days ago.

Previous Next


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