From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Rustom Mody" Newsgroups: gmane.emacs.help Subject: Re: emacs as a service Date: Fri, 29 Aug 2008 17:11:53 +0530 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2783_31105702.1220010113880" X-Trace: ger.gmane.org 1220010165 1855 80.91.229.12 (29 Aug 2008 11:42:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 11:42:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 29 13:43:39 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZ2O7-0004wc-Pj for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Aug 2008 13:43:36 +0200 Original-Received: from localhost ([127.0.0.1]:49528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ2N8-0000ZX-LM for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Aug 2008 07:42:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ2MZ-0000Wf-Dv for help-gnu-emacs@gnu.org; Fri, 29 Aug 2008 07:41:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ2MX-0000Tz-Ao for help-gnu-emacs@gnu.org; Fri, 29 Aug 2008 07:41:58 -0400 Original-Received: from [199.232.76.173] (port=53048 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ2MX-0000Tp-2h for help-gnu-emacs@gnu.org; Fri, 29 Aug 2008 07:41:57 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.173]:25672) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ2MW-0001wc-7e for help-gnu-emacs@gnu.org; Fri, 29 Aug 2008 07:41:56 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so1015334wfc.24 for ; Fri, 29 Aug 2008 04:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=9s9Q2vAkMhcoXFHnWGPrLHHQLOI1g5SozFaswRWvP5Y=; b=dx1cf7ZtGwIaR9rkYmyf/b/VKCOndIxKZ8pGcVoRALBXq9AGx0BrhMLotv4ibOVORY rcpQfxfU87rde3X7loegkEyvAZ9NKHFXdIlvfwZF5MEZf2ylIGWgRfgp173EEQAwPxU6 CC5Jq/6tyPIJNwVI1ijaAavSWtuKTm3EPYqb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=srtXAyok4aDPD6vgEe1rZFPfPlpnfIXWXvzJsz+ylsTW5Bc8FrjsQYN0ZSL1p/ylSM D4KqWIMyB1ZFPHAx6alkJxKoAsdDPNeOay6pBCejOhOtfB414nQqq6Rb1wLtWImx+50u G2ji130VqiTotAsRaaoYa7e6m0dFhuJOZoQ0E= Original-Received: by 10.142.140.15 with SMTP id n15mr931747wfd.84.1220010113891; Fri, 29 Aug 2008 04:41:53 -0700 (PDT) Original-Received: by 10.142.156.11 with HTTP; Fri, 29 Aug 2008 04:41:53 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57089 ------=_Part_2783_31105702.1220010113880 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Aug 29, 2008 at 3:16 PM, Nikolaj Schumacher wrote: > "Rustom Mody" wrote: > > > -- starting emacs as a service (using Sc perhaps??) > > -- emacs should not (by default) show in a tab on the desktop > > -- C-x C-c should close a frame not emacs > > -- it should be possible for emacs to be running without there being any > > frame > > I think Emacs 23 will work for you: > > *** Emacs now supports using both X displays and ttys in one session. > With an Emacs server active (M-x server-start), `emacsclient -t' > creates a tty frame connected to the running emacs server. You can > use any number of different ttys. `emacsclient -c' creates a new X11 > frame on the current $DISPLAY (or a tty frame if $DISPLAY is not set). > > regards, > Nikolaj Schumacher > X11?? I am on Windows! Torsten Mueller wrote: > What is a "tab on the desktop"? Sorry I should have said 'taskbar' (Im not very windows-savvy :-) ) -- C-x C-c should close a frame not emacs > A Windows service normally does not react on keys at all. It does not need to. The server would be invoked by the client. All that is normally done by emacs would be done by the emacs (running as) server. > I think what you mean is something like the emacs client/server concept. Yeah I know. I started by saying that the emacs side is easy: (server-start) which of course makes sense only if it is connected to by emacsclient(s). The whole question was about integrating this -- emacs client-server model -- into the windows service framework (which I know nothing about as is perhaps evident). If as you say that it requires deep changes to the structure of emacs sources I guess I just drop the idea! ------=_Part_2783_31105702.1220010113880 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On Fri, Aug 29, 2008 at 3:16 PM, Nikolaj Schumacher <me@nschum.de> wrote:
"Rustom Mody" <rustompmody@gmail.com> wrote:

> -- starting emacs as a service (using Sc perhaps??)
> -- emacs should not (by default) show in a tab on the desktop
> -- C-x C-c should close a frame not emacs
> -- it should be possible for emacs to be running without there being any
> frame

I think Emacs 23 will work for you:

*** Emacs now supports using both X displays and ttys in one session.
With an Emacs server active (M-x server-start), `emacsclient -t'
creates a tty frame connected to the running emacs server.  You can
use any number of different ttys.  `emacsclient -c' creates a new X11
frame on the current $DISPLAY (or a tty frame if $DISPLAY is not set).

regards,
Nikolaj Schumacher

 
X11?? I am on Windows!
 
Torsten Mueller wrote: 
What is a "tab on the desktop"?
Sorry I should have said 'taskbar' (Im not very windows-savvy :-) )

 -- C-x C-c should close a frame not emacs
 
> A Windows service normally does not react on keys at all.
 
It does not need to.  The server would be invoked by the client.
All that is normally done by emacs would be done by the emacs (running as) server.
 
I think what you mean is something like the emacs client/server concept.
 
Yeah I know. I started by saying that the emacs side is easy: (server-start) which of course makes sense only if it is connected to by emacsclient(s).
 
The whole question was about integrating this -- emacs client-server model -- into the windows service framework (which I know nothing about as is perhaps evident).
If as you say that it requires deep changes to the structure of emacs sources I guess I just drop the idea!
------=_Part_2783_31105702.1220010113880--