GNU bug report logs - #11691
24.1; shell-command-on-region leaves region marked

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Wed, 13 Jun 2012 05:20:02 UTC

Severity: minor

Found in version 24.1

Fixed in version 28.1

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 11691 in the body.
You can then email your comments to 11691 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#11691; Package emacs. (Wed, 13 Jun 2012 05:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 13 Jun 2012 05:20:02 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; shell-command-on-region leaves region marked
Date: Wed, 13 Jun 2012 13:16:14 +0800
[Message part 1 (text/plain, inline)]
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.

[scor.png (image/png, attachment)]
[Message part 3 (text/plain, inline)]
It is caused by push-mark and exchange-point-and-mark in
shell-command-on-region.

Leo

[bug.el (application/emacs-lisp, attachment)]
[b.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11691; Package emacs. (Sat, 17 Aug 2019 22:29:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 11691 <at> debbugs.gnu.org
Subject: Re: bug#11691: 24.1; shell-command-on-region leaves region marked
Date: Sat, 17 Aug 2019 15:28:51 -0700
Leo <sdl.web <at> gmail.com> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11691; Package emacs. (Tue, 01 Jun 2021 08:25:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 11691 <at> debbugs.gnu.org
Subject: Re: bug#11691: 24.1; shell-command-on-region leaves region marked
Date: Tue, 01 Jun 2021 10:24:24 +0200
Leo <sdl.web <at> gmail.com> 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




bug marked as fixed in version 28.1, send any further explanations to 11691 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 01 Jun 2021 08:25: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. (Tue, 29 Jun 2021 11:24:09 GMT) Full text and rfc822 format available.

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

Previous Next


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