From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56406: [PATCH] Send region to the subshell specified by the current file interpreter Date: Wed, 06 Jul 2022 13:46:06 +0200 Message-ID: <87h73ujwg1.fsf@gnus.org> References: <87pmijjsi2.fsf@mssdvd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1146"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56406@debbugs.gnu.org To: Davide Masserut Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 06 13:50:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o93Xu-000AcK-97 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 13:50:18 +0200 Original-Received: from localhost ([::1]:49694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o93Xs-0007ga-Pa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 07:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o93Uk-0005JK-HM for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o93Uk-0007RD-7C for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o93Uk-0005Tj-4w for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2022 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56406 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56406-submit@debbugs.gnu.org id=B56406.165710797820984 (code B ref 56406); Wed, 06 Jul 2022 11:47:02 +0000 Original-Received: (at 56406) by debbugs.gnu.org; 6 Jul 2022 11:46:18 +0000 Original-Received: from localhost ([127.0.0.1]:52724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o93U2-0005SO-0f for submit@debbugs.gnu.org; Wed, 06 Jul 2022 07:46:18 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:54182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o93U0-0005S8-2C for 56406@debbugs.gnu.org; Wed, 06 Jul 2022 07:46:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=LzzQUPTzAzXpOettlSSkFpMlNbi6QfAGqBSuahCTFR0=; b=dILjOLaCsQtfBQ3M1FU7Y6mbGF CiLn98V5MFP0yBkFWVXAefpBdXXj1Km3Wz+aOObFnmM/USY613jnb471K1RBAO//RygT8HDdZ497u sPIEJ4a42DXF3Q7AUo3m3U8Iab7wflL4zxNFu5dSpzS79Xvc/PBeLllGYksDvBtp9BtQ=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o93Tr-0004rR-BY; Wed, 06 Jul 2022 13:46:10 +0200 In-Reply-To: <87pmijjsi2.fsf@mssdvd.com> (Davide Masserut's message of "Tue, 05 Jul 2022 20:59:01 +0200") X-Now-Playing: Laurie Anderson's _Mister Heartbreak_: "Sharkey's Day" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236222 Archived-At: Davide Masserut writes: > This patch makes sh-execute-region to send the region to the subshell > specified by the current file interpreter. > > Without it Emacs would run the region using the default user shell which > is probably not what you would expect if you are editing scripts made > for other shells. Makes sense to me; pushed to Emacs 29. > BTW it is nice to edit code older than me =F0=9F=98=80. =F0=9F=98=84 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no