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: More about folding emacsclient into emacs Date: Fri, 18 Oct 2013 00:11:24 +0100 Message-ID: References: <87r5d3z8wy.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1132f2d2cb5aba04e8f7ef9b X-Trace: ger.gmane.org 1382051536 15537 80.91.229.3 (17 Oct 2013 23:12:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2013 23:12:16 +0000 (UTC) To: 7741@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 18 01:12:19 2013 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 1VWwjo-0003lp-2o for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 01:12:16 +0200 Original-Received: from localhost ([::1]:55026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWwjn-0004Hi-Jg for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 19:12:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWwjf-0004Hc-Uu for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 19:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWwjb-0007Eh-1V for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 19:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWwja-0007Ed-To for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 19:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VWwja-0004IX-Hd for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 19:12:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87r5d3z8wy.fsf@sc3d.org> Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2013 23:12:02 +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.138205149416485 (code B ref 7741); Thu, 17 Oct 2013 23:12:02 +0000 Original-Received: (at 7741) by debbugs.gnu.org; 17 Oct 2013 23:11:34 +0000 Original-Received: from localhost ([127.0.0.1]:56120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWwj7-0004Ho-7n for submit@debbugs.gnu.org; Thu, 17 Oct 2013 19:11:33 -0400 Original-Received: from mail-lb0-f177.google.com ([209.85.217.177]:42654) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWwj4-0004HW-Eo for 7741@debbugs.gnu.org; Thu, 17 Oct 2013 19:11:31 -0400 Original-Received: by mail-lb0-f177.google.com with SMTP id w7so2494754lbi.36 for <7741@debbugs.gnu.org>; Thu, 17 Oct 2013 16:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=Mt8dGfBAkP/9aIokJR/L9h6LttXRj+8M3XUlcCbCtKk=; b=4BFSbSsdaJelMEpct0VZuJoWw8/6Eh0beHyklqswyrawk8mBEwxCNS3ui9pw3C5m7u oGAoKn8Klr0hmGIgvOyyi0T5XRuw62lw8PpM9m9j82W9blyVRxz48q57Vnf8ntwQf4AR EPjioNcncJU1xvjbh8/nJjTxsoW48VcyZXlps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Mt8dGfBAkP/9aIokJR/L9h6LttXRj+8M3XUlcCbCtKk=; b=cxgwUWGBJycv2cqZrl1XqwBfsRuEHVokDzIGPWnUlU0Zj8dBOrCs5fOHGf8z2ZMKl2 nLoN+UsiDwQ2fkESeDxAeQE4Edlh4ABpl2QD9n3paIMM4jW4ml9fod5mL+MyNQkd81bY XjD+ZACgQitNQTDA6iTHGoUCyMlal6eETdB3LBVddUAC283IMmyYpk3vR2bixQunVDVT XbATiq90d/r8y7GpNvIhn1mIsAMHarV8pQuLytrk64Vzb6S3xfl0yKDJYj7onS7swAnM kWJzfYcS3UXHy5pfNB1TipBJO5WzVIAnrtcgY/Ud08lKUQ/l+nezMXG4vEk/EzpmzusE JRMA== X-Gm-Message-State: ALoCoQnyeLZrPIwdz9pKKmI4uWrNimVWEGiMn5sW1f4hsWulyHR5VGjoFlVf9aoQnjdcK2jhD2KQ X-Received: by 10.152.10.2 with SMTP id e2mr59651lab.61.1382051484486; Thu, 17 Oct 2013 16:11:24 -0700 (PDT) Original-Received: by 10.152.228.135 with HTTP; Thu, 17 Oct 2013 16:11:24 -0700 (PDT) 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:79350 Archived-At: --001a1132f2d2cb5aba04e8f7ef9b Content-Type: text/plain; charset=ISO-8859-1 I've just been drawn back to look at this bug. Another way of looking at it: currently, "Emacs 24" is the default application for many text filetypes under GNOME. For many users, this is annoying, as it starts a new instance of Emacs each time. I have configured "emacsclient" as a text editor in my system (this does not seem to be available by default), but I then still have to configure it as the default editor for each file type in Nautilus. One option would be to offer "emacsclient" as the default, but that's also confusing, for users who don't know about emacsclient. 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. -- http://rrt.sc3d.org --001a1132f2d2cb5aba04e8f7ef9b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've just been drawn back to = look at this bug. Another way of looking at it: currently, "Emacs 24&q= uot; is the default application for many text filetypes under GNOME. For ma= ny users, this is annoying, as it starts a new instance of Emacs each time.=

I have configured "emacsclient" as a text editor in my = system (this does not seem to be available by default), but I then still ha= ve to configure it as the default editor for each file type in Nautilus.
One option would be to offer "emacsclient" as the defau= lt, but that's also confusing, for users who don't know about emacs= client.

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 pro= grams, it's used for the same thing).

What would remain is to add options --[no]client to force "e= macs" to [not] behave as "emacsclient", and decide a sensibl= e default policy. A sensible place to start seems to be to behave like emac= sclient when called with --alternate-editor=3D"", that is, try to= connect to a server, and if one can't be found, start normally (emacsc= lient 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 any= thing major?) and clikely to be accepted. If so, I might be up for hacking = on it.
--001a1132f2d2cb5aba04e8f7ef9b--