From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#35257: eshell and xclip Date: Sun, 14 Apr 2019 09:54:07 -0400 Message-ID: <87ef641ym8.fsf@gmail.com> References: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="209524"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35257@debbugs.gnu.org To: Daniel Sockwell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 14 16:02:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFfiC-000sOD-Iz for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2019 16:02:24 +0200 Original-Received: from localhost ([127.0.0.1]:36094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFfiB-0005ru-K9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2019 10:02:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFfhw-0005eR-TK for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 10:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFfb5-0007ka-2F for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 09:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFfb4-0007kQ-Sx for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 09:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hFfb4-0002XM-PC for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 09:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2019 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35257 X-GNU-PR-Package: emacs Original-Received: via spool by 35257-submit@debbugs.gnu.org id=B35257.15552500579676 (code B ref 35257); Sun, 14 Apr 2019 13:55:02 +0000 Original-Received: (at 35257) by debbugs.gnu.org; 14 Apr 2019 13:54:17 +0000 Original-Received: from localhost ([127.0.0.1]:60307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFfaK-0002Vy-NC for submit@debbugs.gnu.org; Sun, 14 Apr 2019 09:54:16 -0400 Original-Received: from mail-qt1-f169.google.com ([209.85.160.169]:41753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFfaJ-0002Vi-Gl for 35257@debbugs.gnu.org; Sun, 14 Apr 2019 09:54:15 -0400 Original-Received: by mail-qt1-f169.google.com with SMTP id w30so16332804qta.8 for <35257@debbugs.gnu.org>; Sun, 14 Apr 2019 06:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=G+SrTlExSwthiR6sae68x4FwzPM4rABTUp3282H13nw=; b=UWlwEl4FkMT4WlGv3g3aMZcheZcPiZmAOPGC4FkwC3QiCcKLpa3+/8ZHv6hmidvKMX bNb40E2r9anZwMVEg+5Ak1OcYzUSApuoWtwDSvHC0aOExEYdGQnODjRhe1Nif+MKWpGi sJHZ/At5X0UZItg5xZ2HOOaDiW2PP0O3JFeZLR9/pn6jR8hM9GjUb7Rd/QyCXCFLPjJQ +gK7OGsFLD0Tppt+4z4XJa9s35MP8hLQlZazxnfTB0SSDQZaHdZuH7AWbyD8HQ7fD10x gYyz7l7qHDkVX3ne2kAvULpG0Jz9H0+PcQmhOwjtZ+5qQcDfW4hcqsCoIpgyEEz/usXR 9Ikg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=G+SrTlExSwthiR6sae68x4FwzPM4rABTUp3282H13nw=; b=FDhPP8XB3VpH1oDD4IzDWw1xNcf7uz1bT7GYOtNtNUbOZx42JmQinGGj1t7eyboCaQ AhypFPU1V0wVHBRsWLwiNN7F83MM+aYu0lZbbJbgM/M27Thpa4zCmEhGd8JxpMecgYlX TVn0p10BDkxp6ys5SPmBSuGXqZvVCHHWthh29cTkogF2SlTqlg2+5oBKcRbl6AewTYfT +GtlMcJuZ54IeVetiXy8JhD0VOhm9HTaZY01155REw/GH7c7uhrFrQ8DcMV+N1J7bKQb u7L2zCJE1+M6sk15DCt9AaGvfPskkcAoFn5eaHUVNqSBRN40n4Rx7NHZ30+LgArtjwMH x0dg== X-Gm-Message-State: APjAAAXIaxPSLOhrPzc1WjF9oHgaisr5zXqzyeTWEoIn5kfmFikEs0Bd pTWYwPptZTQjG/tqKDEtF2ACzw+j X-Google-Smtp-Source: APXvYqyNUK1JTPZMvRSQpXDChF/fEaga5olmRdWPm8wUsS+5i3nlp3OelXtGIsqHVr1U5rXE46YgHQ== X-Received: by 2002:ac8:3687:: with SMTP id a7mr55710582qtc.284.1555250049717; Sun, 14 Apr 2019 06:54:09 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j25sm32163331qtc.24.2019.04.14.06.54.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Apr 2019 06:54:08 -0700 (PDT) In-Reply-To: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> (Daniel Sockwell's message of "Sat, 13 Apr 2019 11:41:57 +0000") 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: 209.51.188.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:157624 Archived-At: Daniel Sockwell writes: > I recently ran into a minor issue, however. I discovered that xclip > does not seem to work at all in eshell: the same commands that work fine > in a term buffer (or in external terminal emulators) have no effect in > eshell. Further, the command does not provide an error message, it just > fails to set the system clipboard. > (This is my first time submitting an Emacs bug, but I am sure it won't be= my > last=E2=80=94I plan to get more involved in the project soon. Please let= me know if > should do anything differently in future bug reports or if I can provide = any > other information about this bug/help in any other way. Thanks so much!) It would help to have a precise recipe starting from 'emacs -Q' to reproduce the problem. In this case I'm guessing it should be like this: emacs -Q -f eshell Welcome to the Emacs shell ~ $ echo foo | xclip -i ~ $ xclip -o Error: target STRING not available And in comparison the expected output with shell: emacs -Q -f shell $ echo foo | xclip -i $ xclip -o foo 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. So I'm really not sure what's going on (is this a different bug, or the same one?). Maybe debugging on the xclip side is needed.