From: Andreas Schwab <schwab@linux-m68k.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 35257@debbugs.gnu.org, Daniel Sockwell <daniel@codesections.com>
Subject: bug#35257: eshell and xclip
Date: Sun, 14 Apr 2019 16:51:13 +0200 [thread overview]
Message-ID: <87y34c3aji.fsf@igel.home> (raw)
In-Reply-To: <87ef641ym8.fsf@gmail.com> (Noam Postavsky's message of "Sun, 14 Apr 2019 09:54:07 -0400")
On Apr 14 2019, Noam Postavsky <npostavs@gmail.com> wrote:
> With eshell bugs, it's often a good idea to reproduce the issue with
> some plain lisp calls (if possible). The simplest way to call external
> processes from Emacs is with call-process:
>
> (progn (with-temp-file "/tmp/foo"
> (insert "foo"))
> (call-process "xclip" "/tmp/foo" '(t t) t "-i"))
>
> But that just hangs until C-g.
This is because xclip forks a background process that holds the
selection. With eshell, that background process is killed immediately
(due to its lack of job control), so the selection is lost.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2019-04-14 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-13 11:41 bug#35257: eshell and xclip Daniel Sockwell
2019-04-14 13:54 ` Noam Postavsky
2019-04-14 14:51 ` Andreas Schwab [this message]
2019-04-16 0:41 ` Noam Postavsky
2019-04-19 19:26 ` Noam Postavsky
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=87y34c3aji.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=35257@debbugs.gnu.org \
--cc=daniel@codesections.com \
--cc=npostavs@gmail.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.
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.