From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 13 11:33:10 2019 Received: (at submit) by debbugs.gnu.org; 13 Apr 2019 15:33:10 +0000 Received: from localhost ([127.0.0.1]:58959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFKeT-0002Of-Mg for submit@debbugs.gnu.org; Sat, 13 Apr 2019 11:33:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFH30-00056t-Lq for submit@debbugs.gnu.org; Sat, 13 Apr 2019 07:42:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:56974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFH2v-0000Va-Dr for submit@debbugs.gnu.org; Sat, 13 Apr 2019 07:42:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFH2t-0006H4-Q9 for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 07:42:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFH2r-0000Tw-OW for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 07:42:07 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:17329) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFH2r-0000Sl-BL for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 07:42:05 -0400 Date: Sat, 13 Apr 2019 11:41:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codesections.com; s=protonmail; t=1555155721; bh=opIjkgATL1ZY2UBWO79I1bTAB6UmVYbtJAwzwywzyy4=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=mhWmHxr3YdA1vy5XjP+I2BH6taVLEllitYUTpplNjJ0LGl6E0RWie1QECA0aHxtnm iDGSA4VZeGl8v/1wNO9Me7IV5I2w+2xwt2c816doKQeyHH3MxNl5/f1Of8avHZnDXN SeRAOZMz8mLCKgkj3C36SCDwtlpRLJc7Z/AXPbW0= To: "bug-gnu-emacs@gnu.org" From: Daniel Sockwell Subject: eshell and xclip Message-ID: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> Feedback-ID: qWX07WmNPZq-SIl_-7-kLWKTrFMgnscc4qPXstGP-kCXaJlLRg8XAk-0xq4UlhN_ZnhONThJqQGjmn8rINkw8w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.70.40.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 13 Apr 2019 11:33:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Daniel Sockwell Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Thanks for all the great work on eshell! I'm a big fan and using it as my daily shell. 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 m= y last=E2=80=94I plan to get more involved in the project soon. Please let m= e know if should do anything differently in future bug reports or if I can provide an= y other information about this bug/help in any other way. Thanks so much!) Best regards, Daniel Sockwell In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-03-17 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description:=09Antergos Linux Recent messages: Invoking man xclip in the background xclip man page formatted funcall-interactively: Text is read-only user-error: No window right from selected window [2 times] History item: 531 History item: 530 History item: 529 Mark set History item: 532 evil-forward-char: End of line Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Eshell Minor modes in effect: diff-auto-refine-mode: t esh-autosuggest-mode: t global-fish-completion-mode: t fish-completion-mode: t global-evil-tabs-mode: t evil-tabs-mode: t keyfreq-autosave-mode: t keyfreq-mode: t which-key-mode: t minibuffer-line-mode: t winner-mode: t show-smartparens-global-mode: t smartparens-global-mode: t ivy-mode: t global-evil-surround-mode: t evil-surround-mode: t global-undo-tree-mode: t undo-tree-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t global-flycheck-mode: t global-company-mode: t company-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug sendmail tabify misearch multi-isearch mhtml-mode css-mode eww mm-url gnus nnheader url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap smartparens-javascript js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs smartparens-html sgml-mode woman dabbrev tramp tramp-compat tramp-loaddefs trampver ucs-normalize parse-time lsp-ui lsp-ui-flycheck lsp-ui-doc smartparens-markdown markdown-mode noutline outline goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline helpful trace edebug info-look shut-up help-fns radix-tree elisp-refs loop cua-base cl-print debug mail-extr message format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader move-text eterm-256color pollen-mode perl-mode pp vc-git diff-mode smartparens-racket racket-mode racket-bug-report racket-collection tq racket-stepper racket-logger racket-profile racket-imenu racket-edit hideshow racket-complete shr svg xml dom browse-url racket-repl ido racket-common racket-indent racket-font-lock racket-util racket-ppss racket-keywords-and-builtins racket-custom sh-script smie executable esh-autosuggest jka-compr xterm-color em-term em-script em-prompt em-ls em-hist em-pred em-basic em-banner em-alias two-column iso-transl server evil-smartparens elec-pair company-oddmuse company-keywords company-etags etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb fish-completion em-cmpl eshell-z em-dirs eshell-up em-smart esh-help man em-unix esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-groups eshell esh-module esh-mode esh-arg projectile grep ibuf-ext ibuffer ibuffer-loaddefs prettier-js evil-tabs elscreen dired dired-loaddefs keyfreq which-key minibuffer-line multi-term cl term disp-table ehelp nordless-theme winner time-date diminish smartparens-config smartparens-text smartparens ivy delsel colir color ivy-overlay ffap evil-surround evil evil-keybindings evil-integration undo-tree diff evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete evil-macros evil-repeat evil-states evil-core advice evil-common windmove rect evil-digraphs evil-vars flycheck find-func rx company-lsp lsp-mode tree-widget wid-edit xref url-util subr-x spinner network-stream puny nsm rmc starttls tls gnutls json map inline imenu ht filenotify f s em-glob esh-util dash-functional dash flymake-proc flymake compile comint ansi-color ring warnings thingatpt project company edmacro kmacro pcase cl-extra help-mode general use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1054070 132875) (symbols 48 63615 2) (miscs 40 4214 3732) (strings 32 177644 18927) (string-bytes 1 4767174) (vectors 16 91339) (vector-slots 8 2231815 84710) (floats 8 439 1310) (intervals 56 55627 7620) (buffers 992 56)) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 14 09:54:17 2019 Received: (at 35257) by debbugs.gnu.org; 14 Apr 2019 13:54:17 +0000 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 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 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) 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) From: Noam Postavsky To: Daniel Sockwell Subject: Re: bug#35257: eshell and xclip References: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> Date: Sun, 14 Apr 2019 09:54:07 -0400 In-Reply-To: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> (Daniel Sockwell's message of "Sat, 13 Apr 2019 11:41:57 +0000") Message-ID: <87ef641ym8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35257 Cc: 35257@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 14 10:51:19 2019 Received: (at 35257) by debbugs.gnu.org; 14 Apr 2019 14:51:19 +0000 Received: from localhost ([127.0.0.1]:32923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFgTW-0004Ci-Qi for submit@debbugs.gnu.org; Sun, 14 Apr 2019 10:51:19 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:53712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFgTU-0004CX-Kp for 35257@debbugs.gnu.org; Sun, 14 Apr 2019 10:51:17 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 44hvhg0wlfz1rZ0V; Sun, 14 Apr 2019 16:51:15 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 44hvhg0P3cz1qxFt; Sun, 14 Apr 2019 16:51:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id vXpUTnE0DaTZ; Sun, 14 Apr 2019 16:51:14 +0200 (CEST) X-Auth-Info: CPxzTFKxJp5OZ52XzIilp7vwsXWZ4kJ5AM32n1xkA+LkqmYE8s2Ri3EQy2IZwc1x Received: from igel.home (ppp-46-244-161-145.dynamic.mnet-online.de [46.244.161.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 14 Apr 2019 16:51:14 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 67F322C12C7; Sun, 14 Apr 2019 16:51:13 +0200 (CEST) From: Andreas Schwab To: Noam Postavsky Subject: Re: bug#35257: eshell and xclip References: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> <87ef641ym8.fsf@gmail.com> X-Yow: Are you still SEXUALLY ACTIVE? Did you BRING th' REINFORCEMENTS? Date: Sun, 14 Apr 2019 16:51:13 +0200 In-Reply-To: <87ef641ym8.fsf@gmail.com> (Noam Postavsky's message of "Sun, 14 Apr 2019 09:54:07 -0400") Message-ID: <87y34c3aji.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35257 Cc: 35257@debbugs.gnu.org, Daniel Sockwell X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Apr 14 2019, Noam Postavsky 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." From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 20:42:06 2019 Received: (at 35257) by debbugs.gnu.org; 16 Apr 2019 00:42:06 +0000 Received: from localhost ([127.0.0.1]:35900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCAo-0003pm-1H for submit@debbugs.gnu.org; Mon, 15 Apr 2019 20:42:06 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:41313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCAl-0003pA-Io; Mon, 15 Apr 2019 20:42:04 -0400 Received: by mail-qt1-f175.google.com with SMTP id w30so21424565qta.8; Mon, 15 Apr 2019 17:42:03 -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; bh=MzEk1JgMSNCH5w4buGd64u0tWojm+IokZi2TzAKjIxk=; b=Ev9dDQXjuLGTR88CgrETW3o2Rz0OKDgWERGlgAvFR7AnFAPzZUi3LZkh9aZ4kxHXSO 6+WcleN9D9Y42bebiXvNAZWzCGo2u7Tom5OaKmXUibEGBGsRXkQXt+xq3rExH+0g56zk wTEAdk+rjAiZUiHhuoUt/ot1wVw33I0TepbdN/plIUUSMg+e66VZtwRa9HXBqV5QTDy5 oFMJ1O+k4iu2qP18W5+2evPwYHrRcJLPqcJ3vWpNgBgs9vP7PZIxOm05L48r9PEUA7Cx I8AtG8+wbBBx1kVRVzlnYKCU7tST4vN0aSLNl9w30cZhD8bC+/NWt5QAfnJO+OPHbMZK qfxA== 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; bh=MzEk1JgMSNCH5w4buGd64u0tWojm+IokZi2TzAKjIxk=; b=LIeVX5fBRrwtMWil7G3ZL94VJecCPyPH7vWX+ouOP8BFCOL8fU3nPoMLRXS5ad0d9T +uBHoGaqL6/tBBJ5xXSZzFeQa7uI1ZbgWLx/TgZaOXDKI2vY1WwpsPcnLK5B4WCpYStB RDWI5cmTTZ9ASbezO/BRJg1LmhkVEj9kCHDyQKCfRCdF/62ZNIdJhPldeKlvsBcb8Neg ynwsfE+RtTwMrcFHCWpngriGqLRhWUOXCq2ZoK8D2UeB93eZs169CjrSVh+Jz+1Wo9R/ dyNtWUtccMIJ0VA1M+p+tokC3PBwSIOkoiGsGgb5mAM8xyh/lnzLv7ndQSudkbyjzr9h IbeA== X-Gm-Message-State: APjAAAWy3nwOMLlvrLw70gbVtVo303BX7CPwZqVqwQIemxQ9Ev1tnont YefIK9yZncXYKZ87KWT1d3juHRaQ X-Google-Smtp-Source: APXvYqwDNBzXB1KehQF2vhALij/y82kfBw0wqXq2mK0Ki9o2J9xR0Uofek8044kRa1KlSUBDs9t5tg== X-Received: by 2002:ac8:2c8f:: with SMTP id 15mr62304029qtw.179.1555375317893; Mon, 15 Apr 2019 17:41:57 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 204sm28665742qki.58.2019.04.15.17.41.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 17:41:56 -0700 (PDT) From: Noam Postavsky To: Andreas Schwab Subject: Re: bug#35257: eshell and xclip References: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> <87ef641ym8.fsf@gmail.com> <87y34c3aji.fsf@igel.home> Date: Mon, 15 Apr 2019 20:41:55 -0400 In-Reply-To: <87y34c3aji.fsf@igel.home> (Andreas Schwab's message of "Sun, 14 Apr 2019 16:51:13 +0200") Message-ID: <87imvezsq4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35257 Cc: 35257@debbugs.gnu.org, Daniel Sockwell X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain tags 35257 + patch quit Andreas Schwab 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Tell-xclip-not-to-expect-job-control-Bug-35257.patch Content-Description: patch >From dfed83d8c87ec30560fea7daca5c7abfe76baf0b Mon Sep 17 00:00:00 2001 From: Noam Postavsky 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 19 15:26:56 2019 Received: (at 35257) by debbugs.gnu.org; 19 Apr 2019 19:26:56 +0000 Received: from localhost ([127.0.0.1]:44646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHZA0-0004Vp-FY for submit@debbugs.gnu.org; Fri, 19 Apr 2019 15:26:56 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:44398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHZ9y-0004VX-9D; Fri, 19 Apr 2019 15:26:54 -0400 Received: by mail-qk1-f182.google.com with SMTP id y5so3390357qkc.11; Fri, 19 Apr 2019 12:26:54 -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; bh=/lwO/lTjoagW3mHtoDM6JXr2b0Q+xeE9jJ30uwDeUiM=; b=jXcCqdshBpv7lQruZHv30gWFScgMqn81C7zUeldpMI0SCxHKdDK8UGxHDy25XoZzI4 bksW3JWB4UeG8d5k9z+GVTWJLDx84fRO15f8PTDe1RWf4j97w1eNjoIzJowoZW2mdjh8 0qHlkXIzfyrnzOueVv4PhmfzHPSwhRpWWy/rUcHSCshqFzJCR7Mekvb5TDyrHZ3PPEeJ G37s7n4PKx+EXLfF99JykJuZIRFzIjmu+qyekL5zYnB0CTB+8usVnRQXEqwp1/UFnMTr CHfDrokzxZv7czvJ4us09R0+27XeXh64/ZtgLIJLjVpB/fLi5BgOwY+xzp6xdEc2fGb6 qxPQ== 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; bh=/lwO/lTjoagW3mHtoDM6JXr2b0Q+xeE9jJ30uwDeUiM=; b=AIUlC5hF9nbSJ0jB/7TGmvDoef4k4TO4UFTNXdA+W3PmtZ+wR43as3U2Ft6+BFpJCF /uVdei1WxzCgfevo+wfUfQ0AXSE6ZSICRKMj0BRC4timiwgZKO1CzfDHMN2+ig30hQMn HqHvCsLlHu37pHiwyLyV9qrgrldrkbVjiaQfxZ6FAuFuBPUBTWf6jcPRQBNK7O3nkqzD VDwpwVEg4tpT1n8kUlIkddm76iK5I82ajvEh3gVRt70db5ntIHJ4IXahRQWWA086lPsO FSsOzRsRdYAnzZ5jj+MIRWeSiD1au18HDsXU/s7Gef76Ly7E+QAbBFByjcETXur2B941 qYLQ== X-Gm-Message-State: APjAAAWzoFqT6ie2Enq9RWYAw0mKBjuWspUzuz02iazOTAHRSqwwZ9ht FZQ+SZpFNFzYaSoStUKIcJ6+hCVg X-Google-Smtp-Source: APXvYqwAVEUpSHmui3UKLKerx3hUqO/5xUlBrhnNMZ3C3fHI0Eq2DLqyTYdLTnWZWgjqXSOleZpdUQ== X-Received: by 2002:ae9:f80c:: with SMTP id x12mr4615067qkh.81.1555702008713; Fri, 19 Apr 2019 12:26:48 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id i1sm1426825qtd.94.2019.04.19.12.26.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 12:26:48 -0700 (PDT) From: Noam Postavsky To: Andreas Schwab Subject: Re: bug#35257: eshell and xclip References: <_wExttdjAgS4gbeBwU8NQID8Y13wGR1GN_FZp3kpg1Rj0BjDdZPkeJ9C7ljCgn9nuDT2zQWuQz5LV2hQlbg98AHgVc2tAL8qowqIAH0spOk=@codesections.com> <87ef641ym8.fsf@gmail.com> <87y34c3aji.fsf@igel.home> <87imvezsq4.fsf@gmail.com> Date: Fri, 19 Apr 2019 15:26:46 -0400 In-Reply-To: <87imvezsq4.fsf@gmail.com> (Noam Postavsky's message of "Mon, 15 Apr 2019 20:41:55 -0400") Message-ID: <87ef5xvls9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35257 Cc: 35257@debbugs.gnu.org, Daniel Sockwell X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 35257 fixed close 35257 26.3 quit > Andreas Schwab 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. Pushed to emacs-26, along with some more program names found in xclip.el of GNU ELPA. 95bd56df88 2019-04-19T15:19:10-04:00 "Tell xclip not to expect job-control under eshell (Bug#35257)" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=95bd56df883478bc16e25d7fc5e5d25a56278b7c From unknown Fri Aug 15 19:30:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 May 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator