From unknown Sat Jun 21 09:55:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2103 <2103@debbugs.gnu.org> To: bug#2103 <2103@debbugs.gnu.org> Subject: Status: Bug in simple.el Reply-To: bug#2103 <2103@debbugs.gnu.org> Date: Sat, 21 Jun 2025 16:55:53 +0000 retitle 2103 Bug in simple.el reassign 2103 emacs submitter 2103 Sebastian Tennant severity 2103 normal thanks From geb-bug-gnu-emacs@m.gmane.org Wed Jan 28 23:04:48 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jan 2009 07:04:48 +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.0 required=4.0 tests=none autolearn=ham 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.13.8/8.13.8/Debian-3) with ESMTP id n0T74cmN001228 for ; Wed, 28 Jan 2009 23:04:40 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSQx4-0008VH-72 for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 02:04:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSQx2-0008Sr-Cy for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 02:04:36 -0500 Received: from [199.232.76.173] (port=51414 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSQx2-0008Sf-23 for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 02:04:36 -0500 Received: from main.gmane.org ([80.91.229.2]:47059 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSQx1-0004oH-I0 for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 02:04:35 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LSQwu-000337-KJ for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 07:04:28 +0000 Received: from vps203.linuxvps.org ([91.186.7.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 07:04:28 +0000 Received: from sebyte by vps203.linuxvps.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 07:04:28 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Sebastian Tennant Subject: Re: Bug in simple.el Date: Thu, 29 Jan 2009 07:06:22 +0000 Lines: 34 Message-ID: References: <63k0dk26.fsf@vps203.linuxvps.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: vps203.linuxvps.org X-Host: localhost User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:T1r0/tKM6YIaGxKNseh+3xw6Ur4= Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Hi Stefan, Returning to the bug list, in case others have opinions on the matter... Quoth Stefan Monnier : >> Apologies for contacting you off-list. I'm doing so just in case you'd >> given up on me. My penultimate email to the Emacs bug list was >> something of a rant! >> >> Since then I think I've found the perfect solution. A hook needs to be >> added to simple.el providing ^M handling and we don't need to change >> anything in shell-command. >> >> http://article.gmane.org/gmane.emacs.help/61630 > > Hooks are great for users, but for internal use they're usually > better avoided since we can change the code directly instead. But in this case, some users may not want ^M handling, so providing a hook gives users the choice, no? > E.g. in this case we want to change shell-command. I agree that given the command is called 'shell-command' it would make sense for ^M characters to be handled in shell-like way, i.e., no ^Ms, in which case perhaps we should provide a spearate command for users who _don't_ want ^M handling; 'unfiltered-shell-command' or something like that? Then again, adding a hook and leaving shell-command as it stands is the simplest option and has the advantage of not breaking anything, i.e., no backward compatibility issues. Seb From rgm@gnu.org Thu Jan 29 09:19:30 2009 Received: (at control) by emacsbugs.donarmstrong.com; 29 Jan 2009 17:19:31 +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=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0THJSGi027537 for ; Thu, 29 Jan 2009 09:19:29 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LSaWP-0005ym-C2; Thu, 29 Jan 2009 12:17:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18817.58553.291619.575915@fencepost.gnu.org> Date: Thu, 29 Jan 2009 12:17:45 -0500 From: Glenn Morris To: control Subject: control message severity 2008 minor tags 2013 moreinfo tags 2046 moreinfo merge 1973 2103 From unknown Sat Jun 21 09:55:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 26 Sep 2009 14:24:11 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator