From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.bugs Subject: bug#5618: 23.1.91; shell-command-on-region unexpectedly erases buffer Date: Wed, 24 Feb 2010 06:58:29 +0100 Message-ID: <20100224055829.GA9795@tomas> References: <20100222094413.GC21836@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1266992630 27541 80.91.229.12 (24 Feb 2010 06:23:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 06:23:50 +0000 (UTC) Cc: 5618@debbugs.gnu.org, rfrancoise@debian.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 07:23:45 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 1NkAev-0000qL-F5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 07:23:45 +0100 Original-Received: from localhost ([127.0.0.1]:48343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkAeu-0005CF-Ns for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 01:23:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkAeQ-00055O-DW for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 01:23:14 -0500 Original-Received: from [140.186.70.92] (port=37841 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkAeO-00054i-IZ for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 01:23:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkAeN-0000zc-Of for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 01:23:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60144) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkAeN-0000zX-N9 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 01:23:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NkAG1-0006Jz-M4; Wed, 24 Feb 2010 00:58:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: tomas@tuxteam.de Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2010 05:58:01 +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.126699103024276 (code B ref 5618); Wed, 24 Feb 2010 05:58:01 +0000 Original-Received: (at 5618) by debbugs.gnu.org; 24 Feb 2010 05:57:10 +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 1NkAFB-0006JU-JP for submit@debbugs.gnu.org; Wed, 24 Feb 2010 00:57:09 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104] helo=www.elogos.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkAF8-0006Iw-OU for 5618@debbugs.gnu.org; Wed, 24 Feb 2010 00:57:07 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 60295900A2; Wed, 24 Feb 2010 06:58:29 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 24 Feb 2010 00:58:01 -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:35261 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks, Glenn for looking into it. On Tue, Feb 23, 2010 at 01:08:37PM -0500, Glenn Morris wrote: > tomas@tuxteam.de wrote: >=20 > > The whole content of the buffer gets replaced by output of > > command. According to the doc, I'd expect the ouput to be inserted > > before point. >=20 > I guess this is a documentation bug, in the same way as was >=20 > http://debbugs.gnu.org/4891 Yes, I think it's the same "bug". Now if I knew how to merge that... > I'm not sure that the installed doc fix for that bug is actually > correct. The suggestion in >=20 > 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? > seems correct to me. Half of it, yes, see above. Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLhMAFBcgs9XrR2kYRAghcAJ97B90JiuOcu8Ck+Yt0iCPtRQcw1gCePIY8 XYLgohnxDDQjrsn1OPJf6mY=3D =3D4Z+h -----END PGP SIGNATURE-----