all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23840@debbugs.gnu.org
Subject: bug#23840: runemacs does not seem to pass command line arguments through to emacs properly
Date: Sat, 25 Jun 2016 11:53:22 -0400	[thread overview]
Message-ID: <109c9fd1-468f-294e-41f0-db106d8d96c2@cs.umass.edu> (raw)
In-Reply-To: <83k2hd21q7.fsf@gnu.org>

On 6/25/2016 2:59 AM, Eli Zaretskii wrote:
> [Please keep the bug address on the CC list, so that the discussion is
> recorded by the Emacs bug tracker.]

Thanks for pointing that out.

>>
>> 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.

That may be, but I need this to work when cygwin is not running.  When cygwin
is not running, I don't have X available (unless I do a whole second setup of
X, only for this use - I'm not inclined to do that).

> 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:

In the External Editor add-on, if I set the text editor to be:

"C:\Program Files\Emacs\bin\emacs.exe" --no-splash --file

then things work, though I get the annoying console window.

If I use this:

"C:\Program Files\Emacs\bin\runemacs.exe" --no-splash --file

then emacs pops up, but says the email message is a new file.

However, I think we're making progress on diagnosing this.  When I
looked very closely at the mode line in emacs, I could see the underscores
were actually there.  The two cases start up pointing to the same file
name in the same folder.  In the runemacs case, however, the file is
not present by the time emacs pops up.  Here is my theory.  runemacs
returns immediately after starting emacs.  Thunderbird sees that
return, reads back in the file it wrote, and deletes the file.  Then
emacs tries to open the file and does not see it.

If this theory is right, what I need / desire is for runemacs to wait
for the emacs child.  But AFAICT runemacs is not designed to do this.
I end up desiring a case not provided for, and hence probably need to
just live with the annoying pop up console window.

At least I think we have an explanation.  Still, it would be nice if
I could tell runemacs to wait ...

I appreciate your help with this.

Regards -- Eliot





  reply	other threads:[~2016-06-25 15:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 14:57 bug#23840: runemacs does not seem to pass command line arguments through to emacs properly Eliot Moss
2016-06-24 19:02 ` Eli Zaretskii
     [not found]   ` <2d5c8e7b-1ca9-05fe-3946-b25b63655057@cs.umass.edu>
2016-06-25  6:59     ` Eli Zaretskii
2016-06-25 15:53       ` Eliot Moss [this message]
2016-06-25 16:08         ` Eli Zaretskii
2016-06-25 16:47           ` Eliot Moss
2016-06-25 18:44             ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=109c9fd1-468f-294e-41f0-db106d8d96c2@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=23840@debbugs.gnu.org \
    --cc=eliz@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.