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

From: Leo <[email-masked]>
Date: Wed, 13 Jun 2012 13:16:14 +0800

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.

Leo