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

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 17 Aug 2019 15:28:51 -0700

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.

I can confirm that that is the case.

> It is caused by push-mark and exchange-point-and-mark in
> shell-command-on-region.
>
> Leo
>
> (setq format-alist
>       '((rot13 "rot13" "abc" "tr a-mn-z n-za-m" "tr a-mn-z n-za-m" t nil)))
> (setq server-use-tcp t)
> (server-start)

But...  this happens because you set `format-alist' to this rather
curious value?  Without this `format-alist' setting, things work as
expected.

So I'm not sure whether this is a bug or an expected result.  Anybody?

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