[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22399: org-mode fontification
From: |
Rasmus |
Subject: |
bug#22399: org-mode fontification |
Date: |
Mon, 18 Jan 2016 15:16:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hi Phillip,
Thanks for your report.
phillip.lord@russet.org.uk (Phillip Lord) writes:
> On emacs-25 ox-html, line 1847, org-html-fontify-code does this...
>
> (setq code (with-temp-buffer
> ;; Switch to language-specific mode.
> (funcall lang-mode)
> (insert code)
> ;; Fontify buffer.
> (org-font-lock-ensure)
>
>
> But `org-font-lock-ensure' is defined like so....
>
> (defalias 'org-font-lock-ensure
> (if (fboundp 'org-font-lock-ensure)
> #'font-lock-ensure
> (lambda (_beg _end) (font-lock-fontify-buffer))))
>
>
> which takes two args, causing crashes when exporting to code to HTML.
This is fixed in the most recent stable version of Org, i.e. 8.3.3¹ ,
which, I guess, will be part of if Emacs 25.2 or 26.1 (whichever comes
first and allow new features). It’s also fixed in 8.2.10². I guess
Emacs-25 should switch v8.2.10. [Honestly, when v8.3 couldn’t be merged I
did not cross my mind to upgrade to v8.2.10]. In case v8.2.10 it too
radical, a "local fix" must be applied to the version of Org in emacs.git.
Thanks,
Rasmus
Footnotes:
¹ http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ox-html.el?h=maint#n2086
²
http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ox-html.el?id=fdd9b18598239dd0e8b18383ac930110d51ed22e#n1893
--
Warning: Everything saved will be lost
- bug#22399: org-mode fontification, Phillip Lord, 2016/01/18
- bug#22399: org-mode fontification,
Rasmus <=
- bug#22399: org-mode fontification, Phillip Lord, 2016/01/18
- Message not available
- bug#22399: org-mode fontification, Rasmus, 2016/01/19
- bug#22399: org-mode fontification, Kyle Meyer, 2016/01/19
- bug#22399: org-mode fontification, Kyle Meyer, 2016/01/19
- bug#22399: org-mode fontification, Rasmus, 2016/01/19
- bug#22399: [O] bug#22399: org-mode fontification, Phillip Lord, 2016/01/20