From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.devel Subject: [ELPA] New package: shell-command+ Date: Fri, 25 Sep 2020 14:56:18 +0200 Message-ID: <8736362ex9.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29757"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 25 14:58:41 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kLnJB-0007bt-2x for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Sep 2020 14:58:41 +0200 Original-Received: from localhost ([::1]:59974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLnJA-0001Df-3w for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Sep 2020 08:58:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLnH0-0005VK-4u for emacs-devel@gnu.org; Fri, 25 Sep 2020 08:56:26 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:37450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLnGx-0001zG-D1 for emacs-devel@gnu.org; Fri, 25 Sep 2020 08:56:25 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id EFA5E16005C for ; Fri, 25 Sep 2020 14:56:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601038580; bh=O4VCurqZwWq9VxqYU6eypdgb6bNqnzaUB1qHPMma9Jw=; h=From:To:Subject:Date:From; b=hoERch5o3GCZJyucLMjFZWnlaRrmMJs8CjDNiCivMoStYpb8TwAtQSswdACfAxaT4 UvTMvcfu9jQ/bxG2uBF5BXBd+3T8sfu8AsTiFjDE8D3cfFIoyB3HumAL2HeK9LFX2g XILwOO5z6/H1I3HhA7X3NuGA8R93pyrhMG1m6+DQl1eqC2jSeY2rJLF4EkrW//M3F7 +LouDlBJLG20QIqLkwhB70qPflj9jf/46qXtYT/L66EalYcTLihN8D6r1Yh6nQkPVQ t4YkhiHLczgbtyAnfYitYNbRuV03axzMXRy/LtI9Jyvb1SiZPhvJneR9+brCq840cb y+PyrpELjp4QA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ByX3R311rz6tmj for ; Fri, 25 Sep 2020 14:56:19 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 08:56:20 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256421 Archived-At: [ I tried to send this message yesterday already, but for some reason it never appeared in the archive. I'm assuming the fault was on my side, so I'm resending it again. ] Hi, I wanted to submit this package I wrote a while ago. It provides an interactive command named "shell-command+", that is used in the same way as one uses shell-command. The difference is that shell-command+ pre-processes the user-input, before passing it to shell-command or related functions. I think what it does is best explained by the examples given in the commentary section: > wc -l Count all lines in a buffer, and display the result in the minibuffer. .. < ls -l Replace the current region (or buffer in no region is selected) with a directory listing of the parent directory. | tr -d a-z Delete all instances of the charachters a, b, c, ..., z, in the selected region (or buffer, if no region was selected). ... make Run Eshell's make (i.e. `compile') in the parent's parent directory. I have previously submitted the package under the name "bang" to MELPA[0], but have since decided that the name isn't expressive and could therefore confuse users. This version also includes a few improvements that I have not yet added to bang. It should also be noted, that the file is currently licensed under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication[1] license, which I'm not sure if it is OK. [0] https://melpa.org/#/bang [1] https://creativecommons.org/publicdomain/zero/1.0/ -- Philip K.