From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yPipCFGV/WV8bgEAqHPOHw:P1 (envelope-from ) for ; Fri, 22 Mar 2024 15:27:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yPipCFGV/WV8bgEAqHPOHw (envelope-from ) for ; Fri, 22 Mar 2024 15:27:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711117649; a=rsa-sha256; cv=none; b=N6X/UeP0lBiXoRmKCGb36g2WSAvcblPQPdOF4qTHzA6SakaaeSxm7wAC/CeTMDt27YHT0Q ZtliAwFCNlyg+V44jtJ7+btBfASvEe7htQhl9YV+OAKOX8BAxFMygIXTu6gYpCM6SzicP5 Hovr5hgyljbS1/wKLWScQfFO2v8nEveYErx/gyQQbUW+a0XI/QBFX/Ng/cUZNFHSyQsL+e lv82VgmRkDOew5G/pIinmMX4veGjjc0M53UPRTXjYs6YMG9XPYuXqMMHXunpvb2/n5/5w/ PahdUYYK9bYR+EeqI8ajHTueYftr/EzUicMtGpBWRdfG7TBkw9YuRt9q+mstFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711117649; 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; bh=Ji29KSOulhKoN526qZUUgKugU5eBuoO6yLsaNf84Pg4=; b=KgICQqjY2eeg3Eztrr1NOCfJaqiIzdaCO9PsPLFArhMrLTOuNF6UQrxext6P3vN6BsbVQE 9d5SZEPJx5NmONXIVe3XQxIhWkTkBAtKzNhUqeYUQ+cShwW3EW2Zwj1jH9jeS0t5a9Nl5q 7dFlnJgPzHWnD4ePhx3Kf+Xx2WEncNMWlVSe0oCzrt7cFLgShX3VPyPPVMBQb9ik0lNAGh UoWAkJZoSWncDURuxWf+k5g7DmgADblWsBE89fn+UVw4iKLOElDZB7I0Ta2lH7wM3VUWBr 6ev0aPJgXAb+BrbG2EtWNQ7va8wAh+qFQlnwvEkWgSEWNL3Ek6ij5ySlDziHwA== 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 DAB641FB6B for ; Fri, 22 Mar 2024 15:27:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnfqo-0000I4-8T; Fri, 22 Mar 2024 10:26:30 -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 1rnfqm-0000GA-1g for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 10:26:28 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnfqj-0007qx-VG for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 10:26:27 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rnfqi-0009mu-28 for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 15:26:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: [PATCH][DOC]: Add footnote on how to enable described functionality Date: Fri, 22 Mar 2024 10:26:13 -0400 Message-ID: <87zfuqgx6i.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:QrATvq1MlcfvEEZ27NG8DzzoEWg= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Spam-Score: -0.83 X-Migadu-Queue-Id: DAB641FB6B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -0.83 X-TUID: 1aZxpJ1H4fnl --=-=-= Content-Type: text/plain I previously submitted a bug on what I thought was a code bug, but which turned out to be (partly) a mistake on my part and was canceled: https://list.orgmode.org/878r2b4dpy.fsf@localhost/T/#m48b7ea939117f241069fafbcf3726587837f3e70 But there is still a doc bug: since the default value of `org-html-head-include-scripts' was changed to `nil' in Org 9.5, the functionality described in the `Literal Examples' section of the manual is no longer enabled by default. The attached patch adds a footnote to describe how to enable that functionality. Thanks to user @JeanPierre on Emacs SE for the original question and the push for the doc patch: https://emacs.stackexchange.com/questions/80783/org-mode-export-to-html-onmouseover-highlighting-of-referenced-code-lines --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-manual-Add-footnote-on-how-to-enable-described-f.patch Content-Description: PATCH (org-manual): Add footnote on how to enable described functionality >From 127d9628b9b1e8be54cdc715ab4e6bdcc012d716 Mon Sep 17 00:00:00 2001 From: Nick Dokos Date: Fri, 22 Mar 2024 09:08:22 -0400 Subject: [PATCH] org-manual: Add footnote on how to enable described functionality. * doc/manual.org (Literal Examples): The functionality of having `ref:' links remote-highlighted in HTML is disabled by default (since version 9.5). Add a footnote to explain how to enable it. Link: https://emacs.stackexchange.com/questions/80783/org-mode-export-to-html-onmouseover-highlighting-of-referenced-code-lines --- doc/org-manual.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 211208c424c8..c4f62644f8db 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -11623,9 +11623,12 @@ to determine the starting line number. In literal examples, Org interprets strings like =(ref:name)= as labels, and use them as targets for special hyperlinks like -=[[(name)]]=---i.e., the reference name enclosed in single parenthesis. -In HTML, hovering the mouse over such a link remote-highlights the -corresponding code line, which is kind of cool. +=[[(name)]]=---i.e., the reference name enclosed in single +parentheses. In HTML, hovering the mouse over such a link +remote-highlights the corresponding code line[fn:: This requires some +Javascript which is /not/ automatically included in the HTML output: +you have to customize the variable =org-html-head-include-scripts= to +~t~ to have it included (it is ~nil~ by default).], which is kind of cool. You can also add a =-r= switch which /removes/ the labels from the source code[fn:: Adding =-k= to =-n -r= /keeps/ the labels in the -- 2.43.0 --=-=-= Content-Type: text/plain -- Nick --=-=-=--