From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-devel@gnu.org
Subject: Re: [PATCH] shell-command and whitespace
Date: Mon, 26 Jan 2015 07:29:44 +0100 [thread overview]
Message-ID: <87a9166omf.fsf@Rainer.invalid> (raw)
In-Reply-To: 54C5905C.2030501@dancol.org
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
next prev parent reply other threads:[~2015-01-26 6:29 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 [this message]
2015-02-16 21:40 ` Daniel Colascione
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9166omf.fsf@Rainer.invalid \
--to=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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.