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: Fri, 28 Jun 2013 00:14:40 +0200	[thread overview]
Message-ID: <CAAeL0SSuhGegCp45HSR-sD1RecN41choVFSfKqu8reznvqNrJA@mail.gmail.com> (raw)
In-Reply-To: <BC5672F8AD4C054BAF167C9801500D1ABCB58FB0@USSLMMBX003.net.plm.eds.com>

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

> How do you configure Emacs on Windows?  Do you use emacsclientw to do
> anything like what I'm trying to do (make double-clicking on an
> associated file "just work" no matter whether Emacs is already
> running)?

I don't use file associations for Emacs. I'm a console guy through and
through, and launch almost everything from CMD (or, truth be told,
from TCC, the command line part of TakeCommand, a commercial product).

But as for the alternate editor: If you always use the -n/--no-wait
command line arg there's not much difference, but if you want
emacsclient.exe to stay connected to Emacs and wait for the user to
finish editing the file, "emacsclient MYFILE" is quite different of
running "alternate-editor MYFILE", because currently there's no way to
start the alternate Emacs editor and make it "connect back" to
emacsclient. Lennart Borgman's EmacsW32 was patched to allow it, and
seems to be a well liked feature, but his changes to emacsclient.c
have never been integrated back into Emacs proper.

What I do is run emacs from a script (a .CMD batch file) which makes
sure that emacs.exe is running and ready to answer client requests. If
not, it starts emacs and waits until it is. Only then does my script
call emacsclient.exe. It's a bit convoluted, but it works.

> Especially on W7/8, it's become impossible to configure non-trivial
> associations in the GUI, because there is no ability to specify the
> command name or any options.

You could write a trivial C program to run whatever you want via
system() (or execvp() and friends) and use that in the association.

    Juanma



  reply	other threads:[~2013-06-27 22:14 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
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 [this message]
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=CAAeL0SSuhGegCp45HSR-sD1RecN41choVFSfKqu8reznvqNrJA@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).