emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] commit 7048876f broke Figure link with caption [9.6 (release_9.6 @


From: Brian Powell
Subject: [BUG] commit 7048876f broke Figure link with caption [9.6 (release_9.6 @ /Users/powellb/src/org-mode/lisp/)]
Date: Sun, 18 Dec 2022 14:15:43 -1000
User-agent: mu4e 1.8.13; emacs 29.0.60

It seems that the following commit broke the ability to link to a figure
with a caption.

      commit 7048876f6fa519513763c83bc5baa791420cddab
      Author: Ihor Radchenko <yantar92@posteo.net>
      Date:   Tue Dec 13 11:44:22 2022 +0300

          org-export-get-ordinal: Do not ignore ELEMENT type when TYPES is given

          * lisp/ox.el (org-export-get-ordinal): Append ELEMENT type to TYPES,
          when TYPES is non-nil.

I have a simple file with a figure and image link. The figure has a
#+name and #+caption. If I add a link to the figure name in the
document, then exporting to HTML fails. Prior commits did not have any issue.

Using `emacs -Q` with the following:

    (add-to-list 'load-path "/Users/powellb/src/org-mode/lisp")
    (require 'org)

With the following sample file:

    #+TITLE:       test
    #+AUTHOR:      Me
    #+EMAIL:       email
    #+DATE:


    #+name: fig:parcel
    #+caption: Illustration of joy
    #+attr_html: :width 600px
    #+attr_org: :width 50px
    #+attr_latex: :width 3.5in
    [[file:./test.png]]

    Done!

    So, Figure [[fig:parcel]] is an illustration of the stuff.

Executing C-c C-e h o : to export to html and open, results in the
attached trace dump.

Cheers,
Brian

Emacs  : GNU Emacs 29.0.60 (build 1, aarch64-apple-darwin22.2.0, NS 
appkit-2299.30 Version 13.1 (Build 22C65))
 of 2022-12-16
Package: Org mode version 9.6 (release_9.6 @ /Users/powellb/src/org-mode/lisp/)

Attachment: debug.txt
Description: trace


reply via email to

[Prev in Thread] Current Thread [Next in Thread]