From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: emacs daemon on win32? Date: Tue, 28 Oct 2008 15:31:23 -0400 Message-ID: <873aigzfck.fsf@cyd.mit.edu> References: <49073EDB.7020703@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225222426 23350 80.91.229.12 (28 Oct 2008 19:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 19:33:46 +0000 (UTC) Cc: Juanma Barranquero , david@harpegolden.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 20:34:48 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 1KuuJU-0000wR-Sj for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 20:33:13 +0100 Original-Received: from localhost ([127.0.0.1]:55765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuuIO-0008IL-JX for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 15:32:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuuHm-0007i4-2z for emacs-devel@gnu.org; Tue, 28 Oct 2008 15:31:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuuHj-0007h4-SN for emacs-devel@gnu.org; Tue, 28 Oct 2008 15:31:24 -0400 Original-Received: from [199.232.76.173] (port=49096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuuHj-0007gw-If for emacs-devel@gnu.org; Tue, 28 Oct 2008 15:31:23 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:42400) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuuHh-0004mz-IS; Tue, 28 Oct 2008 15:31:21 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id AFD4557E0B2; Tue, 28 Oct 2008 15:31:23 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 28 Oct 2008 20:19:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:105098 Archived-At: Eli Zaretskii writes: >> I think the main problem is defining a flexible interface at the >> C/elisp level to abstract the differences between OS/X, GNU/Linux and >> Windows. > > Do we need anything beyond 2 APIs: one to minimize to systray, the > other to come back, and perhaps a way to pop up a menu when the icon > is clicked? The easiest approach is to have a separate "emacs-systray" application that (i) starts Emacs in daemon mode and (ii) adds a systray icon which runs emacsclient when clicked. "Minimizing to systray" is just the same as closing the frame, which is already handled properly in daemon mode. (Same approach works for a Gnome or KDE applet.)