1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

(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
This commit is contained in:
Michael Brumlow 2019-06-23 20:10:21 +02:00 committed by Lars Ingebrigtsen
parent 4e0cefcf2a
commit b439b3bb5a

View File

@ -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)