From unknown Fri Aug 15 20:47:35 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#64251 <64251@debbugs.gnu.org> To: bug#64251 <64251@debbugs.gnu.org> Subject: Status: [PATCH] Recognize PKGBUILD as bash style Reply-To: bug#64251 <64251@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:47:35 +0000 retitle 64251 [PATCH] Recognize PKGBUILD as bash style reassign 64251 emacs submitter 64251 Davide Masserut severity 64251 normal tag 64251 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 23 10:07:09 2023 Received: (at submit) by debbugs.gnu.org; 23 Jun 2023 14:07:09 +0000 Received: from localhost ([127.0.0.1]:39282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qChRM-000838-NA for submit@debbugs.gnu.org; Fri, 23 Jun 2023 10:07:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:51464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qChRH-00082w-TG for submit@debbugs.gnu.org; Fri, 23 Jun 2023 10:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qChRH-0002oD-DP for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 10:07:03 -0400 Received: from out-7.mta0.migadu.com ([91.218.175.7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qChRE-00085M-Cy for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 10:07:03 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mssdvd.com; s=key1; t=1687529215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/g8FnYtVYP+rfAPFk1925TrmaXcaZcbRO/lQzpJRlHQ=; b=Lq5yoKdndjRuohKJ4Xo44TUBaEOSSzTtkqPjGgTBvyNPxBzOs0iN6ecay4lCYGiEJYMWIV FGAeXnvzeE3t9SRr+pCV8mK4BKjon5hwW5/vaJhn6C6ogZPgV/0W1wOAz7L1wKyps6QvPH Oc9XmX/Yhn9jTd9aK1ZPUL3ByeQPkNs7PpAEgKpc1VgAAfSsJmLJlrNWM6VFUufIEt368+ HE4NaMYnOyUDaaRDDH95Us8BYocXxjfNcs4G2uIFq9nfobN8coecNSjBKoaOeaHtjUK240 GDn/laUidttAWNwiwQ3tXegdXBxmu7GGYWpxqKG7z49rhfrByxHcNBYqFBHFUg== From: Davide Masserut To: bug-gnu-emacs@gnu.org Subject: [PATCH] Recognize PKGBUILD as bash style Date: Fri, 23 Jun 2023 15:46:03 +0200 Message-ID: <87mt0qtgqt.fsf@mssdvd.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.7; envelope-from=dm@mssdvd.com; helo=out-7.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; format=flowed Tags: patch Arch Linux PKGBUILDs are Bash files [1], this patch adds detection to sh-mode. [1]: https://wiki.archlinux.org/title/Creating_packages#Creating_a_PKGBUILD In GNU Emacs 30.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-21 built on T480s Repository revision: 17e16f78596d895d6aca52d96b1caf9e82f7598b Repository branch: master System Description: Arch Linux Configured using: 'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --localstatedir=/var --with-pgtk --with-native-compilation 'CFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/davide/src/emacs-mssdvd-git/src=/usr/src/debug/emacs-mssdvd-git' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Recognize-PKGBUILD-as-bash-style.patch >From ca838aaabbfefb042e0d7a324708b546022e3ccf Mon Sep 17 00:00:00 2001 From: Davide Masserut Date: Tue, 20 Jun 2023 15:55:11 +0200 Subject: [PATCH] Recognize PKGBUILD as bash style * lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD. --- lisp/progmodes/sh-script.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 6beff9f41e9..a305c35c5f8 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1489,6 +1489,7 @@ sh--guess-shell ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh") ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") + ((equal (file-name-nondirectory buffer-file-name) "PKGBUILD") "bash") (t sh-shell-file))) ;;;###autoload -- 2.41.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 04:28:39 2023 Received: (at 64251-done) by debbugs.gnu.org; 1 Jul 2023 08:28:39 +0000 Received: from localhost ([127.0.0.1]:56508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFVyB-0005Lr-AI for submit@debbugs.gnu.org; Sat, 01 Jul 2023 04:28:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFVy9-0005Ld-PB for 64251-done@debbugs.gnu.org; Sat, 01 Jul 2023 04:28:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFVy3-0006Ew-Vo; Sat, 01 Jul 2023 04:28:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=J+WL+L5izokEJRtBz7+5wKe1I24aSeiAmDgM7UjRdF8=; b=DFg7CAbrzggT G1/b3cvMIT0LtjNRhLTUkHrCsJ4hzFMqBtNqRJvBUzBEDzAmSoP/eNXVnJSIveUMyTGELkviJEn/B qchGWkk2I9SIyzbOKXbem3osFM3MaOKB5vleInoEqqRS/zkl7hjiMUG/2ND/4Yhqa7WOiiZToojSH j3ECI4S2gU3rBUTOkeOA2JIqfi6V2sDamgt91xQTL8mC+pcdoTBYCaDhmb3qszYN4NKosdIj+6vj8 +cTEpL/fMzMm3gQXFvmPtyUxkoPkI2gCFBxfzOlwfdfShUOpaBCFA2r8woZYh2atJqosh0hlMMwW/ LBEcuL1fwytYfaXme13Pcw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFVy2-000766-I5; Sat, 01 Jul 2023 04:28:31 -0400 Date: Sat, 01 Jul 2023 11:29:02 +0300 Message-Id: <83pm5cqbld.fsf@gnu.org> From: Eli Zaretskii To: Davide Masserut In-Reply-To: <87mt0qtgqt.fsf@mssdvd.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#64251: [PATCH] Recognize PKGBUILD as bash style References: <87mt0qtgqt.fsf@mssdvd.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64251-done Cc: 64251-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 23 Jun 2023 15:46:03 +0200 > From: Davide Masserut via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Arch Linux PKGBUILDs are Bash files [1], this patch adds detection > to sh-mode. Thanks, installed on the master branch, and closing the bug. From unknown Fri Aug 15 20:47:35 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, 29 Jul 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator