unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: Achim Gratz <Stromeko@nexgo.de>, emacs-devel@gnu.org
Subject: Re: [PATCH] shell-command and whitespace
Date: Mon, 16 Feb 2015 13:40:48 -0800	[thread overview]
Message-ID: <54E263E0.403@dancol.org> (raw)
In-Reply-To: <87a9166omf.fsf@Rainer.invalid>

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-02-16 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26  0:54 [PATCH] shell-command and whitespace Daniel Colascione
2015-01-26  6:29 ` Achim Gratz
2015-02-16 21:40   ` Daniel Colascione [this message]
2015-02-18  8:45     ` Achim Gratz
2015-02-18 17:04       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54E263E0.403@dancol.org \
    --to=dancol@dancol.org \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).