unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: "Ludwig, Mark" <ludwig.mark@siemens.com>
Cc: "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 16:01:33 +0200	[thread overview]
Message-ID: <CAAeL0SQQC_oFZ=HS7X-M_PHXXHnYwjCFnpdM+u+y3oyFiCpsMw@mail.gmail.com> (raw)
In-Reply-To: <BC5672F8AD4C054BAF167C9801500D1ABCB5887A@USSLMMBX003.net.plm.eds.com>

On Thu, Jun 27, 2013 at 3:29 PM, Ludwig, Mark <ludwig.mark@siemens.com> wrote:

> I was not aware that I was not exiting Emacs, but in a hard Windows
> abort/restart, of course, there is no opportunity to exit Emacs.
> Still, I appreciate that the problem is arguably external to Emacs.

It is difficult to fix from Emacs. Even if we used WM_ENDSESSION to
clean up the server file, that would only work for "clean" exists, not
crashes. And even so, Windows 7 has a hard time limit for shutdown and
it's not guaranteed that you'll have time to do proper cleanup.

> That said, the pop-up error really shouldn't need dismissal by the
> user when there is either ALTERNATE_EDITOR or --alternate-editor.  In
> that configuration, it's not clear that the error should even be
> reported -- except perhaps as a warning (to inform the user why the
> alternate editor was launched).

The error says that emacsclientw found a server file for a process it
could not connect. That is useful. For example, emacs could still be
running, just not attending to server connections for some reason.
It's better to give the user the information *and* let him decide (by
clicking on OK, or doing something else) how to fix things.

As for a workaround, I can think of two: set some .CMD script in the
StartUp folder to clean any stale server file. Or, if running Emacs is
part of most or all of your Windows sessions, start Emacs itself
(perhaps with --iconic) from StartUp, so it takes care of the stale
file and the first emacsclientw.exe will already find it running and
ready to serve.

    Juanma



  reply	other threads:[~2013-06-27 14:01 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
2013-06-27  0:34       ` Juanma Barranquero
2013-06-27 13:29         ` Ludwig, Mark
2013-06-27 14:01           ` Juanma Barranquero [this message]
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

  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='CAAeL0SQQC_oFZ=HS7X-M_PHXXHnYwjCFnpdM+u+y3oyFiCpsMw@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ludwig.mark@siemens.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).