From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Herb Martin" Newsgroups: gmane.emacs.help Subject: My gnuServer notes on Win2000 Date: Sun, 10 Aug 2003 12:36:45 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060519561 21189 80.91.224.253 (10 Aug 2003 12:46:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Aug 2003 12:46:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 10 14:46:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19lpaC-0000TR-00 for ; Sun, 10 Aug 2003 14:46:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19lpZo-0003TV-D9 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2003 08:45:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!news-west.rr.com!news.rr.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-NNTP-Posting-Host: 66.68.35.132 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.austin.rr.com 1060519005 66.68.35.132 (Sun, 10 Aug 2003 07:36:45 CDT) Original-NNTP-Posting-Date: Sun, 10 Aug 2003 07:36:45 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:115777 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11696 I have trouble getting gnuServ gnuClient (gnuClientW) to work (I'm new to Emacs) but this is what I found. The 'docs' don't explain much... Starting gnuServ manually is worthless but once you get it working there is no need to putz around with ports and such unless you want to change them or you want to run it on a remote machine. I put all the gnu* executables on my path but that didn't help, so I shoved them into the emacs\bin directory and found/wrote some code to make it work without having to add THAT to the path.... I needed this snippet of code (for .emacs file): From> Sams Teach Yourself Emacs in 24 Hours URL> http://home.no.net/skund/emacs/emacs017.htm Search the page for> Using gnuClient ;; start gnuserv on Windows (if (or (eq window-system 'w32) (eq window-system 'win32)) (progn (require 'gnuserv) (setq server-done-function 'bury-buffer gnuserv-frame (car (frame-list))) (gnuserv-start) ;;; open buffer in existing frame instead of creating new one... (setq gnuserv-frame (selected-frame)) (message "gnuserv started."))) ;; end gnuserv start on Windows ;;This was needed from the README.nt included in the distr: (setenv "GNUSERV_SHOW_EMACS" "1"); force gnuserv to show emacs ;;But it hasn't worked yet. Then I needed a batch file to open many files at once, e.g., e *.txt e file.txt file.c file.el c:\bat\e.cmd @REM here's the e.cmd file (on my path) - 1 line & echoes each file @for %%a in (%*) do @echo %%a & @D:\Programs\emacs\bin\gnuclientw %%a @REM change D:\... path for your machine Then you can use "ftype" to set your txtfile (or whatever) to e.cmd ftype txtfile=c:\bat\e.cmd %1 (to check the current setting you might want to just use: ftype txtile ...first.) Or check all the txtfile types: assoc | findstr txtfile (sorry about the findstr, I use grep/fgrep but findstr is built-in)