From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#74207: [PATCH] make-mode: Add the missing GNU Make functions Date: Mon, 4 Nov 2024 23:33:09 +0100 Message-ID: <20241104223309.1504335-1-ola.nilsson@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37028"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ola Nilsson To: 74207@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 04 23:39:29 2024 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 1t85jM-0009Ss-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Nov 2024 23:39:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t85j2-00073T-HW; Mon, 04 Nov 2024 17:39:08 -0500 Original-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 1t85j0-00072I-RW for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 17:39:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t85ix-0005bQ-33 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 17:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=P1FleFji2UUHUHx35oWvVoapiUVmbVpTAEADCrTZCgs=; b=nbY29oRP7uDeUNHKbPyJMRxAQzOL8xXjjSwpv3B7EIgV5ZVjdp5oUCtnH8i59POyh21DqpYHszHBpb8lGGAUmn5V30sKdG3SDBFQ+elPAHdIXK7PMUCYVNFCJyo/sJJPf9dRnfBpdR7guzGKeZcA8Q6csItkKtLY2WKilrgJtmbnMqNCAXfdvVwLFAPEzwK1Klo307kZ4R5f9xkyDutnmOfg1RZr4b7OdBdw8HPllrhRyI2yCPjP5Z36hpwSmS7FlM4djewS1FQCb014f5QmsySWrp1yqxaXZyqSAKQK9iXrKyyOIRd1VjFTYRjKnXZljv3YyCdgBBExktzcBoZ2Hw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t85iw-00041D-Kp for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 17:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2024 22:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74207 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.173075991215433 (code B ref -1); Mon, 04 Nov 2024 22:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2024 22:38:32 +0000 Original-Received: from localhost ([127.0.0.1]:42793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t85iS-00040q-7J for submit@debbugs.gnu.org; Mon, 04 Nov 2024 17:38:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t85iP-00040j-EA for submit@debbugs.gnu.org; Mon, 04 Nov 2024 17:38:30 -0500 Original-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 1t85iP-0006o7-6n for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 17:38:29 -0500 Original-Received: from mail-vi1eur05on20623.outbound.protection.outlook.com ([2a01:111:f403:2613::623] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t85iN-0005Zk-Jd for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 17:38:28 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HJwqDp822QiChWZcvxo/H/h1Maat48K05mBGJ/TlaSeY6w43fdW6kvgKB1m04odxR6Evxf6+aBIy3OGq4ymhqkDU6mnNcks0+oyxG1JEdx8d/zMjX6Cl9htyxDEkueKX56l4R5FxsIi2qb33ll7Ppck1n6UJkuT/43q7Rz0U8yHGyz3Opw4Scc93IxqlDvDXmcPRrLzf145M+D7HMUhSGLWi3e9Z0kcUZjXfjeOuUdomLbSxkdB1U+FlZHc2Rr3Te50RT6EpvIyL1QQfLXeAmprKnnYS/u2jBgfX+cIvUU4VHcPUQRCGO56fnoOu6mchMc4+4vPEgh6zTR+7TxcQaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P1FleFji2UUHUHx35oWvVoapiUVmbVpTAEADCrTZCgs=; b=ej1T6WNRsVjJ+EImD1SF1+v7AY0toUIOYEDh+4wd+mQA+S93dXd4IwB6faEQk/zpkEUmfC5O+r9NwxYmRo+2R68DNwkpJlVSX7uDTOZNn1+SUDh5HyhrAcMKTnULRv8hwTzisbqZZtBSo/3ZY3k0pda3aPqiPTeNmqunRq1MZvz1g8a6UJtDDPfs9W3cvIT9hcy8ssj8pVwXvKp3tD7unW2SgRf6yaLSuUYYWPr5pqlAJz8tRN2Sf8JQjGyCbDnA4Q0sVsadjAiVn01D3POqg7AOJbsm1L+9gbXXi1K0KqAm3kaNjDlRqKaPBtnHN3JwWakHYmiNf1yFWIzEP+M5UQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 195.60.68.100) smtp.rcpttodomain=gmail.com smtp.mailfrom=gmail.com; dmarc=fail (p=none sp=quarantine pct=100) action=none header.from=gmail.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis365.onmicrosoft.com; s=selector2-axis365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P1FleFji2UUHUHx35oWvVoapiUVmbVpTAEADCrTZCgs=; b=lOn1XhbYATWX9EjFrL1Bjdkm5kC0Sp44CfGUwn47lDxCKaTHEPrLXXOgrHttTDo8+xbHG1LyjxYg3sZckDnV2ZNOvDn2MAqNBkUreA7Ms9YNjx8S4XI8ib/LHrm2isP0e6YAu9D9ie9+y2oRj1zpUESRldjY7eriKA7BVJPvp64= Original-Received: from AS4P190CA0042.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::19) by GV1PR02MB10662.eurprd02.prod.outlook.com (2603:10a6:150:16a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Mon, 4 Nov 2024 22:33:19 +0000 Original-Received: from AM1PEPF000252DF.eurprd07.prod.outlook.com (2603:10a6:20b:5d1:cafe::e8) by AS4P190CA0042.outlook.office365.com (2603:10a6:20b:5d1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30 via Frontend Transport; Mon, 4 Nov 2024 22:33:19 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 195.60.68.100) smtp.mailfrom=gmail.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 195.60.68.100 as permitted sender) Original-Received: from mail.axis.com (195.60.68.100) by AM1PEPF000252DF.mail.protection.outlook.com (10.167.16.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Mon, 4 Nov 2024 22:33:18 +0000 Original-Received: from se-mail02w.axis.com (10.20.40.8) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 4 Nov 2024 23:33:18 +0100 Original-Received: from se-intmail01x.se.axis.com (10.4.0.28) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 4 Nov 2024 23:33:18 +0100 Original-Received: from lap5cg80647hz.axis.com (unknown [10.224.138.231]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 318F647B; Mon, 4 Nov 2024 23:33:18 +0100 (CET) X-Mailer: git-send-email 2.45.2 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM1PEPF000252DF:EE_|GV1PR02MB10662:EE_ X-MS-Office365-Filtering-Correlation-Id: b0ade38a-3939-4d91-8aa6-08dcfd20ae9e X-MS-Exchange-SenderADCheck: 2 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35950700016|376014|7093399012|48200799018|61400799027; X-Microsoft-Antispam-Message-Info: 39YDnMnDuv88/BpGaOmx76KLjLYE2I4YB1OrrOjsXd6/wesET9y+uR02nfS/2K0rgZWdd0MAOusTDbY2NhIUQJYUQDCs+VJWcFcxQ4mbdfVeg2g3G+/xAV7WMgrKHtXuzS2Tf0DTXzgpDepuv61ifBWqibneMUPTksW7kuItgoIHbGhScg3U2Z1L9W3g830HH+jC5OegPN3vZyfCoFS9R+OGhBOt4U9pdb4Dcw7JpuElI0WF1u9C4RqKOeUd07jVO3S81lgFGb99rUygjTys0atD/cZJPfHuWuiY3ryR66Z/4SmNHSn4petEuHjl4Z1CmYc/4yBVRZTGd2aE4g+MXToDlWXxkfElTOWJyPPD0p8k9F1C/o4B2flnQWR/guoF7AxxIS8twbtU4xVKFeU+hd2Hw7HPhN3Qz2w3fS/xsNEk33ybNzKv/ta7acNBbCJgdZseOIejrOMOJ56zmgereqbi3qHmV54/apDY3NJvkOl23WGXes4ywxFpPMqdVwevN6kZQ/b0CtEFCGrtUuDmyaHfi1F/oFxb6HBOt57QFvvOskwSwiWe0kXIZzYKFzUPCl3D29+5nFvvvUrehHAZkqS0oDq2RlCc/o0v+MaFjdjSE6BBx4tO/lo2+oH41xsBxDQp5RHA81BgXPY4H2JgLVTpmIOGQ/k5HGdt4XGI2LAC2bgAv6IwSpbpcs1tfQR/JunIINZbOcfidiIMCOVRlSbhYk+4/q5F70O1BPNAV2tDe7NLMQcTYslK2kiUm qYjlxyVeD3axMjezIvqlriO4mnUx8ZmsCsm9mnjo5IYuu1Mm1LCjVnE7f0Lm2U2lXuyONrPl1YEIGG+3chikKBcTVvrOxs/I4r X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(35950700016)(376014)(7093399012)(48200799018)(61400799027); DIR:OUT; SFP:1101; X-OriginatorOrg: axis365.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2024 22:33:18.9705 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0ade38a-3939-4d91-8aa6-08dcfd20ae9e X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM1PEPF000252DF.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR02MB10662 Received-SPF: pass client-ip=2a01:111:f403:2613::623; envelope-from=bounces+SRS=/sfVx=R7@axis365.onmicrosoft.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294887 Archived-At: From: Ola Nilsson Add and reorder functions according to The GNU Make Manual 0.75 for GNU make 4.3. * lisp/progmodes/make-mode.el (makefile-gnumake-functions-alist): Add missing GNU make functions --- lisp/progmodes/make-mode.el | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 60b87142850..5441903738d 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -704,7 +704,7 @@ makefile-mode-hook ;; Each "ARG" is used as a prompt for a required argument. (defconst makefile-gnumake-functions-alist '( - ;; Text functions + ;; Functions for String Substitution and Analysis ("subst" "From" "To" "In") ("patsubst" "Pattern" "Replacement" "In") ("strip" "Text") @@ -712,22 +712,42 @@ makefile-gnumake-functions-alist ("filter" "Pattern" "Text") ("filter-out" "Pattern" "Text") ("sort" "List") - ;; Filename functions + ("word" "Index" "Text") + ("wordlist" "S" "E" "Text") + ("words" "Text") + ("firstword" "Text") + ("lastword" "Names") + ;; Functions for File Names ("dir" "Names") ("notdir" "Names") ("suffix" "Names") ("basename" "Names") - ("addprefix" "Prefix" "Names") ("addsuffix" "Suffix" "Names") + ("addprefix" "Prefix" "Names") ("join" "List 1" "List 2") - ("word" "Index" "Text") - ("words" "Text") - ("firstword" "Text") ("wildcard" "Pattern") + ("realpath" "Names") + ("abspath" "Names") + ;; Functions for Conditionals + ("if" "Condition" "Then-part" "Else-part") + ("or" "Condition 1" "Condition 2" "Condition 3" "Condition 4") + ("and" "Condition 1" "Condition 2" "Condition 3" "Condition 4") ;; Misc functions ("foreach" "Variable" "List" "Text") + ("file" "Op" "Filename" "Text") + ("call" "Variable" "Param 1" "Param 2" "Param 3" "Param 4" "Param 5") + ("value" "Variable") + ("eval" "statement") ("origin" "Variable") - ("shell" "Command"))) + ("flavor" "Variable") + ("shell" "Command") + ("guile" "Program") + ;; Functions that control make + ("error" "Text") + ("warning" "Text") + ("info" "Text") + ) + "Alist of GNU Make functions and their arguments.") ;;; ------------------------------------------------------------ -- 2.45.2