From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclientw on w64
Date: Sun, 30 Sep 2012 13:36:56 -0500 [thread overview]
Message-ID: <k4a3gd02nbv@news1.newsguy.com> (raw)
In-Reply-To: <mailman.9993.1348988293.855.help-gnu-emacs@gnu.org>
Zaretskii <eliz@gnu.org> scripsit:
>> From: "B. T. Raven" <btraven@nihilo.net>
>> Date: Sat, 29 Sep 2012 17:21:38 -0500
>>
>> I used to diddle with registry to get emacsclientw to work on w2000 but
>> am afraid to do that on w64. I found this .bat file on web along with
>> instructions to convert it to runemacsclientw.exe
>>
>> @echo off
>> :: Emacs binaries...
>> set binpath=c:\Program Files\emacs\bin ;; my binpath is directly in c:\
>> :: emacs\bin If no arg is given set filename to c:\ ;; why directory ::
>> instead of file?
>>
>> if "%~1"=="" (
>> set filename=c:\
>> ) else (
>> set filename=%~1
>> )
>> :: Run Emacsclient
>> "%binpath%\emacsclientw.exe" --no-wait
>> --alternate-editor="%binpath%\runemacs.exe" "%filename%"
>
> Why do you need all this tinkering? Just use the "normal" Windows way
> of associating files with a program. That is:
>
> . right-click on a file in Explorer and select "Open"
> . click "Select the program from a list"
> . if emacsclientw.exe is in the list, select it
> . if emacsclientw.exe is not already in the list, click Browse and
> navigate to emacsclientw.exe
> . check the "Always use the selected program" checkbox
> . click OK
>
> Repeat the above for every file type you want to open with Emacs.
> That's it.
>
Thanks, Eli but I think that there might be more to it than that at
least on my system. After doing that I see:
No socket or alternate editor. Please use:
EMACS_SERVER_FILE
and
ALTERNATE_EDITOR-FILE
(either user or system environment variables)
I think I want ALTERNATE_EDITOR=c:\emacs\bin\runemacs --debug-init
but I'm not sure. Can runemacs.exe take switches like emacs.exe? What
EMACS_SERVER_FILE should be set to I don't know.
Is my problem that I didn't install Emacs (still on ver. 23.3) in
Windows Programs? Could there be PATH problems related to that? I do
have (server-start) at the end of my .emacs
next prev parent reply other threads:[~2012-09-30 18:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 22:21 emacsclientw on w64 B. T. Raven
2012-09-30 6:58 ` Eli Zaretskii
[not found] ` <mailman.9993.1348988293.855.help-gnu-emacs@gnu.org>
2012-09-30 18:36 ` B. T. Raven [this message]
2012-09-30 22:02 ` Eli Zaretskii
2012-10-01 0:54 ` Jason Rumney
2012-10-01 3:28 ` B. T. Raven
2012-10-01 7:22 ` Eli Zaretskii
[not found] ` <mailman.10052.1349076148.855.help-gnu-emacs@gnu.org>
2012-10-01 15:34 ` B. T. Raven
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=k4a3gd02nbv@news1.newsguy.com \
--to=btraven@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/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).