From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4891: marked as done (23.1; shell-command overwrites whole buffer) Date: Sat, 14 Nov 2009 16:15:05 +0000 Message-ID: References: <871vk1hyv9.fsf@stupidchicken.com> <20091109111414.B55872414F@arctic.adamspiers.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1258215305-9520-0" X-Trace: ger.gmane.org 1258216084 19238 80.91.229.12 (14 Nov 2009 16:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 16:28:04 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 14 17:27:57 2009 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.50) id 1N9LTe-0001QZ-MB for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 17:27:56 +0100 Original-Received: from localhost ([127.0.0.1]:53425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9LTe-0002Jd-60 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 11:27:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9LTE-00027s-7S for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 11:27:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9LT8-00026J-Uw for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 11:27:27 -0500 Original-Received: from [199.232.76.173] (port=60491 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9LT8-000262-Jh for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 11:27:22 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47356) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N9LT7-0004Oj-SN for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2009 11:27:22 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAEGRJCA010582; Sat, 14 Nov 2009 08:27:20 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAEGF5En009562; Sat, 14 Nov 2009 08:15:05 -0800 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4891 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:32609 Archived-At: This is a multi-part message in MIME format... ------------=_1258215305-9520-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 14 Nov 2009 11:09:30 -0500 with message-id <871vk1hyv9.fsf@stupidchicken.com> and subject line Re: 23.1; shell-command overwrites whole buffer has caused the Emacs bug report #4891, regarding 23.1; shell-command overwrites whole buffer to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4891: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4891 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1258215305-9520-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 9 Nov 2009 11:14:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA9BEPXw000907 for ; Mon, 9 Nov 2009 03:14:26 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7SCW-0002eM-II for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 06:14:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7SCP-0002d7-PE for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 06:14:22 -0500 Received: from [199.232.76.173] (port=34356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7SCP-0002d4-EM for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 06:14:17 -0500 Received: from arctic.adamspiers.org ([212.13.194.176]:51756) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7SCO-0004Cx-WF for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2009 06:14:17 -0500 Received: from localhost (dsl-217-155-199-114.zen.co.uk [217.155.199.114]) by arctic.adamspiers.org (Postfix) with ESMTP id B55872414F for ; Mon, 9 Nov 2009 11:14:14 +0000 (UTC) From: Adam Spiers To: bug-gnu-emacs@gnu.org Subject: 23.1; shell-command overwrites whole buffer Message-Id: <20091109111414.B55872414F@arctic.adamspiers.org> Date: Mon, 9 Nov 2009 11:14:14 +0000 (UTC) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Starting emacs 23.1.1 with the '-q' argument and typing: M-: (shell-command "date" (get-buffer "*scratch*")) results in the prior contents of the *scratch* buffer being overwritten. This seems to contradict the last sentence in the following paragraph of the docstring for shell-command: The optional second argument output-buffer, if non-nil, says to put the output in some other buffer. If output-buffer is a buffer or buffer name, put the output there. If output-buffer is not a buffer and not nil, insert output in current buffer. (This cannot be done asynchronously.) In either case, the output is inserted after point (leaving mark after it). In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) of 2009-09-29 on x86-7.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10603901 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu ffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-: ( s h e l l - c o m m a n d SPC " d a t e " S-SPC ( g e t - b u f f e r SPC " * s c r a t c h * " ) ) C-x b M-x r e p o r Recent messages: Loading /usr/share/emacs/site-lisp/site-start.d/muse-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Mon Nov 9 10:38:11 GMT 2009 0 (#o0, #x0) Making completion list... ------------=_1258215305-9520-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4891-done) by emacsbugs.donarmstrong.com; 14 Nov 2009 16:09:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.2 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po24.its.yale.edu (pantheon-po24.its.yale.edu [130.132.50.118]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAEG9b0i009058 for <4891-done@emacsbugs.donarmstrong.com>; Sat, 14 Nov 2009 08:09:39 -0800 Received: from furry (adsl-99-58-202-243.dsl.wlfrct.sbcglobal.net [99.58.202.243]) (authenticated bits=0) by pantheon-po24.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nAEG9USc000613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 14 Nov 2009 11:09:30 -0500 Received: by furry (Postfix, from userid 1000) id 53FC1C071; Sat, 14 Nov 2009 11:09:30 -0500 (EST) From: Chong Yidong To: Adam Spiers Cc: 4891-done@emacsbugs.donarmstrong.com Subject: Re: 23.1; shell-command overwrites whole buffer Date: Sat, 14 Nov 2009 11:09:30 -0500 Message-ID: <871vk1hyv9.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > M-: (shell-command "date" (get-buffer "*scratch*")) > > results in the prior contents of the *scratch* buffer being > overwritten. This seems to contradict the last sentence in the > following paragraph of the docstring for shell-command: > > The optional second argument output-buffer, if non-nil, says to > put the output in some other buffer. If output-buffer is a buffer > or buffer name, put the output there. If output-buffer is not a > buffer and not nil, insert output in current buffer. (This cannot > be done asynchronously.) In either case, the output is inserted > after point (leaving mark after it). Thanks for the bug report. This is really a documentation bug, because shell-command has always erased the buffer since the first version of Emacs, and other code depends on this behavior. I've amended the docstring to mention that the buffer is erased. ------------=_1258215305-9520-0--