From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6685: 23.2; Discards control characters during boot. Date: Sat, 10 Sep 2016 09:23:14 +0300 Message-ID: <83sht88e99.fsf@gnu.org> References: <87bpa160pk.fsf@gmail.com> <83r38u8irs.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1473488670 19926 195.159.176.226 (10 Sep 2016 06:24:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 06:24:30 +0000 (UTC) Cc: trentbuck@gmail.com, 6685@debbugs.gnu.org To: Andrew Hyatt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 10 08:24:25 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bibi5-0003ef-6T for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Sep 2016 08:24:17 +0200 Original-Received: from localhost ([::1]:33346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bibi3-0000HM-6a for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Sep 2016 02:24:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bibhw-0000H5-HH for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2016 02:24:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bibhq-0000XI-RT for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2016 02:24:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bibhq-0000XE-Nv for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2016 02:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bibhq-0008A7-Hq for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2016 02:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Sep 2016 06:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6685-submit@debbugs.gnu.org id=B6685.147348860731329 (code B ref 6685); Sat, 10 Sep 2016 06:24:02 +0000 Original-Received: (at 6685) by debbugs.gnu.org; 10 Sep 2016 06:23:27 +0000 Original-Received: from localhost ([127.0.0.1]:55073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bibhH-00089F-HR for submit@debbugs.gnu.org; Sat, 10 Sep 2016 02:23:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bibhG-000890-3f for 6685@debbugs.gnu.org; Sat, 10 Sep 2016 02:23:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bibh6-0000Rg-Vl for 6685@debbugs.gnu.org; Sat, 10 Sep 2016 02:23:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bibh6-0000Rc-ST; Sat, 10 Sep 2016 02:23:16 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1767 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bibh5-00019M-Lu; Sat, 10 Sep 2016 02:23:16 -0400 In-reply-to: (message from Andrew Hyatt on Fri, 09 Sep 2016 20:32:57 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123136 Archived-At: > From: Andrew Hyatt > 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?