Aloha Nicolas and Jon,

Nicolas Goaziou <n.goaz...@gmail.com> writes:

> t...@tsdye.com (Thomas S. Dye) writes:
>
>> Aloha Jon,
>
> [...]
>
>> Yes, I believe you are right.  The commas are not the culprits.
>> Apologies for the red herring.
>>
>> Perhaps Nicolas should revert the commit?  Could you check if this is
>> the right thing to do?
>
> My fix isn't about the comma. Didn't it work?

The particular link I used in the example now works. Thanks. I wasn't
sure what was done and worried that my red herring had made it into the
code.  Glad to know that it didn't.

>
>> I *have* found a bug/limitation of the texinfo exporter.  If a link is
>> split between two lines the exporter doesn't handle it correctly.  A
>> split link is exported like @ref{A-split-link}, when it should be @ref{A
>> split link}, I think.

> There's no such limitation. Could you provide an ECM for that?

Yes, here is an ECM.

--------- Begin ECM ----------

* A long headline that typically breaks across lines with M-q

Blah.

* Concise  headline

The problem comes with links that are split across lines, e.g. [[A
long headline that typically breaks across lines with M-q]]. They work
in the Org mode buffer, but not when exported to texinfo.

* Editing setup
#+name: setup-editing
#+header: :results silent
#+header: :eval no-export
#+begin_src emacs-lisp
(require 'ox-texinfo)
(define-key org-mode-map (kbd "C-c e") 'org-export-dispatch)
(setq org-pretty-entities nil)
(setq org-src-preserve-indentation t)
(setq org-confirm-babel-evaluate nil)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (sh . t)))
(add-to-list 'org-export-snippet-translation-alist
             '("info" . "e-texinfo"))
#+end_src

---------- End ECM -----------

Here is the makeinfo output:

poto:orgmanual dk$ makeinfo --force org-texi-link.texi
/Users/dk/org/orgmanual//org-texi-link.texi:55: Cross reference to nonexistent 
node `A-long-headline-that-typically-breaks-across-lines-with-M-q' (perhaps 
incorrect sectioning?).

Note the hyphens between the words of the headline/link.

All the best,
Tom
-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

Reply via email to