branch: externals/org
commit 79c64d8c3ac66e13a333a4cbc8ba15e242bc01fb
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-manual: Work around Emacs bug#59293
    
    * doc/org-manual.org (Cache results of evaluation): Avoid (1) in the
    code.  It is incorrectly recognized as a footnote reference by info.el
    
    Reported-by: alain.coch...@unistra.fr
    Link: https://orgmode.org/list/25457.22124.839301.412...@gargle.gargle.howl
---
 doc/org-manual.org | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 87abf7fdf7..1369ab0bd6 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -18167,10 +18167,12 @@ The =cache= header argument can have one of two 
values: =yes= or =no=.
 In this example, both functions are cached.  But =caller= runs only if
 the result from =random= has changed since the last run.
 
+# +1 here is to work around Emacs bug#59293.
+# Otherwise, (1) is recognized as footnote reference by info.el.
 #+begin_example
 ,#+NAME: random
 ,#+BEGIN_SRC R :cache yes
-  runif(1)
+  runif(+1)
 ,#+END_SRC
 
 ,#+RESULTS[a2a72cd647ad44515fab62e144796432793d68e1]: random

Reply via email to