unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Herb Martin" <news@LearnQuick.com>
Subject: My gnuServer notes on Win2000
Date: Sun, 10 Aug 2003 12:36:45 GMT	[thread overview]
Message-ID: <x%qZa.154977$XV.8229192@twister.austin.rr.com> (raw)

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. <frown>

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)

             reply	other threads:[~2003-08-10 12:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-10 12:36 Herb Martin [this message]
2003-08-10 13:05 ` My gnuServer notes on Win2000 Matthias Rempe
2003-08-10 13:53   ` Herb Martin
2003-08-12 21:08 ` kgold
2003-08-13  1:04   ` Herb Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='x%qZa.154977$XV.8229192@twister.austin.rr.com' \
    --to=news@learnquick.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).