From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uPg/I41//GUGvgAAqHPOHw:P1 (envelope-from ) for ; Thu, 21 Mar 2024 19:42:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uPg/I41//GUGvgAAqHPOHw (envelope-from ) for ; Thu, 21 Mar 2024 19:42:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="dG/B1sad"; 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=1711046541; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vE1calGDBcesWPHldf0XnaidBn8uxs7izfoJNCuhujw=; b=J8LXe1upaHTPr2J3cM3yVRf0aGC9sewdSphkIuPmYExvegojnUPva59O/aQ4mgO+wo/4TI StAshwtA5ULB2mt1k9s2pMLMJ9YBWlhN5KfZWdNv8wUJg0DI/JYOMyZXcxXr0hUCgRYY5A bmOl7C09JAkBy5ZYN+1aWSqOpBZ2Wqjf0ENRkzKy4opj+yijmsk8JAG4NpZ+3pW3gh/CuO E66LjIAb787ALIJC84knq2+7f2Vi+6H+ILx8JM6W88mKgDT08b6OsGuTiXDTrKEqe9hNRA BuxgAjZBSbKFgb77UoN00o9P+WPn1y7YURSpBHK4wO4HBVz+QZumgaCaY4IMtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="dG/B1sad"; 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=1711046541; a=rsa-sha256; cv=none; b=apHSO/3fcwSRHH9DgDeeBtvZ6O8FDkodrEv6wCfZjCmq2I/CnlMWDbGR9XEy36WsfrvlkK 2sg760AXeNYhCKaWtwS1k06QE5WP8JvTd9TvfbbvtwxtSdteaNplngiAkS0LUC9l4Kp08l qf7iTbquIp9jY/mSSQt2cDNLt/dJxZXIgeQU6sPf9AXR4kmLFpQZpEZfgi/OtOMSt9RdQq HlomkNEyc2tN+VGoSP6yCMbcG8jB+iVUgJWPzBWB11I6BDiLKjXIVy1Bb5fP5ECEXP7DAX KMYdz1+MgP2xungrXNDuS0cmpYAtQQEChyYK18o7FlUAJeyjxZ4kul2DrraRWw== 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 3EA9A47DC7 for ; Thu, 21 Mar 2024 19:42:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnNLq-0002Dx-Qc; Thu, 21 Mar 2024 14:41:21 -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 1rnNLp-0002DY-4W for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 14:41:17 -0400 Received: from mail-vk1-xa30.google.com ([2607:f8b0:4864:20::a30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnNLm-0006Qz-Sb for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 14:41:16 -0400 Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-4d35b644c1bso341075e0c.3 for ; Thu, 21 Mar 2024 11:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046472; x=1711651272; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=vE1calGDBcesWPHldf0XnaidBn8uxs7izfoJNCuhujw=; b=dG/B1sady36ce5ysQUlL+yNw/lZ/uNIGPnvO8i2mLNcIRkD8ki6H/UKU89gn2Aeywf lqhoLfCd+cRJQSPoaGEw9J8j2GVwNetdRncy8TeXTSH2wPM2hU0DDM5kWckmn6dK8xIN +jcosBRGC8eWm88pEw0evVhkmjR2FtsefjRGUevf5j5luiHbqXhaEZmiJzxMuo+CK1Ms kITGDVolFb2b4KtbTcS/PX8gPjqi+pPGpigZiGgQkA6bVd7E4cmdv1jhs86r6IBb6SBH o29wPRttAsVTYdARKz6gFi0nN8sQytoCixcKr+/nnT/NvbQAcZIYFp4miAS0DqMjfFh1 3KYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046472; x=1711651272; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vE1calGDBcesWPHldf0XnaidBn8uxs7izfoJNCuhujw=; b=SKHwrg+i87RH0qb5epVk9sOc3xbsSigeQwZWQqgDWxkeX2TUURpeOv5qnGAsU7qzql TUGaNPUdU4l8KtWXFPSScfmsOKZXXQCTN5r6HpPfQ6iqv/WeAHkxTY4tGmk+bAmXWcuP Sb3NSbDc6/inxAqgu8PsVKb7IQ0l4lg2QSE/vRRu3oCwV5ZYLj3HdgBVcJMzEOQrvbhf 3scmieOTo0Nama5RvEXdyKeqYdZ3kkbnm/OYkp3sbuJXvWQtzP2mxrRd0Pw4xLHF7jiM /wJRLWSicLStxXJtve0y+tE4n3MvmJK6olkH1sCQh1zjjhUVAJw/EDhYW7CE6+pf06b1 4VvA== X-Gm-Message-State: AOJu0YygJoe7TjL0iLLmZr4mEu3yTrxuFxE2IiKOChwfK0ycNYerh7hM OHcliB2DL+PxJBFm3QTmp8CDkrCBiwr/cItKXgPR2FYpN98EVfRZDrmU3IuP X-Google-Smtp-Source: AGHT+IFi591+wcTXuQSXJTiEgh5uYUJnKunCDA0B8Qk4G20BLteCrpgRIw+f2MpAU6Zqc+9WyGeIOw== X-Received: by 2002:a05:6122:401:b0:4d4:872:c68a with SMTP id e1-20020a056122040100b004d40872c68amr200871vkd.1.1711046472523; Thu, 21 Mar 2024 11:41:12 -0700 (PDT) Received: from pierrot.dokosmarshall.org (pool-74-104-158-46.bstnma.fios.verizon.net. [74.104.158.46]) by smtp.gmail.com with ESMTPSA id p11-20020ad45f4b000000b00690c5cc0ff6sm153724qvg.124.2024.03.21.11.41.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:41:12 -0700 (PDT) From: Nick Dokos To: emacs-orgmode@gnu.org Subject: [BUG] `org-html-head-include-scripts' default value should be `t' but it's nil instead [9.7-pre (release_9.6.20-1267-gb0c3c9 @ /home/nick/src/emacs/org/org-mode/lisp/)] Date: Thu, 21 Mar 2024 14:41:11 -0400 Message-ID: <87bk77ig1k.fsf@pierrot.dokosmarshall.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::a30; envelope-from=ndokos@gmail.com; helo=mail-vk1-xa30.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.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: mx13.migadu.com X-Migadu-Spam-Score: -9.61 X-Spam-Score: -9.61 X-Migadu-Queue-Id: 3EA9A47DC7 X-TUID: D1OYnvIkKRS0 ------------------------------------------------------------------------ If you load `ox-html`, the default value of `org-html-head-include-scripts` is nil, despite the defcustom: (defcustom org-html-head-include-scripts t ... The reason is that `org-expot-define-backend`, which is called earlier in the file, contains the following line in the options alist: (:html-head-include-scripts nil "html-scripts" org-html-head-include= -scripts) and the call apparently binds `org-html-head-include-scripts' to nil, so by the time the defcustom is evaluated, it's too late. I was confused by that, but the description of `defcustom' in the Emacs Lisp Ref manual states: The argument STANDARD is an expression that specifies the standard value for OPTION. Evaluating the =E2=80=98defcustom=E2=80=99 form eva= luates STANDARD, but does not necessarily bind the option to that value. If OPTION already has a default value, it is left unchanged. If the user has already saved a customization for OPTION, the user=E2=80= =99s customized value is installed as the default value. Otherwise, the result of evaluating STANDARD is installed as the default value. I verified that if I move the `defcustom' to before the `org-export-defined-backend' call, everything works as expected. See https://emacs.stackexchange.com/questions/80783/org-mode-export-to-html-= onmouseover-highlighting-of-referenced-code-lines for the original question and the analysis. Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24= .38, cairo version 1.17.8) of 2023-12-28 Package: Org mode version 9.7-pre (release_9.6.20-1267-gb0c3c9 @ /home/nick= /src/emacs/org/org-mode/lisp/) --=20 Nick