all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Dialog from emacsclientw.exe must be dismissed (was RE: Best practices for launching Emacs on Windows 7/8)
Date: Thu, 27 Jun 2013 00:04:56 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1ABCB582F1@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <CAAeL0SR4=uh+Pt4exR-3QuHng1hzeNgFygJzfrGrX+GMj+hVRA@mail.gmail.com>

> From: Juanma Barranquero, Wednesday, June 26, 2013 6:12 PM
> 
> On Wed, Jun 26, 2013 at 8:47 PM, Richard Copley <rcopley@gmail.com> wrote:
> 
> > I've never noticed it before, but it's easy enough to reproduce (run
> > emacs, start server, kill emacs, run emacsclientw).
> 
> Could you please file a bug report with a step-by-step recipe starting
> from emacs -Q (if possible)?
> 
> Thanks,
> 
>    Juanma

Okay, I will file a formal report, but first I want to make sure
others see the problem.  I also need to understand what to include in
the report.

Firstly, the problem is only reproducible (for me) by restarting
Windows.

Secondly, it does not involve emacs(!).  The problem is purely in
emacsclientw.exe.  Therefore, there is no .emacs involvement, so using
-Q also does not apply.

I am not aware of any configuration aspects to this error.  I am not
saying there are no configuration aspects, but I am not aware of any.

That said, I have set the ALTERNATE_EDITOR environmental variable to
the full path of runemacs.exe.  I doubt it matters w.r.t. the problem,
precisely, but the overall success scenario is based on
ALTERNATE_EDITOR being set.

The idea is to set up my Windows environment so that when I
double-click on a file that is associated with emacsclientw.exe, I get
a window (Emacs "frame") with the file available for editing.  If
Emacs is running as a server, that process pops up a new frame
(according to my .emacs); if Emacs server is not running, according to
ALTERNATE_EDITOR, Emacs gets started (by "runemacs").  (Now that I
think about it, my .emacs starts the server, naturally, so for that
reason, I don't think it even makes sense to attempt to use emacs -Q
anywhere in this reproduction scenario.)

The first time after restarting Windows, when I double-click on a file
that is associated with emacsclientw.exe, I have to dismiss the dialog
that I seek to eliminate.  Only after dismissing the dialog will the
alternate editor be invoked.  (I would not mind so much if the
alternate editor was launched asynchronously, not waiting for me to
respond to the dialog.)  The error message in the pop-up dialog that
must be dismissed is the long-winded Windows version of the UNIX error
"Connection refused": "No connection could be made because the target
machine actively refused it."

I am a network programmer, and the error message makes perfect sense:
it is simply saying there is no process listening.  That is absolutely
true!  It's also not something I want to confirm, because it's
patently obvious, and completely uninteresting -- at least in my case,
because I have the ALTERNATE_EDITOR variable (or the
--alternate-editor option) set.  AFAICT, the error only occurs if
Emacs server has never been started in the current running instance of
Windows.

What should I put in the bug report, exactly?

Thanks,
Mark

  reply	other threads:[~2013-06-27  0:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 18:17 Dialog from emacsclientw.exe must be dismissed (was RE: Best practices for launching Emacs on Windows 7/8) Ludwig, Mark
2013-06-26 18:47 ` Richard Copley
2013-06-26 23:11   ` Juanma Barranquero
2013-06-27  0:04     ` Ludwig, Mark [this message]
2013-06-27  0:34       ` Juanma Barranquero
2013-06-27 13:29         ` Ludwig, Mark
2013-06-27 14:01           ` Juanma Barranquero
2013-06-27 14:28             ` Ludwig, Mark
2013-06-27 14:51               ` Juanma Barranquero
2013-06-27 15:34                 ` Ludwig, Mark
2013-06-27 20:50                   ` Juanma Barranquero
2013-06-27 21:27                     ` Ludwig, Mark
2013-06-27 22:14                       ` Juanma Barranquero
2013-06-27 21:35                     ` Ludwig, Mark
2013-06-27 22:17                       ` Juanma Barranquero
     [not found]                     ` <mailman.2633.1372368937.22516.help-gnu-emacs@gnu.org>
2013-06-28  7:38                       ` Jason Rumney
2013-06-28 17:55                         ` Richard Copley
2013-06-28 18:31                           ` Richard Copley
2013-06-29  3:52                             ` Ludwig, Mark

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=BC5672F8AD4C054BAF167C9801500D1ABCB582F1@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --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.