GNU bug report logs - #53302
29.0.50; shell-command-on-region doesn't execute the command remotely

Previous Next

Package: emacs;

Reported by: miha <at> kamnitnik.top

Date: Sun, 16 Jan 2022 12:19:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 29.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53302 in the body.
You can then email your comments to 53302 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#53302; Package emacs. (Sun, 16 Jan 2022 12:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to miha <at> kamnitnik.top:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Jan 2022 12:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: miha <at> kamnitnik.top
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; shell-command-on-region doesn't execute the command remotely
Date: Sun, 16 Jan 2022 13:24:43 +0100
[Message part 1 (text/plain, inline)]
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. Or perhaps, a new command called something like
'shell-command-on-region-file' could be added that executed the command
remotely.

Thanks, best regards.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53302; Package emacs. (Sun, 16 Jan 2022 12:50:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs <at> gnu.org>
Cc: 53302 <at> debbugs.gnu.org, miha <at> kamnitnik.top
Subject: Re: bug#53302: 29.0.50; shell-command-on-region doesn't execute the
 command remotely
Date: Sun, 16 Jan 2022 13:49:00 +0100
miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53302; Package emacs. (Sun, 16 Jan 2022 12:50:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Sun, 16 Jan 2022 12:50:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53302; Package emacs. (Fri, 21 Jan 2022 12:01:01 GMT) Full text and rfc822 format available.

Message #16 received at 53302 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 53302 <at> debbugs.gnu.org, miha <at> kamnitnik.top
Subject: Re: bug#53302: 29.0.50; shell-command-on-region doesn't execute the
 command remotely
Date: Fri, 21 Jan 2022 13:00:21 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

>> 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.

And I'd be surprised if shell-command-on-region did anything remotely --
I'm asking Emacs to work on something in the current buffer, which is
different from asking Emacs to execute a command in general (which is
what `M-!' does).

So I think everything here is working as designed, and I'm therefore
closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 21 Jan 2022 12:01:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 53302 <at> debbugs.gnu.org and miha <at> kamnitnik.top Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 21 Jan 2022 12:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Feb 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.