From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pavlos Vinieratos Newsgroups: gmane.emacs.devel Subject: Re: Emacs.app for OSX suggestions Date: Thu, 18 Feb 2016 16:34:34 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11425f3002788d052c122236 X-Trace: ger.gmane.org 1455831299 10539 80.91.229.3 (18 Feb 2016 21:34:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 21:34:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 18 22:34:59 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aWWDz-0000rO-32 for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 22:34:59 +0100 Original-Received: from localhost ([::1]:45816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWDy-0001lr-In for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 16:34:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWDc-0001dn-Rx for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:34:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWWDb-0001RB-UW for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:34:36 -0500 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:36305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWDb-0001R4-Nq for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:34:35 -0500 Original-Received: by mail-vk0-x22b.google.com with SMTP id c3so57279951vkb.3 for ; Thu, 18 Feb 2016 13:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :content-type; bh=ryvYaGLURiuSX0xAuySRBD/hERg3pa/qyY5SvFYldps=; b=X7ru3C1lmVcysESO0t3Po4jHSuV516zmg0uIfHjcoES17Z1UpsDWqPR8oqTkiMVQCR OkjHaK7prPszsJMvFc6+/Z+Ino5QxH0djp5P7Zc2xQTj/1O2+5Pig9drLAViJ6HGwX/1 R0G5SCAEhrdmh8VFYB/oVq4ylkl8m3roX7XuBFj3da49czLVWUw+D6hrbJa2zeGB4nKk q1x6JODI2ljBwZfo8WOn0ZbMuQ5IlTUlTM3v35UgqljTg0cGdHlTpr72KIFJOohrFIGt UUvz/Fp/lOZ2WiiuQ/TnvkwGQAcUOg+gtiFwaKNiqoewsw2KGXvczs+GJy0Re6o3NHKk hU6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:content-type; bh=ryvYaGLURiuSX0xAuySRBD/hERg3pa/qyY5SvFYldps=; b=l2a7Kxjz6vbEIpdxtvJl9dniOo11g7123ObVtGntkXeT50UKA8VoIyTxNV10E6omwF v2aPj9HVeCduM899Fm8adXYx+qCweag4n3Se4BeeiUsbm8cU+rjWh3jz1lHFf2sdMMk6 Hbr2hJ9PrIHHpUVScJQAwWdsVoE6lpIQTagg/OMc2FOl81W2TB+edZOl9gpbVapcsSKU 1Jg0jKU+qZHvgVhXXrtkFpvm5/8DilVztdpfcVuvau/vCLXZ/NeLJniyPi/lXxUkchb4 cOd9o20K/JAo+J3MX91XGT+6lGZZ5XpknQNJZ31fZE5AVVeWUK7uSG4zMAYSzbqRWg4r IJcg== X-Gm-Message-State: AG10YOQYFHYIhJffwKfwqrFMW0HeecnPohXo9BNQoD0sra4cD+Q6p+nBMeJ8JF/qK2q2srKd6bHRwIRFy9aOZQ== X-Received: by 10.31.140.130 with SMTP id o124mr261146vkd.145.1455831275172; Thu, 18 Feb 2016 13:34:35 -0800 (PST) Original-Received: from 895490483151 named unknown by gmailapi.google.com with HTTPREST; Thu, 18 Feb 2016 16:34:34 -0500 In-Reply-To: X-Mailer: Airmail iOS (89) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200160 Archived-At: --001a11425f3002788d052c122236 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ok. so right now, the app just starts 'emacs'. so no mattet what, it makes a new instance and always evals the init file, disregarding any existing daemon or already running instance. what im suggesting, is that it starts 'emacsclient', possibly with '-a ""', so if there is an already running daemon, it connects to that instance, so the initialization doesnt need to happen again. does it make sense? --=20 Pavlos Vinieratos On 18 February 2016 at 10:54:20, pavlos vinieratos (pvinis@gmail.com) wrote= : > Hello. The way Emacs.app works right now, it that it always starts a new > session of emacs, so its always slow to open if you have more than an emp= ty > init file, and it doesn=E2=80=99t work with the daemon. > > I would suggest to change the behaviour of that, and make it so that > Emacs.app will start emacsclient, so if a daemon is running, it would > connect to it. We could even make it so that it starts a new daemon like > `-a =E2=80=9C=E2=80=9D` would. > > I think that would benefit anyone using Emacs.app by doing what those sam= e > people would do now, which is to run a command from their shell, that doe= s > the above. Why not implement it in the .app, so that when dragging some > files onto Emacs.app, it starts quickly because of the daemon? > > > > -- > Pavlos Vinieratos > > --001a11425f3002788d052c122236 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ok. so right now, the app just st= arts 'emacs'. so no mattet what, it makes a new instance and always= evals the init file, disregarding any existing daemon or already running i= nstance.
what im suggesting, is that it starts = 'emacsclient', possibly with '-a ""', so if there= is an already running daemon, it connects to that instance, so the initial= ization doesnt need to happen again.
does= it make sense?

--= =C2=A0
Pavlos Vinieratos

On 18 February 2016 at= 10:54:20, pavlos vinieratos (pvinis@gm= ail.com) wrote:

Hello. The way Emacs.app works right now, it that it always starts a new session of emacs, so its always slow to open if you have more than an empty init file, and it doesn=E2=80=99t work with the daemon.

I would suggest to change the behaviour of that, and make it so that Emacs.app will start emacsclient, so if a daemon is running, it would connect to it. We could even make it so that it starts a new daemon like `-a =E2=80=9C=E2=80=9D` would.

I think that would benefit anyone using Emacs.app by doing what those same people would do now, which is to run a command from their shell, that does the above. Why not implement it in the .app, so that when dragging some files onto Emacs.app, it starts quickly because of the daemon?



--
Pavlos Vinieratos

--001a11425f3002788d052c122236--