From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23840: runemacs does not seem to pass command line arguments through to emacs properly Date: Sat, 25 Jun 2016 09:59:12 +0300 Message-ID: <83k2hd21q7.fsf@gnu.org> References: <83por61kcw.fsf@gnu.org> <2d5c8e7b-1ca9-05fe-3946-b25b63655057@cs.umass.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466838084 13827 80.91.229.3 (25 Jun 2016 07:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 07:01:24 +0000 (UTC) Cc: 23840@debbugs.gnu.org To: moss@cs.umass.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 09:01:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGhaa-0006AD-NS for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 09:01:12 +0200 Original-Received: from localhost ([::1]:48809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhaZ-0005F9-TV for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 03:01:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhaU-0005F3-1m for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 03:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGhaQ-0000Wl-3x for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 03:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhaQ-0000Wh-0O for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 03:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGhaP-0000h0-QO for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 03:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2016 07:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23840-submit@debbugs.gnu.org id=B23840.14668380082593 (code B ref 23840); Sat, 25 Jun 2016 07:01:01 +0000 Original-Received: (at 23840) by debbugs.gnu.org; 25 Jun 2016 07:00:08 +0000 Original-Received: from localhost ([127.0.0.1]:54844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGhZX-0000fl-L8 for submit@debbugs.gnu.org; Sat, 25 Jun 2016 03:00:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGhZV-0000dx-Gm for 23840@debbugs.gnu.org; Sat, 25 Jun 2016 03:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGhZM-0008Al-HO for 23840@debbugs.gnu.org; Sat, 25 Jun 2016 03:00:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhZM-000898-DS; Sat, 25 Jun 2016 02:59:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4549 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bGhZK-0008QO-8l; Sat, 25 Jun 2016 02:59:54 -0400 In-reply-to: <2d5c8e7b-1ca9-05fe-3946-b25b63655057@cs.umass.edu> (message from Eliot Moss on Fri, 24 Jun 2016 16:01:08 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120033 Archived-At: [Please keep the bug address on the CC list, so that the discussion is recorded by the Emacs bug tracker.] > From: Eliot Moss > Date: Fri, 24 Jun 2016 16:01:08 -0400 > > On 6/24/2016 3:02 PM, Eli Zaretskii wrote: > >> From: Eliot Moss > >> Date: Fri, 24 Jun 2016 10:57:16 -0400 > >> > >> I use a Thunderbird add-on called "External Editor", that will invoke an > >> arbitrary editor program, passing on the command line the name of a file > >> to edit. If I tell External Editor to use runemacs, the file is not > >> opened, and any underscores in the file name appear as spaces in the name > >> of the buffer. I can ^X^F to the actual file, so the file is there, but > >> something in the runemacs->emacs transition seems to have converted > >> underscore to space in the file name. > > > > Don't use runemacs, use emacsclientw.exe, which is part of the Emacs > > package on Windows. And have Emacs run in advance, so that you won't > > need to start a new session each time. > > I get what you're saying, but I use this only for pop-up editing of emails, > which I need to have work when cygwin is not running. Most of the time > I use an X version of emacs within cygwin, so I don't want a second emacs > server floating around. The X version comes with emacsclient as well. > These pop-up editors I use only occasionally with > Thunderbird and Firefox, when editing an email or text entry gets long > (like a conference paper review). Given the light usage, starting a new > session is not an issue for me. > > But don't you agree that the behavior of runemacs here is odd? There's nothing wrong with runemacs, it does work as you expect. I don't have Thunderbird installed, but I just set EDITOR in the environment to point to runemacs.exe, started Less browsing a file, typed 'v' there, which is supposed to invoke $EDITOR, and sure thing, a fresh Emacs session was started with point on the line where I was reading in Less. I also see that Less invoked this command: !\path\to\runemacs.exe -Q +29 README which is exactly as I'd expect (the -Q part comes from the value of EDITOR I set up, and the +29 part is produced by Less). So if this doesn't work for you, there's some other factor at work, because runemacs does pass the arguments to emacs.exe. For starters, how exactly did you set up Thunderbird to invoke runemacs?