From: Noam Postavsky <npostavs@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 35257@debbugs.gnu.org, Daniel Sockwell <daniel@codesections.com>
Subject: bug#35257: eshell and xclip
Date: Mon, 15 Apr 2019 20:41:55 -0400 [thread overview]
Message-ID: <87imvezsq4.fsf@gmail.com> (raw)
In-Reply-To: <87y34c3aji.fsf@igel.home> (Andreas Schwab's message of "Sun, 14 Apr 2019 16:51:13 +0200")
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
tags 35257 + patch
quit
Andreas Schwab <schwab@linux-m68k.org> writes:
> 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.
Ah thanks, looks adding it to eshell-needs-pipe works. This should be
safe enough for emacs-26.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1013 bytes --]
From dfed83d8c87ec30560fea7daca5c7abfe76baf0b Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
Date: Mon, 15 Apr 2019 20:38:15 -0400
Subject: [PATCH] Tell xclip not to expect job-control (Bug#35257)
* lisp/eshell/esh-proc.el (eshell-needs-pipe): Add "xclip".
---
lisp/eshell/esh-proc.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el
index 33ec19ae36..a4078e781d 100644
--- a/lisp/eshell/esh-proc.el
+++ b/lisp/eshell/esh-proc.el
@@ -242,7 +242,7 @@ (defvar eshell-last-sync-output-start nil
"A marker that tracks the beginning of output of the last subprocess.
Used only on systems which do not support async subprocesses.")
-(defvar eshell-needs-pipe '("bc")
+(defvar eshell-needs-pipe '("bc" "xclip")
"List of commands which need `process-connection-type' to be nil.
Currently only affects commands in pipelines, and not those at
the front. If an element contains a directory part it must match
--
2.11.0
next prev parent reply other threads:[~2019-04-16 0:41 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
2019-04-16 0:41 ` Noam Postavsky [this message]
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=87imvezsq4.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=35257@debbugs.gnu.org \
--cc=daniel@codesections.com \
--cc=schwab@linux-m68k.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.