From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: emacs daemon on win32? Date: Tue, 28 Oct 2008 16:33:31 +0000 Message-ID: <49073EDB.7020703@harpegolden.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225211711 14085 80.91.229.12 (28 Oct 2008 16:35:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 16:35:11 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 17:36:12 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KurY3-0004xL-22 for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 17:36:03 +0100 Original-Received: from localhost ([127.0.0.1]:48023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KurWw-0003l0-Rk for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 12:34:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KurVp-0002wZ-Ky for emacs-devel@gnu.org; Tue, 28 Oct 2008 12:33:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KurVo-0002wF-U6 for emacs-devel@gnu.org; Tue, 28 Oct 2008 12:33:45 -0400 Original-Received: from [199.232.76.173] (port=52923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KurVo-0002w8-LX for emacs-devel@gnu.org; Tue, 28 Oct 2008 12:33:44 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:59359) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KurVl-0006e0-Vf; Tue, 28 Oct 2008 12:33:42 -0400 Original-Received: from [87.198.54.44] (87-198-54-44.ptr.magnet.ie [87.198.54.44]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 4D8F082E4; Tue, 28 Oct 2008 16:33:38 +0000 (GMT) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105081 Archived-At: Juanma Barranquero wrote: > The cool thing would be to have a Windows Emacs server start as a > systray app. I'd love for Emacs not to use space in the taskbar, just > in the tray, until I bring it forward with emacsclient. David De La > Harpe Golden proposed as much back in August (though he was talking > about GNU/Linux, I think). > I was, or rather freedesktop.org compliant desktops in general that follow the relevant systray spec*, but only because that's the environment I personally know or care about, similar functionality on other platforms with GUI conventions for such things is presumably equally desirable. While I believe the spec is straightforward, I personally won't have time to look implementing it in the next few days anyway (tax filing deadline is Hallowe'en in Ireland, appropriately enough!), so below find my (trivial) design notes. * http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html I imagined an emacs icon in the systray, clicking left button just opening a new frame, right button bringing up a small menu with something like Open File... [1] New Frame New Frame on Display... [2] Start Emacs Server [/ Stop Emacs Server] [3] Settings... [4] Quit Emacs [5] I really don't think you'd want more than that on the menu, keep it simple. Note that the systray support could also be used for popup balloon message notifications too, in the manner described in *, e.g. new mail notifications for intra-emacs mail/news clients. (biff being long-dead for all practical purposes) [1] - Jumping straight to open file dialog, opening in new frame. (or of course new frame and show file list if you've turned the dire-on-gtk/gnome system GUI file dialog off) [2] Not sure about this one, might be considered advanced functionality. [3] I think for the present people will want to be able to restart the emacsclient server from the menu (since in my experience it's fairly easy to accidentally nuke the socket with another emacs or whatever, and then the only practical option is to restart it). I guess a tooltip should say something like "when the server is running, you can use emacsclient from the command line to edit files in this emacs session". The started/stopped state should probably be persistent across sessions (i.e. whether emacs starts the server when emacs is started upon login). [4] jumping straight to a new frame opened on the customize toplevel I guess. [5] This should probably give a modified close dialog asking if you want emacs restarted upon next login or not, most systray apps do AFAIK even if it's strictly kinda redundant (since one could just not quit it or restart it before logout if you wanted the session to save the fact it's there...)