GNU bug report logs - #35257
eshell and xclip

Previous Next

Package: emacs;

Reported by: Daniel Sockwell <daniel <at> codesections.com>

Date: Sat, 13 Apr 2019 15:34:02 UTC

Severity: minor

Tags: fixed, patch

Fixed in version 26.3

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 35257 <at> debbugs.gnu.org, Daniel Sockwell <daniel <at> codesections.com>
Subject: bug#35257: eshell and xclip
Date: Sun, 14 Apr 2019 16:51:13 +0200
On Apr 14 2019, Noam Postavsky <npostavs <at> 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 <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 6 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.