emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: pierre.techoueyres@gmail.com, emacs-orgmode@gnu.org
Subject: Re: 27.0.91; Avoid error on org-html-fontify-code
Date: Fri, 05 Jun 2020 04:33:46 +0000	[thread overview]
Message-ID: <871rmuw2qd.fsf@kyleam.com> (raw)
In-Reply-To: <87eeqyyf4t.fsf@killashandra.ballybran.fr>

pierre.techoueyres@gmail.com writes:

> 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 ([1])
> ;; try to export as html

Thanks for narrowing the issue and providing an example to trigger it
(not to mention a patch).

> Subject: [PATCH] ox-html.el: Fix read-only error when export src bloc

Looks good to me.  Applied (c631afd35), with a couple of minor tweaks to
the commit message.


  reply	other threads:[~2020-06-05  4:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01 15:33 27.0.91; Avoid error on org-html-fontify-code pierre.techoueyres
2020-06-05  4:33 ` Kyle Meyer [this message]
2020-06-05 21:04   ` pierre.techoueyres
2020-06-07 16:55     ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rmuw2qd.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pierre.techoueyres@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).