GNU bug report logs - #5618
23.1.91; shell-command-on-region unexpectedly erases buffer

Previous Next

Package: emacs;

Reported by: tomas <at> tuxteam.de

Date: Mon, 22 Feb 2010 12:13:01 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> jurta.org>
To: tomas <at> tuxteam.de
Cc: 5618 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>, rfrancoise <at> debian.org
Subject: Re: bug#5618: 23.1.91;
	shell-command-on-region unexpectedly erases buffer
Date: Fri, 26 Feb 2010 11:17:19 +0200
>> 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/




This bug report was last modified 3 years and 194 days ago.

Previous Next


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