unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Arash Esbati <arash@gnu.org>
To: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Running Emacs in an MSYS2 shell (or terminal?)
Date: Wed, 26 Jan 2022 19:31:22 +0100	[thread overview]
Message-ID: <86k0emqrgl.fsf@gnu.org> (raw)
In-Reply-To: <86v8y6wi63.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Wed, 26 Jan 2022 17:55:32 +0100")

Hi Dieter,

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

> This is working for "emacs.exe -nw".  In fact, out of the box, it works
> even better than "winpty emacs.exe -nw", where keyboard shortcuts like
> "C-x C-c" aren't working for me!

Glad to hear that.  For me, even mouse works and I can choose items in
the menu bar with it (well, I could if I wanted to and don't need F10).

> Unfortunately, for the more important use case, "emacsclient.exe -nw
> test.txt", or the like, a new frame - outside of the "defterm" window -
> is always opening up.

I'm not sure if I understand your expectation here.  For me, I can do
"emacs -nw" in a shell, open a .tex file, compile it with synctex
activated (C-c C-c), start a Win32 viewer (in my case SumatraPDF) from
Emacs (With AUCTeX, it is with C-c C-v), double-click a text position in
the viewer and Emacs jumps to that position.  The config in the viewer
is:

Z:\path\to\emacs\bin\emacsclientw.exe -n --alternate-editor="" +%l "%f"

My understanding is that emacsclientw connects to the server it finds.

What is the use-case you have in mind?

P.S. I probably should change that config to

Z:\path\to\emacs\bin\emacsclientw.exe -n --alternate-editor=runemacs +%l "%f"

which is more convenient.

Best, Arash



      parent reply	other threads:[~2022-01-26 18:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25 16:37 Running Emacs in an MSYS2 shell (or terminal?) H. Dieter Wilhelm
2022-01-25 17:02 ` Eli Zaretskii
2022-01-25 19:20   ` H. Dieter Wilhelm
2022-01-25 17:51 ` Óscar Fuentes
2022-01-25 19:31   ` H. Dieter Wilhelm
2022-01-26  9:24 ` Arash Esbati
2022-01-26 16:55   ` H. Dieter Wilhelm
2022-01-26 17:32     ` Eli Zaretskii
2022-01-26 18:36       ` H. Dieter Wilhelm
2022-01-26 18:31     ` Arash Esbati [this message]

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=86k0emqrgl.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=dieter@duenenhof-wilhelm.de \
    --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).