From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vaidheeswaran C Newsgroups: gmane.emacs.bugs Subject: bug#7741: More about folding emacsclient into emacs Date: Mon, 13 Jul 2015 08:40:44 +0530 Message-ID: References: <87r5d3z8wy.fsf@sc3d.org> <3owpy4g6kv.fsf@fencepost.gnu.org> Reply-To: vaidheeswaran.chinnaraju@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1436802328 18516 80.91.229.3 (13 Jul 2015 15:45:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 15:45:28 +0000 (UTC) To: 7741@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 17:45:12 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 1ZEfup-0002xx-JD for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jul 2015 17:45:11 +0200 Original-Received: from localhost ([::1]:55442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfuo-0007HS-TI for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jul 2015 11:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfuj-0007GR-QC for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2015 11:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEfug-0004Tp-JF for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2015 11:45:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfug-0004Tb-Ge for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2015 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZEfug-0004ao-2T for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2015 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vaidheeswaran C Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jul 2015 15:45: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: confirmed X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143680228817591 (code B ref -1); Mon, 13 Jul 2015 15:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jul 2015 15:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:48209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEfuR-0004Ze-7a for submit@debbugs.gnu.org; Mon, 13 Jul 2015 11:44:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33822) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEU8u-000224-7O for submit@debbugs.gnu.org; Sun, 12 Jul 2015 23:10:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEU8k-0000pW-Dt for submit@debbugs.gnu.org; Sun, 12 Jul 2015 23:10:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEU8k-0000pS-B7 for submit@debbugs.gnu.org; Sun, 12 Jul 2015 23:10:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEU8j-00023g-2i for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 23:10:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEU8f-0000mP-QW for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 23:10:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEU8f-0000kZ-DF for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2015 23:10:41 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZEU8d-0002bl-Ho for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2015 05:10:39 +0200 Original-Received: from 106.206.156.27 ([106.206.156.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 05:10:39 +0200 Original-Received: from vaidheeswaran.chinnaraju by 106.206.156.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 05:10:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 106.206.156.27 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: <3owpy4g6kv.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 13 Jul 2015 11:44:46 -0400 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:104945 Archived-At: On Monday 13 July 2015 07:30 AM, Glenn Morris wrote: > 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. Some doubts I had while using emacsclient: 1. Can I control what emacs (i.e., from which path) the emacs daemon will be loaded from. 2. I had to use the "-F" option to keep the client frame maximized. It is not obvious how to pass in an ALIST on command line. I was wondering if there is an use case where the client would need an init script of it's own. This tiny script can store FRAME params for example. So, frame maximization and an init script is a __behaviour__ that both the emacsclient and regular emacs possibly share.