From: Juri Linkov <juri@linkov.net>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] shell-command and whitespace
Date: Wed, 18 Feb 2015 19:04:51 +0200 [thread overview]
Message-ID: <87d257dubw.fsf@mail.linkov.net> (raw)
In-Reply-To: <87oaor1uc1.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 18 Feb 2015 09:45:34 +0100")
>>>> 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.
>
> That may well be, but I mostly don't want this command to strip
> whitespace as has been the default for many years. So instead of
> redefining what it does I again suggest you add that functionality.
> From a usability point of view double prefix is almost as good as a
> single prefix and you're free to provide customization to reverse the
> meaning of the two. But please keep the default what it was.
I noticed that most of the time, the final newline needs to be
removed when output is a single line, but needs to be preserved
when output is multi-line.
prev parent reply other threads:[~2015-02-18 17:04 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
2015-02-18 8:45 ` Achim Gratz
2015-02-18 17:04 ` Juri Linkov [this message]
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=87d257dubw.fsf@mail.linkov.net \
--to=juri@linkov.net \
--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).