From b439b3bb5a44bc61cec3f5c8e3e3ea37760dfb29 Mon Sep 17 00:00:00 2001 From: Michael Brumlow Date: Sun, 23 Jun 2019 20:10:21 +0200 Subject: [PATCH] (hfy-fontify-buffer): Inhibit read only * lisp/htmlfontify.el (hfy-fontify-buffer): Inhibit read only to enable the function to work with text that comes from buffers that put read-only text properties on things (bug#35025). Copyright-paperwork-exempt: yes --- lisp/htmlfontify.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el index f37a76cd7b5..c7414a20be8 100644 --- a/lisp/htmlfontify.el +++ b/lisp/htmlfontify.el @@ -1651,7 +1651,8 @@ The default handler is `hfy-end-span'.") SRCDIR, if set, is the directory being htmlfontified. FILE, if set, is the file name." (if srcdir (setq srcdir (directory-file-name srcdir))) - (let* ( (html-buffer (hfy-buffer)) + (let* ( (inhibit-read-only t) + (html-buffer (hfy-buffer)) (css-sheet nil) (css-map nil) (invis-ranges nil)