From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AKt1BwCreGfydwAAe85BDQ:P1 (envelope-from ) for ; Sat, 04 Jan 2025 03:29:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AKt1BwCreGfydwAAe85BDQ (envelope-from ) for ; Sat, 04 Jan 2025 04:29:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cTuuKKrY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735961344; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sPXMyM7giVacksO/nj7wCgCG/VnZ+sLbRhD3dO5jhx0=; b=sqwJFaAO2Jfk7CmiwCv5v8YydQn4u9cJv6zQbL8ZOE0IQwNECNZsAMHx9uizjZ+a54VJBD /HhjUHIxLzUtclZQqioZ0kcYnrlRc/2R60Do4Qr/TnFRyaYFQtHLIOJW3D7+//MZ0ZktHc 3iqCcmYl01BmgKjiqIgOSlaaNWdCoyE1MM6yVL0KrZ7WSZynrvehdBsP/Zl8rJwztBjRU6 hURi6B1vhsXcisxtHM7oOPq56t3Jp0a7p9gJNkNsiDsI3rh/CevFt32WV1QAAIxNt+S3Xr 5oHKw+RjklOjIf2Gv12dujClppdo3UT1zyR1qqL9MuQc1Y4D921HruITug889g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cTuuKKrY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735961344; a=rsa-sha256; cv=none; b=qPJUFyCINgME4GRb/rAn2/ACWPiAgPHWZKqX3JxEGx2I4cvCPy2DRxgvEteKWOQoW6bAUB dcauHtL7ilIvRIAfHg1b214g6IJ69LUnuzITe2bLgmvn7Z1UzLwvlzFrlrXKCxzOkzbjE+ ijDAp9IH4zlIvZN5FRNmesEdMDuQhn0ZK/4v7ZzczmvelsVaF+6ppBhs1VDQ1qcGH16QKi v21DoAgggq5oJll4P60oms0Pqqdv7DyCEHa28zm3kDASyxCikFA+tfAEwjgRrrJgACVZ8t VTSrj9mFRo2CCa6c9C7s1vCN65CeJoF/xnQ5iZjlyP5fswZgJfNkIyz9cu/Blw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CE5FE87854 for ; Sat, 04 Jan 2025 04:29:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTupl-0004wJ-RJ; Fri, 03 Jan 2025 22:28:17 -0500 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 1tTupg-0004uw-6V for emacs-orgmode@gnu.org; Fri, 03 Jan 2025 22:28:13 -0500 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTupd-0004nQ-Sh for emacs-orgmode@gnu.org; Fri, 03 Jan 2025 22:28:11 -0500 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-46783d44db0so121043851cf.1 for ; Fri, 03 Jan 2025 19:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735961288; x=1736566088; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sPXMyM7giVacksO/nj7wCgCG/VnZ+sLbRhD3dO5jhx0=; b=cTuuKKrYrkcBx45TPjPtSqPb8FSJHhopzux2RGoLzL3NGKYcHQwFFzZuOEgUPZjmIJ v9pa/J7UmrJX+aARuSYffPaZSW+NXv19w+inJsMwUUgsIFHXQVZjB5XNyHTM3erY3iMI o75wbD5234xTHApAy1poIKzs8t2n80mRpPml2kx7Y0oUSFEVx20ui8ariYTS0i5fGSpz WrGUphJKsVIzjr1xsGEMoDVyM075IdMNUY2WRb5jJekdvQ0opaxy1KEbtePlopcCKms4 tmkiV2i5R/svhjYxpjJGUduA/Hma0jBpSMydYooPzTqlVmdYab36Fguy8VUWRhZa3/3E 3gTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735961288; x=1736566088; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sPXMyM7giVacksO/nj7wCgCG/VnZ+sLbRhD3dO5jhx0=; b=rYsmMp3E9cndE0olIQIN9wpPU17o1L9FyIR85efOV8G1RKJCzD1t3CMKk+5VqQYaFI Dx6lAQ2M3cbrRyTzb6arfZbg2wJmEJYPCdcR3rZ443WXG32XH32ICCg2j9BFV+673iby OSEhnKrH6coEnNwVd5XnPdwL3lsUvPj9wvAleN3+1v5OPYwjbXT0IB1351QqZi5nVS9A 2M8KPK/cXznIJE5qE5MhE62bEknPIBQSnaWsxRbszpUSDdrhlojdAxa42TtnU6TPUhYW J7CA4kp7emT9bjsnGpa1AgJI2wFs9RlnrjAZ6StwzSmrHL/JXqITpHBT6avZlOe9/8iI MLVw== X-Gm-Message-State: AOJu0YwewcKByhOfYNI166NFnIkSlT8GSUPNAdRU4hCzmphC5npqTnnc InVF0o00wO4SAsG8DXbk1xvEhHJoNtytAsV75+fTatfcMotsGNp602gWkF8u X-Gm-Gg: ASbGncskOiIlqSryrIp8q/0L5OKUSEG2H2I9E55lNiD0+Cml8/dvvVT2/nKKkVGS7bq rxrBPtXyzTmUCzdlHtwFs4S0Hz7CDgiYKIvTgZMcAYlzKf0UtnLShna2nbQ4Fkr38aBSGaOnZhn neKbQ1cOra+GjL8wqh9VHV+kRee/Lf0rDbbGvkkNrX9HdymfFjvMefa7J/S0UE553N9vq32y2aq e68vtFzeN/Jc5hPnFBQUuOyQtMaM3J5aluZxOx1mnQ8he7CGnCxvLIJ+UpLrMjB6pdgF0GJ7pFH Nx3TgPwPI2Ih6VTMZg== X-Google-Smtp-Source: AGHT+IGV+9+2EzinDPuVuPq7t1uSLja2BK2m1OQR4xQ5GMEWVjVNPdryILhLBhbd1bOHNaqqXE2CSw== X-Received: by 2002:a05:620a:4399:b0:7b6:dc74:829f with SMTP id af79cd13be357-7b9ba703164mr9056990985a.7.1735961288103; Fri, 03 Jan 2025 19:28:08 -0800 (PST) Received: from gnus (mtrlpq0776w-70-26-179-129.dsl.bell.ca. [70.26.179.129]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b9ac4ec226sm1318992085a.120.2025.01.03.19.28.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2025 19:28:07 -0800 (PST) From: "Suhail Singh" To: emacs-orgmode@gnu.org Subject: [PATCH] org-lint.el: Include org-export-global-macros in global templates Date: Fri, 3 Jan 2025 22:23:09 -0500 Message-ID: <87ed1jfebd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::844; envelope-from=suhailsingh247@gmail.com; helo=mail-qt1-x844.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.06 X-Spam-Score: -4.06 X-Migadu-Queue-Id: CE5FE87854 X-TUID: uXeixb8qZrS+ * lisp/org-lint.el (org-lint-invalid-macro-argument-and-template): Ensure templates defined in org-export-global-macros are included during macro initialization. TINYCHANGE --- lisp/org-lint.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-lint.el b/lisp/org-lint.el index 7b18c408d..273c92ead 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -872,6 +872,8 @@ (defun org-lint-export-option-keywords reports)) (defun org-lint-invalid-macro-argument-and-template (ast) + "Check for invalid macro arguments in AST." + (require 'ox) (let* ((reports nil) (extract-placeholders (lambda (template) @@ -934,7 +936,7 @@ (defun org-lint-invalid-macro-argument-and-template name)) reports)))))))) ;; Check arguments for macros. - (org-macro-initialize-templates) + (org-macro-initialize-templates org-export-global-macros) (let ((templates (append (mapcar (lambda (m) (cons m "$1")) '("author" "date" "email" "title" "results")) base-commit: 5a4686915e568ace469f490c0606d2a016c1101c