From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] shell-command and whitespace Date: Mon, 26 Jan 2015 07:29:44 +0100 Organization: Linux Private Site Message-ID: <87a9166omf.fsf@Rainer.invalid> References: <54C5905C.2030501@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422253806 13106 80.91.229.3 (26 Jan 2015 06:30:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 06:30:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 26 07:30:05 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFdBU-0001tw-QU for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 07:30:04 +0100 Original-Received: from localhost ([::1]:40146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFdBT-0008BW-Ui for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 01:30:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFdBQ-0008BB-2M for emacs-devel@gnu.org; Mon, 26 Jan 2015 01:30:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFdBK-0007jC-U8 for emacs-devel@gnu.org; Mon, 26 Jan 2015 01:29:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFdBK-0007h2-NY for emacs-devel@gnu.org; Mon, 26 Jan 2015 01:29:54 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YFdBG-0001gI-Ce for emacs-devel@gnu.org; Mon, 26 Jan 2015 07:29:50 +0100 Original-Received: from p4ff1c932.dip0.t-ipconnect.de ([79.241.201.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jan 2015 07:29:50 +0100 Original-Received: from Stromeko by p4ff1c932.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jan 2015 07:29:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4ff1c932.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:UyFcqVYBvFph4SboV3keWADe9CM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181777 Archived-At: Daniel Colascione writes: > C-u M-! inserts the output of a shell command in the current buffer. > That's great, but this output includes the terminating newline that > almost all shell commands produce, and I almost never want that newline, > or any other whitespace. > > How about this patch, which makes shell-command strip whitespace by > default when called interactively? How about you keep the behaviour as is and have double prefix strip the whitespace instead? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada