--- Begin Message ---
Subject: |
27.0.91; Avoid error on org-html-fontify-code |
Date: |
Mon, 01 Jun 2020 12:41:41 +0200 |
User-agent: |
mu4e 1.5.1; emacs 27.0.91 |
Some time ago I tried to export in html form an org file containing many
src blocks and ended with the following message :
org-html-do-format-code: Buffer is read-only: #<killed buffer>
After narrowing down my file here are the steps to reproduce :
emacs -q
(require 'htmlize) ;; this is important else `org-html-fontify-code`
;; will keep the wrong branch
;; open the ecm-org-src-ro.org
ecm-org-src-ro.org
Description: ECM export read-only src blocks
;; try to export as html
I've also attached is a patch to fix this.
0001-ox-html.el-Fix-read-only-error-when-export-src-bloc.patch
Description: 0001-ox-html.el-Fix-read-only-error-when-export-src-bloc
Pierre
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#41641: 27.0.91; Avoid error on org-html-fontify-code |
Date: |
Sun, 07 Jun 2020 16:49:24 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Pierre Téchoueyres writes:
> I've also attached is a patch to fix this.
Thanks.
This patch was sent as a separate message to the Org mailing list [0]
and has been applied to the Org repo. Closing.
[0]: https://orgmode.org/list/87eeqyyf4t.fsf@killashandra.ballybran.fr/
--- End Message ---