Subject: Re: bug#11691: 24.1; shell-command-on-region leaves region marked

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 01 Jun 2021 10:24:24 +0200

Leo <[email-masked]> writes:

> 1. save the attached bug.el and b.txt file
> 2. emacs -q -l bug.el
> 3. In a terminal open b.txt by running: emacsclient -n b.txt
>
> You should the whole buffer marked as shown in this screenshot.
>
>
> It is caused by push-mark and exchange-point-and-mark in
> shell-command-on-region.

I totally misunderstood what "it" was here -- the subject says it.  And
emacsclient does not have to be involved to reproduce it: It works fine
by just visiting the file normally.

I've now fixed this issue in Emacs 28.

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