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: Re: My gnuServer notes on Win2000 Date: Sun, 10 Aug 2003 13:53:30 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060524153 28755 80.91.224.253 (10 Aug 2003 14:02:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Aug 2003 14:02:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 10 16:02:31 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 19lqmF-0001z1-00 for ; Sun, 10 Aug 2003 16:02:31 +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 19lqlV-00024h-1O for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2003 10:01:45 -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: 40 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 1060523610 66.68.35.132 (Sun, 10 Aug 2003 08:53:30 CDT) Original-NNTP-Posting-Date: Sun, 10 Aug 2003 08:53:30 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:115780 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:11698 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11698 This fellow has a good article on it -- sort of a much better version of my previous post (neat, formatted, more tips, more code, etc.): > David Vanderschel > http://www.math.auc.dk/~dethlef/Tips/gnuserv.txt The trick on focus is "gnuClientW -f" the -f bring the window to the front with focus. I added this BEFORE my "for...in...do..." loop so Emacs come front, the files load as I watch -- and if there are no files in the pattern, it just comes first. (He put %1 in there statically and so when there is NO %1, it makes a %1 buffer. The for loop covers a lot of little 'gotchas' in windows.) @D:\Programs\emacs\bin\gnuclientw -f @for %%a in (%*) do @echo %%a & @D:\Programs\emacs\bin\gnuclientw %%a I add very little to the path -- if there is ONE (or two) files in a directory, the above batch pattern works great -- put THAT in your "bat" or "util" directory, with either the same name as the program or a "short nickname." David V. like Winkey from Copernic.Com and so do I -- WinKey-x is now the quickkey for bringing Emacs front, or starting it if necessary (it's got the full path to gnuclient -f I try to avoid the built-in WinKeys: Windows Key + D: Show Desktop* Windows Key + E: Windows Explorer Windows Key + F: Find Files or Folders... Windows Key + M: Minimize All Windows Windows Key + Shift+M: Undo Minimize All Windows Key + R: Run... Windows Key + Tab: Select Task Windows Key + Break: System Properties Windows Key + F1: Windows Help