From owner-ntemacs-users@cs.washington.edu Wed Oct 28 16:44:55 1998 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Wed" "28" "October" "1998" "18:27:36" "-0500" "Howard Melman" "howard@silverstream.com" nil "61" "Re: gnuserv" "^From:" nil nil "10" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with SMTP id PAA29404 for ; Wed, 28 Oct 1998 15:52:03 -0800 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id PAA40052 for ; Wed, 28 Oct 1998 15:52:02 -0800 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id PAA15362 for ntemacs-users-outgoing; Wed, 28 Oct 1998 15:27:48 -0800 (PST) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id PAA15356 for ; Wed, 28 Oct 1998 15:27:46 -0800 (PST) Received: from ptown.silverstream.com (silverstream.com [204.164.96.2] (may be forged)) by june.cs.washington.edu (8.8.7+CS/7.2ju) with ESMTP id PAA27182 for ; Wed, 28 Oct 1998 15:27:45 -0800 Received: from ABSOLUT.silverstream.com ([204.164.96.85]) by ptown.silverstream.com (Netscape Mail Server v2.02) with SMTP id AAA582; Wed, 28 Oct 1998 18:27:18 -0500 X-Mailer: emacs 19.34.6 (via feedmail 8 I); VM 6.61 under Emacs 19.34.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <13879.43112.210000.169501@ABSOLUT> In-Reply-To: <9810282107.AA41838@alpha.watson.ibm.com> References: <9810282107.AA41838@alpha.watson.ibm.com> Precedence: bulk X-FAQ: http://www.cs.washington.edu/homes/voelker/ntemacs.html From: Howard Melman Sender: owner-ntemacs-users@cs.washington.edu To: Ken Goldman CC: NTEmacs Users List Subject: Re: gnuserv Date: Wed, 28 Oct 1998 18:27:36 -0500 (EST) On Wed Oct 28, 1998, Ken Goldman wrote: > I successfully downloaded the executables, and the instructions were > fine on where to put them. I then associated an extension with > gnuclientw.exe. But then the instructions seem to stop. What's next? > > 1 - Presumably I have to start gnuserv.exe. What's the procedure for > that? AUTOEXEC.BAT? In your .emacs put: (gnuserv-start) Then at startup time start emacs by calling emacs or runemacs. This will run the .emacs and emacs will start gnuserv to listen for gnuclient requests. Note that if you call gnuclientw and emacs is not running, it will start emacs up. So you can invoke emacs anyway you want. > 2 - When I click on the files, emacs comes up, but it seems to start > new versions of gnuclientw.exe each time. That's not right, is it? > Presumably because of #1? Yes it's right. Each gnuclientw is a small executable, so it's not a big deal. Also some apps wait for the editor process they spawn to terminate as a way to know that the user has finished editing. So gnuclientw behaves this way. > 3 - Once I get it working, will it work from the command line also? > How do I do that. Type gnuclientw instead of runemacs? Yes. Just give it the name of a file to edit. > 4 - A windows question. I have many files associated with emacs. Is > there a way to change the association from runemacs to gnuclientw in > bulk? If not, is there at least a way to get a listing of extensions > and their association? Play in the registry searching for Emacs. Cautions about editing the registry apply. > 5 - There are also gnudoit.exe and gnuclient.exe. What are they for? gnuclient vs gnuclientw, w opens a new frame. Most people prefer it. gnudoit is used to send lisp commands to an already running emacs. I use it for mailto URLs. I have the following mailto.bat that I associate with mailto URLs: gnudoit -q (vm-mail (substring \"%1\" 7)) This will invoke the VM mailer filling out the To: field for an address as found in the mailto URL. The association is just mailto.bat, Windows passes the URL to the program automatically. The (substring \"%1\" 7) call strips off the "mailto:" fromthe beginning of the URL. Howard From owner-ntemacs-users@cs.washington.edu Thu Oct 29 06:49:06 1998 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Thu" "29" "October" "1998" "09:24:43" "-0500" "Ken Goldman" "kgold@watson.ibm.com" nil "34" "Re: gnuserv" "^From:" nil nil "10" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with SMTP id GAA16949 for ; Thu, 29 Oct 1998 06:49:06 -0800 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id GAA40787 for ; Thu, 29 Oct 1998 06:49:05 -0800 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id GAA23904 for ntemacs-users-outgoing; Thu, 29 Oct 1998 06:24:49 -0800 (PST) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id GAA23900 for ; Thu, 29 Oct 1998 06:24:46 -0800 (PST) Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with ESMTP id GAA15788 for ; Thu, 29 Oct 1998 06:24:45 -0800 Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw3.watson.ibm.com (8.8.7/07-11-97) with ESMTP id JAA07324 for ; Thu, 29 Oct 1998 09:24:43 -0500 Received: from alpha.watson.ibm.com (alpha.watson.ibm.com [9.2.22.43]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with SMTP id JAA15432 for ; Thu, 29 Oct 1998 09:24:43 -0500 Received: by alpha.watson.ibm.com (AIX 4.1/UCB 5.64/6/25/96) id AA37812; Thu, 29 Oct 1998 09:24:43 -0500 Message-Id: <9810291424.AA37812@alpha.watson.ibm.com> Precedence: bulk X-FAQ: http://www.cs.washington.edu/homes/voelker/ntemacs.html From: Ken Goldman Sender: owner-ntemacs-users@cs.washington.edu To: ntemacs-users@cs.washington.edu Subject: Re: gnuserv Date: Thu, 29 Oct 1998 09:24:43 -0500 ------- Start of forwarded message ------- > From: tjump@cais.com (Theodore Jump) > To: Ken Goldman > Date: Thu, 29 Oct 1998 00:38:26 GMT > Put these two lines in your .emacs: > > (if (load "gnuserv" 'noerror 'nomessage) > (gnuserv-start)) > > If you want to open a document in an emacs window, directed from the > command line, you can do this manually: > > c:\emacs\bin\gnuclientw -F docfile I'm almost there. I can use gnuclientw -F to open a document. Next questions 1 - I can open several frames and it is indeed faster. But when I close one frame with C-X C-C, all frames close. Not good! What am I doing wrong? 2 - The first time, I also get a *scratch* frame. Is that normal? Note: For whoever is the keeper of the web page for gnuserv, Theodore's .emacs code should be added. You might also note that the code should be __after__ the command which appends your private .el directory with gnuserv.el to load-path. Yeah, I know, it's obvious. :-) -- Ken Goldman kgold@watson.ibm.com 914-784-7646 From owner-ntemacs-users@cs.washington.edu Thu Oct 29 09:48:08 1998 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Thu" "29" "October" "1998" "17:05:10" "+0000" "andy ling" "andy.ling@quantel.com" nil "36" "Re: gnuserv" "^From:" nil nil "10" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with SMTP id JAA02691 for ; Thu, 29 Oct 1998 09:28:30 -0800 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id JAA35531 for ; Thu, 29 Oct 1998 09:28:26 -0800 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id JAA26707 for ntemacs-users-outgoing; Thu, 29 Oct 1998 09:05:14 -0800 (PST) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id JAA26703 for ; Thu, 29 Oct 1998 09:05:12 -0800 (PST) Received: from tvweb1.hiway.co.uk (tvweb1.hiway.co.uk [195.12.1.131]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with ESMTP id JAA28932 for ; Thu, 29 Oct 1998 09:05:10 -0800 Received: from mailsrv.quantel.com (bin@quantel-gw.hiway.co.uk [195.12.5.195]) by tvweb1.hiway.co.uk (8.8.8/8.8.7) with ESMTP id RAA11449; Thu, 29 Oct 1998 17:05:05 GMT Received: SMTP by Quantel-Mailhub (8.8.3/3.1). id RAA18377 Message-ID: <802566AC.005CD6CF.00@buffer1.HQ.quantel> Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Organization: Quantel Ltd. Precedence: bulk X-FAQ: http://www.cs.washington.edu/homes/voelker/ntemacs.html From: andy.ling@quantel.com Sender: owner-ntemacs-users@cs.washington.edu To: kgold@watson.ibm.com cc: ntemacs-users@cs.washington.edu Subject: Re: gnuserv Date: Thu, 29 Oct 1998 17:05:10 +0000 > 1 - I can open several frames and it is indeed faster. But when > I close one frame with C-X C-C, all frames close. Not good! What > am I doing wrong? C-x C-c is the command to exit emacs completely which is why you loose all the frames. You may like to add one of the "Are you sure" solutions to this that were posted a few weeks ago. There are many ways of deleting buffers and frames, but the two I use most are C-x k will kill a buffer, but leaves the frame C-x 5 0 will delete a frame, but leaves the buffer > 2 - The first time, I also get a *scratch* frame. Is that > normal? Yes. This buffer is always there so that if all buffers are deleted there is still one left. If you start emacs without any files loaded you will start in the *scratch* buffer. Hope this helps ---------------------------------------------------------------- Andy Ling email: Andy.Ling@quantel.com Quantel Ltd. Tel: +44 (0)1635 48222 Pear Tree Lane, Newbury Berks UK. RG14 2LT ---------------------------------------------------------------- From owner-ntemacs-users@cs.washington.edu Thu Oct 29 12:00:20 1998 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Thu" "29" "October" "1998" "09:11:30" "-0700" "Charles Curley" "ccurley@trib.com" nil "49" "Re: gnuserv" "^From:" nil nil "10" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with SMTP id IAA27631 for ; Thu, 29 Oct 1998 08:54:21 -0800 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id IAA35494 for ; Thu, 29 Oct 1998 08:54:20 -0800 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id IAA25791 for ntemacs-users-outgoing; Thu, 29 Oct 1998 08:26:25 -0800 (PST) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id IAA25777 for ; Thu, 29 Oct 1998 08:26:16 -0800 (PST) Received: from home4.trib.com (home4.trib.com [205.138.108.24]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with ESMTP id IAA24656 for ; Thu, 29 Oct 1998 08:26:14 -0800 Received: from charlesc (wora1p10.trib.com [206.100.179.10]) by home4.trib.com (8.8.5/8.7.3) with SMTP id JAA28493; Thu, 29 Oct 1998 09:26:04 -0700 Message-Id: <3.0.2.32.19981029091130.01dbcec0@pop1.trib.com> X-Sender: ccurley@pop1.trib.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.2 (32) In-Reply-To: <13879.43112.210000.169501@ABSOLUT> References: <9810282107.AA41838@alpha.watson.ibm.com> <9810282107.AA41838@alpha.watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk X-FAQ: http://www.cs.washington.edu/homes/voelker/ntemacs.html From: Charles Curley Sender: owner-ntemacs-users@cs.washington.edu To: Howard Melman Cc: Ken Goldman , NTEmacs Users List Subject: Re: gnuserv Date: Thu, 29 Oct 1998 09:11:30 -0700 At 06:27 PM 10/28/98 -0500, Howard Melman wrote: >On Wed Oct 28, 1998, Ken Goldman wrote: > >> I successfully downloaded the executables, and the instructions were >> fine on where to put them. I then associated an extension with >> gnuclientw.exe. But then the instructions seem to stop. What's next? >> >> 5 - There are also gnudoit.exe and gnuclient.exe. What are they for? > >gnuclient vs gnuclientw, w opens a new frame. Most people >prefer it. Gnuclient and gnuclientw are identical except that *w does not wait for Emacs to finish with the buffer. To indicate to gnuclient that you are done with a buffer, close it out with C-x #. To prevent the accumulation of new frames put the following in your .emacs: (setq gnuserv-frame (selected-frame)) > >gnudoit is used to send lisp commands to an already running >emacs. I use it for mailto URLs. I have the following >mailto.bat that I associate with mailto URLs: > > gnudoit -q (vm-mail (substring \"%1\" 7)) > >This will invoke the VM mailer filling out the To: field for >an address as found in the mailto URL. The association is >just mailto.bat, Windows passes the URL to the program >automatically. The (substring \"%1\" 7) call strips off the >"mailto:" fromthe beginning of the URL. Nice! -- C^2 I have sworn upon the altar of God eternal hostility against every form of tyranny over the mind of man. -- Thomas Jefferson, letter to Benjamin Rush, 1800 A.D. Thomas Jefferson, Patron Saint of the Internet: http://w3.trib.com/~ccurley/Jefferson.html