unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Hyatt <ahyatt@gmail.com>
Cc: trentbuck@gmail.com, 6685@debbugs.gnu.org
Subject: bug#6685: 23.2; Discards control characters during boot.
Date: Sat, 10 Sep 2016 09:23:14 +0300	[thread overview]
Message-ID: <83sht88e99.fsf@gnu.org> (raw)
In-Reply-To: <CAM6wYYKBvh_G1AWYvVmxGK-QX7QpJ8kEnbKigKe2-XSzbSnkYw@mail.gmail.com> (message from Andrew Hyatt on Fri, 09 Sep 2016 20:32:57 +0000)

> From: Andrew Hyatt <ahyatt@gmail.com>
> Date: Fri, 09 Sep 2016 20:32:57 +0000
> Cc: trentbuck@gmail.com, 6685@debbugs.gnu.org
> 
>  > I was trying to reproduce this in Emacs 25, but emacsclient will not
>  > start up a new emacs instance with emacsclient. According to the
>  > documentation I have on emacsclient on using the alternative editor
>  > flag:
>  >
>  > If the value of EDITOR is the empty string, run "emacs --daemon" to
>  > start Emacs in daemon mode, and try to connect to it.
>  >
>  > So I can't reproduce this issue anymore. Let me know if I'm missing
>  > something, please.
> 
>  Sorry, I don't understand what you are saying. Starting the daemon
>  with ALTERNATIVE_EDITOR="" was part of the recipe; you seem to say it
>  no longer works, although the documentation still says it should? It
>  certainly works for me, if I understood correctly what you described.
> 
> It doesn't work for me for some reason, and the documentation seems to imply that it shouldn't work. If using
> ALTERNATIVE_EDITOR="" started emacs in daemon mode, why would the documentation tell the user to
> run the "emacs --daemon" manually? Instead, what I get when I don't have an emacs in daemon mode, is just
> emacsclient telling me there's no emacs daemon running.
> 
> Judging by your response, I feel I must be misunderstanding something, but I don't know what.

What happens if you try this command on your system?  That is, if you
type

  ALTERNATE_EDITOR='' emacsclient -t -c

What I see on a typical GNU/Linux system is this:

  /home/e/eliz/emacs-current/lib-src/emacsclient: can't find socket; have you started the server?
  To start the server in Emacs, type "M-x server-start".

  Warning: due to a long standing Gtk+ bug
  http://bugzilla.gnome.org/show_bug.cgi?id=85715
  Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
  Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
  ("emacs")
  Loading 00debian-vars...
  [More packages loading from the site-init file...]
  Starting Emacs daemon.
  Restarting server
  Emacs daemon should have started, trying to connect again

and then I see an Emacs frame (in text mode in this case, since -t was
used) open.  As you see, after warning me about no daemon running,
emacsclient starts a new daemon, then attempts to reconnect to it.

What happens if you try that?





  reply	other threads:[~2016-09-10  6:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-21  2:13 bug#6685: 23.2; Discards control characters during boot Trent W. Buck
2012-04-11  8:07 ` Chong Yidong
2012-04-11 10:56   ` Trent W. Buck
2016-09-08  5:08 ` Andrew Hyatt
2016-09-08 16:21   ` Eli Zaretskii
2016-09-09 20:32     ` Andrew Hyatt
2016-09-10  6:23       ` Eli Zaretskii [this message]
2016-09-11  3:53         ` Andrew Hyatt
2016-09-11 15:35           ` Eli Zaretskii
2016-09-14 14:46             ` Trent W. Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sht88e99.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=6685@debbugs.gnu.org \
    --cc=ahyatt@gmail.com \
    --cc=trentbuck@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).