From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wjOFGHGZi2Di2wAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 07:45:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +NLvEnGZi2AwcwAAbx9fmQ (envelope-from ) for ; Fri, 30 Apr 2021 05:45:21 +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 272B113123 for ; Fri, 30 Apr 2021 07:45:21 +0200 (CEST) Received: from localhost ([::1]:47534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcLxn-0003ZX-Rm for larch@yhetil.org; Fri, 30 Apr 2021 01:45:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcLxD-0003ZP-8a for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 01:44:43 -0400 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:44564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcLxB-0000El-NW for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 01:44:43 -0400 Received: by mail-oo1-xc2a.google.com with SMTP id i3-20020a4ad3830000b02901ef20f8cae8so7939525oos.11 for ; Thu, 29 Apr 2021 22:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=aFgtqHfmi8FLGJ3yThFSvHkX8eaRCXpvIg9nqAcZ1Kw=; b=YON9D+a2/Qs4oBQRZ7UX25XyycSXHhpIViE+qlYu31q2H1ONlM92nHuHegJnJcPBHy DRgLQGq92nI8vZuayXtORwrEGoQHigQ1guHpi6vkWDUSYl3Iabi8t3KKVUbGwyrh1nuY +LBzN1vDK8/r/bqW+9Guo8IXQ8UfYvaiguxlQDKj+XC9xzyerkEgQqjPPfuwmOAscwv6 RMvddOCP9A+/y3L4gJTqCn9QZHnpqSdmgvN0wtQ5pFhIJirZA+rjH0L3HHB78sjNXIdt 4oNoa/k4Dk2EGnazmeeGJ3Zfn5ulXebldXf83AGAvbKM5fIqJyAqIm8VUD5Tge1qiTeH ke4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=aFgtqHfmi8FLGJ3yThFSvHkX8eaRCXpvIg9nqAcZ1Kw=; b=HHRvGETu7Fc+nDBeehcDnXYmXwNa0JovCGZPAH+ciAScHj1TB0ZqgHiVS6civowNMS f3g39kNM+diehEKUYEnPVRMy1T+SftTZSsBt/1cC/xnhiX2XVMMVZTLkHj3bOV1Sabkp CPvjV18vxDkD15m6rMl50a3Cy5YUn2VM6eQSLHIqKEra/pMBiHuFzuiBmFuQANHx7LAt Y4sUl5OIz+pXMD/9fjVbh7Pf6z5DfeTBSm/LvMl3JUUuUlOdlRkDKr7rsOUo5y4V33oE oW3jZVy87iOG/K8H+iBsn0XixGsO10iyTd1EmF8ghmVIMqbjNnOky3GsEpHkjdgsDV2v f8uA== X-Gm-Message-State: AOAM533F+joQiLF3G/ZQ9jB41+40fTFg2Z+alYCc1/azy1AfOFvrud6d 6JulRJO6wgfhh+PaYWH5RVbDXlHWfVA= X-Google-Smtp-Source: ABdhPJwkId9K3okgEkiSKCBJyS/OZlTIIkqjTz4jRN3F4w1p9dTaIMsljCj9hLchtyYc3qWU57S0sA== X-Received: by 2002:a4a:eaca:: with SMTP id s10mr3111069ooh.22.1619761479489; Thu, 29 Apr 2021 22:44:39 -0700 (PDT) Received: from pbcdesktop (189-210-115-154.static.axtel.net. [189.210.115.154]) by smtp.gmail.com with ESMTPSA id w66sm516022ooa.37.2021.04.29.22.44.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Apr 2021 22:44:38 -0700 (PDT) References: <87mttgiiuy.fsf@gmail.com> <87k0oks787.fsf@kyleam.com> User-agent: mu4e 1.4.15; emacs 27.2 From: Pablo Barraza Cornejo To: Kyle Meyer Subject: Re: [PATCH] Fix numbering of captioned images In-reply-to: <87k0oks787.fsf@kyleam.com> Date: Thu, 29 Apr 2021 23:44:36 -0600 Message-ID: <87k0okiawr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=pbarrazacornejo@gmail.com; helo=mail-oo1-xc2a.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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 272B113123 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: xupNvwVkOh/l --=-=-= Content-Type: text/plain; format=flowed Kyle Meyer writes: > What about returning to the boundp/fboundp combination that was > in place > before ab1ce2a75? > > (and (boundp 'my/foo) > (fboundp my/foo)) ; => nil > > (let ((my/foo #'ignore)) > (and (boundp 'my/foo) > (fboundp my/foo))) ; => t Sounds good to me! I've modified the patch to reflect this change. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-html.el-inline-image-export-Fix-caption-numbering.patch >From a8d653efcdbe42e887aba7f8895de413ffaa53c4 Mon Sep 17 00:00:00 2001 From: Pablo Barraza Cornejo Date: Thu, 29 Apr 2021 20:15:08 -0600 Subject: [PATCH] ox-html.el/inline-image export: Fix caption numbering * lisp/ox-html.el (org-html-standalone-image-p): Remove quote which causes `org-html-standalone-image-p' to not check if `org-html-standalone-image-predicate' is fbound and see if it's initialized. TINYCHANGE --- lisp/ox-html.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 47122314c..12d511c28 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -3039,7 +3039,8 @@ images, set it to: (`paragraph element) (`link (org-export-get-parent element))))) (and (eq (org-element-type paragraph) 'paragraph) - (or (not (fboundp 'org-html-standalone-image-predicate)) + (or (not (and (boundp 'org-html-standalone-image-predicate) + (fboundp org-html-standalone-image-predicate))) (funcall org-html-standalone-image-predicate paragraph)) (catch 'exit (let ((link-count 0)) -- 2.31.1 --=-=-=--