From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: EShell Alias for a 'cd' followed by 'ls' Date: Thu, 19 Nov 2020 06:49:41 +0100 Message-ID: References: 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="9731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 06:52:07 2020 Return-path: Envelope-to: geh-help-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 1kfcrX-0002RT-4j for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 06:52:07 +0100 Original-Received: from localhost ([::1]:33076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfcrV-0004Oo-Tv for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 00:52:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfcpl-0004Og-4F for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 00:50:17 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:47207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfcpj-00070n-2j for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 00:50:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605764982; bh=l2dKEe+A3W70DobZdVmsqyhwgqgvQ9jOX5LHpiyi5cg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=G7Zvk96XJWMwVyKPa6bbXzvX/G6jN5YyiDcRrFCFyHMbhZ5JigWDmVYY89dgWC8pD H1ezPowV0+pX9FZUj8/bQsp92fE3xQ6p1NKF/IfVfLe4uddT3WY50jhUs744r8xQcP 4BQIBmxS3+Btqla8K3J+AP13KcETigVnUfzE7Rhk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Thu, 19 Nov 2020 06:49:41 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:AcoFzwDoI3zKWG4B33RYuKJPuWpkwhIUmMPULOuBjGqYkbqj5J6p+3x+y5ZIwHnd4CoBI g4H8sUc2+X/H1t6xqGRx5SzpwAvxnrdHfbK8iUT/b+TsNkD+D6Vwz43R9rse2q8R8xSU2zk6QwX/ ErwnoMqYW3XBHHnQbKw3IQvBjczZakWdWhCHMZCj/jTNrU03OjGVw8l+qwyTbXAkoBKAjN2lj5M5 Xknj8/NbWN/WZeWAyYKHmnlSo3nLVlQTe6KwhN59YaCBmJ2K1ZMYAykOy2CzDQSM/wwHAEWmdS2b B8= X-UI-Out-Filterresults: notjunk:1;V03:K0:t7e7yYHFL68=:tQT0srEcEg5WJWBUbwgiNW BeEBFFFBdhP3TCewdPDVyE9dWIfr7FYlssm7Ox3k7jMCjsFsDacKTC0SqfEvb0qQf0H1cKDS7 pIWMgdNvyqwIf7h6PQhyLnwM90IvNf6C9dk+kctO83ZHjV7TRYJyDbqawWFGEIbRSElOLCAiJ G16HuSF4EVqjvMlmMvXDdOVEyaIos7o/OZbKc9hzQ2+zx44xMU0BvioBqRlPXlw8MkGUkVOAC alQ/+7T078R/5iqnvjLO6YV8oY43uaF7YosdnhptQvtzgU5HeYbGKsWEet2kPRgLwc1LT+gQr aKYSeS/F/lIn9o+awbM6suP1DNLJ6z2SIKPBNmHOWHwAmOQ5bdTmILIJCY7VOMTRklgWtT1SY Bi2z+NBPyLQPTLq5WjeySsqGvG68Shn6/tdAHxLV3+JD433Rq73yk/pVy2BsMUnDxAifZhjOX IANX9h4yWTpo7DbGuqos0apbZlis/UbLhHPBfUO6cR5ueycbzudk9iMUXe2QXAJFUAGBPlj1n 9atcChP1HCkZndUTRNo7N8sFvLQmUkOgKFNleWKxcfewRZF2PR2g+Cy5kFi8cWTEwCmgXhpiV gUz1fAxS6xjFA= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/19 00:50:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125360 Archived-At: > Sent: Thursday, November 19, 2020 at 5:49 AM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > * Christopher Dimech [2020-11-19 05:30]: > > I would like to use Eshell to call an alias 'cl' that does > > a 'cd' to a directory followed by an 'ls'. But I do not know > > how to achieve it. > > This is by using function instead of alias. > > (defun cll (&optional dir) > (cd dir) > (eshell/ls)) I have been thinking when one would need to use (require 'eshell) What is its use case? > I have tried with cl, but there is collision with system command cl. >