From: Michael Brumlow Date: Sun, 23 Jun 2019 18:10:21 +0000 (+0200) Subject: (hfy-fontify-buffer): Inhibit read only X-Git-Tag: emacs-27.0.90~2297 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b439b3bb5a44bc61cec3f5c8e3e3ea37760dfb29;p=emacs.git (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 --- 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)