From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59293: 28.1.90; Erroneous footnote link in Org info manual Date: Wed, 16 Nov 2022 14:42:42 +0200 Message-ID: <83o7t7gjel.fsf@gnu.org> References: <87edu3elrf.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59293@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 13:43:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovHl8-0006Gy-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 13:43:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovHky-0004h1-4Z; Wed, 16 Nov 2022 07:43:08 -0500 Original-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 1ovHku-0004fj-0o for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 07:43:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovHks-00059i-93 for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 07:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovHks-0007Uo-4M for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 07:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59293 X-GNU-PR-Package: emacs Original-Received: via spool by 59293-submit@debbugs.gnu.org id=B59293.166860257328800 (code B ref 59293); Wed, 16 Nov 2022 12:43:02 +0000 Original-Received: (at 59293) by debbugs.gnu.org; 16 Nov 2022 12:42:53 +0000 Original-Received: from localhost ([127.0.0.1]:56298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovHkj-0007UR-HS for submit@debbugs.gnu.org; Wed, 16 Nov 2022 07:42:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovHkh-0007UF-7X for 59293@debbugs.gnu.org; Wed, 16 Nov 2022 07:42:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovHkb-00056M-Ae; Wed, 16 Nov 2022 07:42:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C6r3yXNPqR6y30PaOJkDsnzfwlmKhGbkNsB32doZ1oY=; b=d6YzquKiGmYj IroSU50S4qR8ayVqo7zpvh1MQubR7qxg0UXK8mIXREDoiVyRrqvrYdtJTwAGt7QgBfJTYUrWhJDcb fkm2nRbfrBGrkYPxcHGTURd23adGJPn2aY3y8E1cIXLAjYHrK+rAwLnGnQsXN+l3H5gfSPFGFzxDV jMNYFSFBhpMyKeUdCIe6jvVwakdJ/C40bD4UK15Fcy5Av39lF0e2kQ6NA7iYUue3ELtFk+GSMWWr8 0oRBZxyJrY0Wzp2p77qw511DCEBhtZLMLSqIDU90PfVSfGnyCjLifM8IJnfFuFo1G2IYv28ZPEct5 buSsT0UGfV1GU8IqBKzgdg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovHka-00042j-9z; Wed, 16 Nov 2022 07:42:44 -0500 In-Reply-To: <87edu3elrf.fsf@localhost> (message from Ihor Radchenko on Wed, 16 Nov 2022 01:22:28 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248008 Archived-At: > From: Ihor Radchenko > Date: Wed, 16 Nov 2022 01:22:28 +0000 > > In 16.5 Evaluating Code Blocks section of Org info manual, there is an > example code block > > #+NAME: random > #+BEGIN_SRC R :cache yes > runif(1) > #+END_SRC > > This code block is represented like the following in the texinfo Org > manual source: > > @example > #+NAME: random > #+BEGIN_SRC R :cache yes > runif(1) > #+END_SRC > > ... > @end example > > Note the (1). It is unexpectedly shown as a footnote reference and one > can click on (1). This only happens in the info manual. Not in html. > > I have checked > https://www.gnu.org/software/texinfo/manual/texinfo/html_node/_0040example.html > > and I do not see anything wrong in the above texinfo source. > > I am also not an expert in texinfo. > > Could someone more experienced with texinfo check if the observed is > something to be fixed on Org side, on Texinfo side, or maybe on > Info-mode side? It's a bug in info.el: it fontifies the footnote references, but the detection of footnote cannot distinguish between "(1)" that is a reference to a footnote and "(1)" that just stands for itself. My suggestion is to modify the example in the manual to avoid the false match, for example use "runif(3)" if possible. Alternatively, remove the real footnotes and make them notes in parentheses. Or just live with the problem...