bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#53302: 29.0.50; shell-command-on-region doesn't execute the command


From: Michael Albinus
Subject: bug#53302: 29.0.50; shell-command-on-region doesn't execute the command remotely
Date: Sun, 16 Jan 2022 13:49:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

Hi,

> If default-directory is a remote directory, shell-command (M-!) executes
> the command on the remote machine, but shell-command-on-region (M-|)
> executes it locally.
>
> This is more of a feature request rather than a bug report, but it might
> be nice if shell-command-on-region executed the command remotely as
> well.

Indeed, shell-command-on-region uses internally call-process-region,
which isn't aware of remote default-directory.

> Or perhaps, a new command called something like
> 'shell-command-on-region-file' could be added that executed the command
> remotely.

For consistency reasons, I prefer that shell-command-on-region behaves
like the other functions of this family, shell and shell-command.

> Thanks, best regards.

Best regards, Michael.





reply via email to

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