all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: `shell-command-on-region' behaviour changed
Date: Tue, 06 Apr 2010 14:50:35 +0100	[thread overview]
Message-ID: <xbai7hoky9jo.fsf@cam.ac.uk> (raw)

Hello all,

I have noticed blank *Shell Command Output* buffer appears frequently
for quite a while. I keep deleting it since it appears in almost every
buffer switching in ido.

This is due to shell-command-on-region no longer respects its
well-documented and established behaviour of deleting that output buffer
when there's no output. The document still says so by the way.

I think the documented behaviour is better.

`shell-command-on-region' and `shell-command' have more noninteractive
uses than interactive ones. Many emacs packages authors rely on this
behaviour by ignoring the output-buffer arg to shell-command. Due to
this change packages like dired (its dired-do-shell-command) starts
leaving a blank buffer. And the doc string already says *Shell Command
Output* is shared if output buffer is unspecified.

I am unclear about what use case the changed behaviour tries to cover.
But the change will be better if it only affects non-programming use of
shell-command/shell-command-on-region, i.e. by using a different
output-buffer for interactive use.

I only use M-! or M-| for simple shell scripting and I am only
interested in the output for that moment at least for 99% of the cases.

Leo





                 reply	other threads:[~2010-04-06 13:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=xbai7hoky9jo.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --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.