From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#46351: 28.0.50; Add convenient way to bypass Eshell's own pipelining Date: Sun, 07 Feb 2021 12:01:58 -0700 Message-ID: <874kin1z2x.fsf@melete.silentflame.com> References: <878s812c6a.fsf@melete.silentflame.com> <87eehsz170.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28111"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46351@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 20:02:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8pJw-0007D4-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 20:02:09 +0100 Original-Received: from localhost ([::1]:36158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8pJw-0004Du-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 14:02:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8pJq-0004Dm-5o for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 14:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8pJp-0004qL-Uc for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 14:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8pJp-0006rf-RU for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 14:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46351 X-GNU-PR-Package: emacs Original-Received: via spool by 46351-submit@debbugs.gnu.org id=B46351.161272447426329 (code B ref 46351); Sun, 07 Feb 2021 19:02:01 +0000 Original-Received: (at 46351) by debbugs.gnu.org; 7 Feb 2021 19:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:48805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8pJ3-0006qa-V2 for submit@debbugs.gnu.org; Sun, 07 Feb 2021 14:01:14 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:33571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8pJ1-0006qM-7F for 46351@debbugs.gnu.org; Sun, 07 Feb 2021 14:01:12 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F1B1BBEC; Sun, 7 Feb 2021 14:01:04 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 07 Feb 2021 14:01:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= l4TucaqnSeQL34nI/CzS5SIgXJyUcBefPZGO3Ierqes=; b=Hy/T9ZzxNCMBsAoE JYNZnjCW7VU3HXFqdwjAhkj/ctu4ePAPza0Iep9RwO14VGn5w68+oieStpH7RQXh VdfJ2yWzulSEE5fIN3FRARvF+Gj4WDQsNS1W9KW+ESZeAjawY58JYZOwc4klK7Ac NYggbYRvlxyIF3pqpMCgD2fAfBk/08dwdr5KyPCL59pMjCX8lENkzc2iJQnbrGUM K89oLRqDLT4uRTqXB7KxLXMHUqCc88mCNASaak5tuA0leik9HQwoV0tDRRORnBA/ JlcHhTrY5Bwz/zaWRYJG/nLlgIXZcjp+Tucu51aOqJ9UsOP83S0PPnXIGdkeweyO Y0oCgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=l4TucaqnSeQL34nI/CzS5SIgXJyUcBefPZGO3Ierq es=; b=hWNeVHeY3rlw1Ywy3lgIDxLxfOqZ1tNvT3hhj8hpFqzkH/e8XwGDfaDUM KBUR4MwtatJOggL7/Pet1sMHh9+v0/x5AbfiUBjF0mlWQ1hORSdP9oYmJhE+WAof lc3p9JOvP9SHRcbtFoBqG5yoS5XB5k1NZCFB69HFGT9J1ARSFifkYtG/TkqapeBp yDVudeTgqCyyZXM2EJFsbDzEcMdAbx+X1qHfy8Db7XBkeaotlucOlIExLMTE1CjP eOwB2wqxT74ihUA9CIa1Ca11wsWY7mYFs1zC3an7yNQ7IRlFIjN1fYRtkquY+f3D EW43lzYBhK8ZWcO7JaEvbc4R5Lz8A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrhedugdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefuvggrnhcu hghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqne cuggftrfgrthhtvghrnhepvdfgkeevtdetvedvhffhgeevleelfeekveeuveehffduvdei udfhgeelvefghfehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: In-Reply-To: <87eehsz170.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199543 Archived-At: On Sun 07 Feb 2021 at 10:17AM +01, Michael Albinus wrote: > Applying your patch, I get the compiler warning > > --8<---------------cut here---------------start------------->8--- > ELC eshell/esh-mode.elc > > In end of data: > eshell/esh-mode.el:1114:1: Warning: the function =E2=80=98(setf buffer-su= bstring)=E2=80=99 is > not known to be defined. > --8<---------------cut here---------------end--------------->8--- Hrm, I can't reproduce this, but looking at the docs, I think that the problem is a missing (require 'cl-lib). Would you mind seeing whether that eliminates the warning at your end? > And using it in eshell, there is > > --8<---------------cut here---------------start------------->8--- > ~/src/emacs $ !! cat ~/.emacs | grep albinus > !!: command not found > --8<---------------cut here---------------end--------------->8--- You need to add eshell-expand-to-eshell-shell-command to eshell-expand-input-functions and (optionally) eshell-restore-unexpanded-input to eshell-input-filter-functions. Or maybe (the first of) these should be added by default? What do you think? For testing you can type these forms into an Eshell buffer: (add-hook 'eshell-expand-input-functions #'eshell-expand-to-eshell-shell-co= mmand nil t) (add-hook 'eshell-input-filter-functions #'eshell-restore-unexpanded-input = nil t) > I wanted to see, whether this works also for remote directories. Have > you tested this? Yes, I have, and it works (I did cat largefile >file and confirmed it's much faster when prefixed with !!, of course because the data doesn't get copied to the local machine). --=20 Sean Whitton