From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#7741: 23.2.91; Please allow emacs to run emacsclient Date: Mon, 4 Jul 2011 17:23:36 +0100 Message-ID: References: <87r5d3z8wy.fsf@sc3d.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1309798720 2492 80.91.229.12 (4 Jul 2011 16:58:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 16:58:40 +0000 (UTC) Cc: 7741@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 18:58:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdmTi-0004L3-D6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 18:58:34 +0200 Original-Received: from localhost ([::1]:50287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdmTh-0001pZ-2b for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 12:58:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdlwK-0001iM-2u for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 12:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdlwI-0000e7-HJ for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 12:24:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdlwI-0000e0-9K for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 12:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdlwH-0006OM-Mg; Mon, 04 Jul 2011 12:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2011 16:24: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.130979663724559 (code B ref 7741); Mon, 04 Jul 2011 16:24:01 +0000 Original-Received: (at 7741) by debbugs.gnu.org; 4 Jul 2011 16:23:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdlwC-0006O4-8R for submit@debbugs.gnu.org; Mon, 04 Jul 2011 12:23:56 -0400 Original-Received: from exprod7og115.obsmtp.com ([64.18.2.217]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qdlw9-0006Ne-K9 for 7741@debbugs.gnu.org; Mon, 04 Jul 2011 12:23:54 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKThHpCO3EbdHsUvGkx0A4krDJ26LiJUcX@postini.com; Mon, 04 Jul 2011 09:23:42 PDT Original-Received: by mail-pv0-f169.google.com with SMTP id 12so4830943pvc.28 for <7741@debbugs.gnu.org>; Mon, 04 Jul 2011 09:23:36 -0700 (PDT) Original-Received: by 10.143.60.1 with SMTP id n1mr2849667wfk.331.1309796616372; Mon, 04 Jul 2011 09:23:36 -0700 (PDT) Original-Received: by 10.142.226.19 with HTTP; Mon, 4 Jul 2011 09:23:36 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 12:24:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47961 Archived-At: On 4 July 2011 12:43, Juanma Barranquero wrote: > On Mon, Dec 27, 2010 at 13:39, Reuben Thomas wrote: > >> It would be >> nice if emacs did the same, i.e. if emacs had a -client flag which made >> it work like emacsclient. Even if it did something as simple as passing >> the remaining arguments to emacsclient. > > Isn't that the kind of thing that's easily done with a shell script? > (I certainly do much more complicated things to start emacs / > emacsclient with Windows' CMD.EXE, which is far less powerful that any > POSIX shell...) Of course, a shell script could do the task, it just would be good to have out of the box. Given the amount of effort that has already gone into making it possible to use emacsclient (e.g. ALTERNATE_EDITOR and its magic behavior when it exists but is empty), it seems worth pursuing making things simpler. Here, I'm after a solution that means that one can set EDITOR=emacs, and it will just DTRT, i.e. start Emacs if not already started, or use emacsclient otherwise. All the required behavior already exists, but it's still necessary to use emacsclient and set up some environment variables to make it all work; it should be possible to do pretty much everything out of the box, which would give users who don't have the time or expertise to set everything up access to the same convenience and functionality. -- http://rrt.sc3d.org