emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] shell-command and whitespace


From: Daniel Colascione
Subject: Re: [PATCH] shell-command and whitespace
Date: Mon, 16 Feb 2015 13:40:48 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 01/25/2015 10:29 PM, Achim Gratz wrote:
> 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?

Most of the time, I want to strip whitespace, and whitespace stripping
is how $() works in the shell.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]