all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclientw on w64
Date: Sun, 30 Sep 2012 22:28:03 -0500	[thread overview]
Message-ID: <k4b2k60jee@news1.newsguy.com> (raw)
In-Reply-To: <d0e97392-f2e5-45ae-bc20-310bf009f787@googlegroups.com>


> On Monday, 1 October 2012 02:37:10 UTC+8, B. T. Raven  wrote:
> 
>>
>> No socket or alternate editor. Please use:
>>
>> EMACS_SERVER_FILE
>> and
> 
> There is no "and" here. 

Right you are. I was just saying there were two env. variables.

> 
>> 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.
> 
> runemacs.exe passes its command-line to emacs.exe, so command line switches should work.
> 
> Don't set EMACS_SERVER_FILE at all unless you customized server-name in Emacs.  The error message does not explicitly state it, but you only need to do one of the things it is suggesting to resolve the problem of emacsclient not communicating with emacs. ALTERNATE_EDITOR will always work, EMACS_SERVER_FILE will work if a different server-name is the cause of the problem.
> 

Thanks Eli and Jason. I did have (server-start) in .emacs but it was
last statement, so if Emacs bailed out of loading .emacs before end, it
wouldn't have interpreted that form. There was an abort prompt for
missing .org file in *Messages* buffer right at session start. I assumed
that error wasn't fatal for .emacs.

I guess if I did use EMACS_SERVER_FILE it would have to be the default:

 c:\Users\myusername\AppData\Roaming\.emacs.d\server\server

Anyway it seems to work now except for associating Emacs with files with
no extensions. Is this something that can be set without going into
registry? If the OS hides extensions, Emacs won't try to load an .exe
file as if it were a bare filename, would it? I couldn't get anything to
work using assoc and ftype in the black doscommand window either.

Ed






  reply	other threads:[~2012-10-01  3:28 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
2012-09-30 22:02     ` Eli Zaretskii
2012-10-01  0:54     ` Jason Rumney
2012-10-01  3:28       ` B. T. Raven [this message]
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

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

  git send-email \
    --in-reply-to=k4b2k60jee@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.