From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: Running Emacs in an MSYS2 shell (or terminal?) Date: Wed, 26 Jan 2022 19:31:22 +0100 Message-ID: <86k0emqrgl.fsf@gnu.org> References: <86fspbydoi.fsf@duenenhof-wilhelm.de> <8635la97eb.fsf@gnu.org> <86v8y6wi63.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1811"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: help-gnu-emacs@gnu.org To: "H. Dieter Wilhelm" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 26 19:33:32 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCn6o-0000JD-8a for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 19:33:30 +0100 Original-Received: from localhost ([::1]:43712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCn6n-00037y-3a for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 13:33:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCn54-0001sP-EL for help-gnu-emacs@gnu.org; Wed, 26 Jan 2022 13:31:43 -0500 Original-Received: from [2001:470:142:3::e] (port=39100 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCn53-0006Qa-6N; Wed, 26 Jan 2022 13:31:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=TnOd/oSlUN107xD0Bv1BUj/3gSdaprzQFX+alMAOU7Y=; b=nXCsBEAFM8Z8/Y1f61Pj nyQ1MLruNCdfWmsI9QIkMDKHfSa76Efsi9qc18dJdqcJNHpCfImlAtfVvdJbYHM44qTZnn/YB61ry eeVCGAprYQyGt2rCbWCXW2PcW2WD5+vHWuKjSCVME2nHg6JIQNPyPAPfMgnCacM1Fr5cNepuC/46R UfkZ0iyCSwwCbv2rP+LO+CFCVRK8DlPrTDyhbiBAL8CRjStj80hVZbYq7V2BBZ2ASH9FKazxvMCAi v5YUfkyCr0wTBwvroL+gEgicDtlmYKOkRwrGdzR+FzjefLqvgyUmVAmgmNERUi2a2qbSonEWQ6WNS dyGsMMunU33UwQ==; Original-Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:59549 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCn52-0005BL-JE; Wed, 26 Jan 2022 13:31:40 -0500 In-Reply-To: <86v8y6wi63.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Wed, 26 Jan 2022 17:55:32 +0100") X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135539 Archived-At: Hi Dieter, "H. Dieter Wilhelm" 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