From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eOD7AJ92T2FALwAAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 21:21:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cLxKOJ52T2EiLwAA1q6Kng (envelope-from ) for ; Sat, 25 Sep 2021 19:21:02 +0000 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 609C9A788 for ; Sat, 25 Sep 2021 21:21:02 +0200 (CEST) Received: from localhost ([::1]:54250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUDEL-0002n5-Dy for larch@yhetil.org; Sat, 25 Sep 2021 15:21:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUDCz-0002mv-7B for emacs-orgmode@gnu.org; Sat, 25 Sep 2021 15:19:37 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:44899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUDCw-0005HO-Ju for emacs-orgmode@gnu.org; Sat, 25 Sep 2021 15:19:37 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id 11so8490793qvd.11 for ; Sat, 25 Sep 2021 12:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=MPZZFzj+CP4p8iD+D5CjrwpmZg/Gp7AuwTLUr/rU1rg=; b=IERYq7MLVA7lfjWUFmOuCMRCIusOAl9Tl8gaoBMeoCmFhmA9LxbbHggaO+Rj4xJCGK k5FyeNbx8MC9rSG8Y21Yaw6dG0AXBdUrhFucfqjbHgTOv5VimwySwCFAp1SNZL0AY5h9 Afqn0byziBJTiGlw9VlekYiKem4WUVYhnRVGytH1q0A+HkyxsXP1JJxCjkc0VLkDC9rQ QBI70pmxfRduPUPJS6ckjY+IbSzk+HWHPiUrUwHcYP1C49+baI/HKs8DpT6Ppdf0dILC Yne2vH7fpMNpuYvF2wZntaO9HCSNmXYLJGSJ6CBHkvQBcKkZt0bSyPBlckNPulEK/Wdb 5kYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=MPZZFzj+CP4p8iD+D5CjrwpmZg/Gp7AuwTLUr/rU1rg=; b=0KdkhkLfgNfC6ii34fLtQ3+B0y9akX8oy74XCgUMlEN3ld0TsLuh7yHpPRc37xDy1Q 6gZrUC4wI1+ol1Hui6RRb9nXHIrmBx0XUoTdG1RtOETGa/bY66h/7RKQRe53M5SWhsB9 WGQdp4cHXlZJPoKKynkfyXanywDomOaUy4fbTOl3GBSi1+iUWabfICZs+f3jtYz37pfw zcaHlrOoKNo2kMg56+JLi5cGYPDY/N1may0AaFl+N7T0VgoSJa5JuYdGxl2WxvbSBZL+ 5gJOHdx1/drh1LQkf7oKVyBCuvF9hM4/Ris2X4EOSNm3fnd/Z08A73Q3nCcnRBki9OCA 1NsQ== X-Gm-Message-State: AOAM533zNjrjxGTfMj2mtx6pJYNglW3EW/TTWqyMAjJ5YnoQunwRLki6 EHrJZEYt1O6Dq8H9e3z31o9MkHrCDrc= X-Google-Smtp-Source: ABdhPJyk5E+J0JDooyMcTMmFIji/KdGTmV7vr1gTxXcY6ts1T9nf0stHC/7q4ShnhbEliYIkNZmtBA== X-Received: by 2002:a05:6214:490:: with SMTP id ay16mr16789784qvb.25.1632597572665; Sat, 25 Sep 2021 12:19:32 -0700 (PDT) Received: from arch ([2601:82:c200:166d:afae:ebe6:a0e2:409e]) by smtp.gmail.com with ESMTPSA id t24sm9107078qkg.28.2021.09.25.12.19.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 12:19:31 -0700 (PDT) User-agent: mu4e 1.7.0; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: [PATCH] Declare functions for byte compiler [9.5 (9.5-g769a55 @ /home/n/.emacs.d/straight/build/org/)] Date: Sat, 25 Sep 2021 15:15:16 -0400 Message-ID: <875yuocvjx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf2d.google.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, 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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632597662; 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=MPZZFzj+CP4p8iD+D5CjrwpmZg/Gp7AuwTLUr/rU1rg=; b=sLtptnQ2my3+eqlnf6YmYFU7owcywVcLKBAGx1H55G8nJkoc4mgA06GQv4i210T10GvrqQ uV5w2KNxqNvl83NR6V2Ws/zwwZjlXS2rZ5OjNPG/PITjPVrZKl10cPhmHAVMD5Gqv66Xxi 71OSkYlRWRvYNEwp37V8ooGjYI1ZuEKw8ufhqFcZgsg6QBt+M+8tEzJ9qSrf9VQr43UR0j 4KZYlbEkg0np9uM8h20yD+zjODkbQ/h54Hmw5JkHsdNyoipGgPriK2lZEhpHonXDLn24kM S5Bu7dHv5x+W8XrKTOh2zglg7FIDoSynUuAnUho/k/92+C57QigZnmDg8/Ifrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632597662; a=rsa-sha256; cv=none; b=YNoIe1m2uq9vnh0tZsbiSWpUFsPk8hINpQN6Q2TRZnVuNs1k9VPlidXZfbtGaAdsYZpemF seOF3A4I3AyEMebt+0SmcARmZLvJPYN4S17auAIdfO1gHsAJ2T9zwAFnvO5P/icFHEWs4h gv64otFWHzBTiCBNKr1LiUX2ERHHCmHOL/9NmMFg1YpYA+Vka/6p2xwFyw8m5p6KAGR6mP P5+SJHSqqRUXIzM4944NPOPu4NK5Ly7mOl6kmgUyUpIOuhJcIDtXQrN/kSMsgDhyVYkt6d doDVEBIP90wwIqBjqBXGde8TkD3b/FV25mzvRDDmfCmSIPpgWq/7t460b3+tuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IERYq7ML; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IERYq7ML; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 609C9A788 X-Spam-Score: -3.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: l0CVp+lDRB78 --=-=-= Content-Type: text/plain; format=flowed Recent changes have introduced byte-comp warnings for unknown functions at compile time. These warnings are "louder" now that more users are native compiling Elisp, so one more reason to avoid them. See attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-byte-comp-function-warnings.patch >From 736e72b56b10ba451016e4cc07305d8065c02ac9 Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Sat, 25 Sep 2021 15:05:08 -0400 Subject: [PATCH] Fix byte-comp function warnings * (org.el, org-table.el org-keys.el) Declare functions for byte compiler. --- lisp/org-keys.el | 3 ++- lisp/org-table.el | 1 + lisp/org.el | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/org-keys.el b/lisp/org-keys.el index 8f25bda2e..2984a4f51 100644 --- a/lisp/org-keys.el +++ b/lisp/org-keys.el @@ -58,7 +58,6 @@ (declare-function org-clone-subtree-with-time-shift "org" (n &optional shift)) (declare-function org-columns "org" (&optional global columns-fmt-string)) (declare-function org-comment-dwim "org" (arg)) -(declare-function org-refile-copy "org" ()) (declare-function org-copy-special "org" ()) (declare-function org-copy-visible "org" (beg end)) (declare-function org-ctrl-c-ctrl-c "org" (&optional arg)) @@ -145,6 +144,8 @@ (declare-function org-promote-subtree "org" ()) (declare-function org-redisplay-inline-images "org" ()) (declare-function org-refile "org" (&optional arg1 default-buffer rfloc msg)) +(declare-function org-refile-copy "org" ()) +(declare-function org-refile-reverse "org-refile" (&optional arg default-buffer rfloc msg)) (declare-function org-reftex-citation "org" ()) (declare-function org-reload "org" (&optional arg1)) (declare-function org-remove-file "org" (&optional file)) diff --git a/lisp/org-table.el b/lisp/org-table.el index 0bc668757..9a703d8bc 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -66,6 +66,7 @@ (declare-function org-export-install-filters "ox" (info)) (declare-function org-export-table-has-special-column-p "ox" (table)) (declare-function org-export-table-row-is-special-p "ox" (table-row info)) +(declare-function org-forward-paragraph "org" (&optional arg)) (declare-function org-id-find "org-id" (id &optional markerp)) (declare-function org-indent-line "org" ()) (declare-function org-load-modules-maybe "org" (&optional force)) diff --git a/lisp/org.el b/lisp/org.el index e1780cf8d..630bfb19d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -158,13 +158,18 @@ Stars are put in group 1 and the trimmed body in group 2.") (declare-function org-element-context "org-element" (&optional element)) (declare-function org-element-copy "org-element" (datum)) (declare-function org-element-create "org-element" (type &optional props &rest children)) +(declare-function org-element-extract-element "org-element" (element)) +(declare-function org-element-insert-before "org-element" (element location)) (declare-function org-element-interpret-data "org-element" (data)) (declare-function org-element-lineage "org-element" (blob &optional types with-self)) (declare-function org-element-link-parser "org-element" ()) +(declare-function org-element-map "org-element" (data types fun &optional info first-match no-recursion with-affiliated)) (declare-function org-element-nested-p "org-element" (elem-a elem-b)) (declare-function org-element-parse-buffer "org-element" (&optional granularity visible-only)) +(declare-function org-element-parse-secondary-string "org-element" (string restriction &optional parent)) (declare-function org-element-property "org-element" (property element)) (declare-function org-element-put-property "org-element" (element property value)) +(declare-function org-element-restriction "org-element" (element)) (declare-function org-element-swap-A-B "org-element" (elem-a elem-b)) (declare-function org-element-timestamp-parser "org-element" ()) (declare-function org-element-type "org-element" (element)) -- 2.33.0 --=-=-=--