From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5618: 23.1.91; shell-command-on-region unexpectedly erases buffer Date: Fri, 26 Feb 2010 11:17:19 +0200 Organization: JURTA Message-ID: <87r5o8743c.fsf@mail.jurta.org> References: <20100222094413.GC21836@tomas> <20100224055829.GA9795@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267176244 5791 80.91.229.12 (26 Feb 2010 09:24:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2010 09:24:04 +0000 (UTC) Cc: 5618@debbugs.gnu.org, rfrancoise@debian.org To: tomas@tuxteam.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 10:23:59 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwQR-0003If-EG for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 10:23:59 +0100 Original-Received: from localhost ([127.0.0.1]:47158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkwQQ-00056L-Q3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 04:23:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkwPv-0004ri-Hw for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2010 04:23:27 -0500 Original-Received: from [140.186.70.92] (port=48951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkwPu-0004r3-0Z for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2010 04:23:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkwPr-0007ql-7H for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2010 04:23:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50338) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwPn-0007qP-HP for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2010 04:23:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NkwNa-0001xs-C1; Fri, 26 Feb 2010 04:21:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2010 09:21:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5618 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5618-submit@debbugs.gnu.org id=B5618.12671760387525 (code B ref 5618); Fri, 26 Feb 2010 09:21:02 +0000 Original-Received: (at 5618) by debbugs.gnu.org; 26 Feb 2010 09:20:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwNC-0001xF-31 for submit@debbugs.gnu.org; Fri, 26 Feb 2010 04:20:38 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwMx-0001wj-GB for 5618@debbugs.gnu.org; Fri, 26 Feb 2010 04:20:27 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.33.cable.starman.ee [82.131.30.33]) by mx2.starman.ee (Postfix) with ESMTP id 862523F40AB; Fri, 26 Feb 2010 11:20:14 +0200 (EET) In-Reply-To: <20100224055829.GA9795@tomas> (tomas@tuxteam.de's message of "Wed, 24 Feb 2010 06:58:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 26 Feb 2010 04:21:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35331 Archived-At: >> I'm not sure that the installed doc fix for that bug is actually >> correct. The suggestion in >> >> http://debbugs.gnu.org/4891#10 > > Except that in our case, even if it's the current buffer, the whole > content of the buffer is overwritten as well, rendering the above > mentioned doc fix incorrect: > > "If OUTPUT-BUFFER is not a buffer and not nil, > insert output in current buffer. (This cannot be done > asynchronously.) In the latter case, the output is inserted > after point (leaving mark after it)" > > Besides, the behaviour in the current documentation seems way more > useful (i.e. _not_ erasing the buffer whenever REPLACE is non-nil). > > What do you think? Are you sure that changing its long-time behaviour won't break some existing packages? >> seems correct to me. > > Half of it, yes, see above. -- Juri Linkov http://www.jurta.org/emacs/