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: Fri, 19 Feb 2016 04:09:02 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11457d40986128052c1bd5de X-Trace: ger.gmane.org 1455872965 17603 80.91.229.3 (19 Feb 2016 09:09:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 09:09:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 19 10:09:11 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 1aWh3l-0007uU-3x for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 10:09:10 +0100 Original-Received: from localhost ([::1]:50130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWh3k-0002BK-63 for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 04:09:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWh3g-0002An-EJ for emacs-devel@gnu.org; Fri, 19 Feb 2016 04:09:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWh3f-0001Y8-FS for emacs-devel@gnu.org; Fri, 19 Feb 2016 04:09:04 -0500 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:34505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWh3f-0001Xy-7A for emacs-devel@gnu.org; Fri, 19 Feb 2016 04:09:03 -0500 Original-Received: by mail-vk0-x232.google.com with SMTP id e185so68564652vkb.1 for ; Fri, 19 Feb 2016 01:09:03 -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=W4uWAq8Wedy4Fb065RfU5eSV3dqJlit/nLs95BFWx+A=; b=DLfRVRWnKhJ/kI8eu18VWeyUa3EaZu80ljlbzESC0/v+Jx3R8GMu7G4Zmb7vnEJ5Xv 2hP4EBS1k8I3SBRrBcj1VHhr80d33gJDkV0E3y7aE355R/W4Rst8OwuKzHdpG4Xe/NZh PJY1NbNvqlhGctE8w8N6io/rFlaGXK6St5KLu+bRusJe9A+SK2ls3SoJqwKn6onARZS1 27/ZlMD1X1FIT0di6p5vE808JEtTUWFI/5rf3GCrmxwNSwf7jWMI3HrkMN2rkZOXG7Ga YEG9GfrfzoOyhI6GE2y/QcXJvCTCWGFe6gMhEMmAdZWq18ua3kKTinztlTDTYnOpRJRL JxiQ== 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=W4uWAq8Wedy4Fb065RfU5eSV3dqJlit/nLs95BFWx+A=; b=PQqclekxrpyFEbJRVCc5r8eL+a9Jkg0kB5HSMkAiJAmpXEDIDvkriXbQZz9JIVONW7 8MLNmA9sfy2uDDiDjD0C5Pp5YVxuN/qnAFUkEzEv3EkODdUfNPXVFtewFGt62Nj8EGH/ wgNYY4/1aVTIT09JvYahRWhhRX/fc77yvjKAj6+iNZwLjNrqpXvTD3TjuoxIMfOfmFgj ZO81Lg/k3jAOeNpd/wYh0K0zcSI3WVhAeZOcW/D9n09oX7EBpD9J6WYMKg+7kUb6fD9C dkYcYaDsAmvhIxV1262xEKXrddLztKhuDBXmhNNZpzSqMpWtzry1/IaaCtFVag41FTZU JGsw== X-Gm-Message-State: AG10YORUILokpI1/HD/fT30X7JUcnAnSTqFWexAEuaaeE1aK9fipmwkIaS8ySKtFKgVTjqkkxqmpqEhLnHEHKw== X-Received: by 10.31.131.199 with SMTP id f190mr10088084vkd.90.1455872942823; Fri, 19 Feb 2016 01:09:02 -0800 (PST) Original-Received: from 895490483151 named unknown by gmailapi.google.com with HTTPREST; Fri, 19 Feb 2016 04:09:02 -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::232 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:200190 Archived-At: --001a11457d40986128052c1bd5de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yes. i was wrong. like you said, runing emacs from the terminal, initiates every time. launching the app initiates once and connects every next time. so my real suggestion, is not to quit the app when i close the last window. would that make it so that when i click on the app again, it would open without initializing again? if yes, then thats my suggested change. if it would still initialize, then i would like that fixed. i might have to find how to test that myself, but is the initialization happening when the app launches, or when the first window is opened? by initialization i mean eval the init file. if it happens on app launch, then it should br easy to just keep the app running so when i click the app, even if its the first window (after i had the previous windows closed) would open quickly. but if the initialization happens on first window opening, then it might be a bit harder. thoughts? --=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 > > --001a11457d40986128052c1bd5de Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yes. i was wrong.
like you said, runing emacs from the terminal, initiates every= time. launching the app initiates once and connects every next time.

so my r= eal suggestion, is not to quit the app when i close the last window. would = that make it so that when i click on the app again, it would open without i= nitializing again? if yes, then thats my suggested change. if it would stil= l initialize, then i would like that fixed.

i might have to find how to test = that myself, but is the initialization happening when the app launches, or = when the first window is opened?
by initi= alization i mean eval the init file. if it happens on app launch, then it s= hould br easy to just keep the app running so when i click the app, even if= its the first window (after i had the previous windows closed) would open = quickly. but if the initialization happens on first window opening, then it= might be a bit harder.

=
thoughts?
<= br>
--=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

--001a11457d40986128052c1bd5de--