From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#7741: More about folding emacsclient into emacs Date: Sun, 12 Jul 2015 22:00:16 -0400 Message-ID: <3owpy4g6kv.fsf@fencepost.gnu.org> References: <87r5d3z8wy.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436752876 4594 80.91.229.3 (13 Jul 2015 02:01:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 02:01:16 +0000 (UTC) Cc: 7741@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 04:01:08 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZET3L-0000hj-SF for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jul 2015 04:01:08 +0200 Original-Received: from localhost ([::1]:52534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZET3L-0007tE-4k for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 22:01:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZET3H-0007t0-AU for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 22:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZET3G-000370-BK for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 22:01:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZET3G-00036v-91 for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 22:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZET3G-0007Ke-0C for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jul 2015 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7741-submit@debbugs.gnu.org id=B7741.143675282928126 (code B ref 7741); Mon, 13 Jul 2015 02:01:01 +0000 Original-Received: (at 7741) by debbugs.gnu.org; 13 Jul 2015 02:00:29 +0000 Original-Received: from localhost ([127.0.0.1]:47749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZET2i-0007JY-72 for submit@debbugs.gnu.org; Sun, 12 Jul 2015 22:00:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZET2g-0007JN-8L for 7741@debbugs.gnu.org; Sun, 12 Jul 2015 22:00:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZET2a-0002qu-9D for 7741@debbugs.gnu.org; Sun, 12 Jul 2015 22:00:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZET2X-0002nE-SP; Sun, 12 Jul 2015 22:00:17 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZET2W-0002TN-Rg; Sun, 12 Jul 2015 22:00:16 -0400 X-Spook: Maple Hostage cybercash Antiviral National X-Ran: !7AKFUR%bYV}{{[N*F[]L_VRB&d?*^JKzB_$s,2,iXV6cFYr~JQ?s`|!;2.=bAbN7^C4{4 X-Hue: red X-Attribution: GM In-Reply-To: (Reuben Thomas's message of "Fri, 18 Oct 2013 00:11:24 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104935 Archived-At: Reuben Thomas wrote: > So again, it would be good if emacsclient were folded into emacs. I just > had a look at their respective command-line options, and I can't see any > that clash (where the same option is used for both programs, it's used for > the same thing). > > What would remain is to add options --[no]client to force "emacs" to [not] > behave as "emacsclient", and decide a sensible default policy. A sensible > place to start seems to be to behave like emacsclient when called with > --alternate-editor="", that is, try to connect to a server, and if one > can't be found, start normally (emacsclient would instead run "emacs > --daemon" here and try to connect to it). > > Regardless of whether anyone feels like hacking on this, I'd like to know > whether it's a tractable design problem (have I missed anything major?) and > clikely to be accepted. If so, I might be up for hacking on it. I had the same thoughts recently and found that, of course, there is already an open report for it. So I'm just chiming in very late to say that I agree with pretty much everything you said, and I would like to see a patch for this.