aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brumlow2019-06-23 20:10:21 +0200
committerLars Ingebrigtsen2019-06-23 20:11:33 +0200
commitb439b3bb5a44bc61cec3f5c8e3e3ea37760dfb29 (patch)
tree1296a55c879af9c0643cdc0ebfdbd967d3626317
parent4e0cefcf2a300da305e9184af9294c6ed33fb244 (diff)
downloademacs-b439b3bb5a44bc61cec3f5c8e3e3ea37760dfb29.tar.gz
emacs-b439b3bb5a44bc61cec3f5c8e3e3ea37760dfb29.zip
(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
-rw-r--r--lisp/htmlfontify.el3
1 files changed, 2 insertions, 1 deletions
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'.")
1651SRCDIR, if set, is the directory being htmlfontified. 1651SRCDIR, if set, is the directory being htmlfontified.
1652FILE, if set, is the file name." 1652FILE, if set, is the file name."
1653 (if srcdir (setq srcdir (directory-file-name srcdir))) 1653 (if srcdir (setq srcdir (directory-file-name srcdir)))
1654 (let* ( (html-buffer (hfy-buffer)) 1654 (let* ( (inhibit-read-only t)
1655 (html-buffer (hfy-buffer))
1655 (css-sheet nil) 1656 (css-sheet nil)
1656 (css-map nil) 1657 (css-map nil)
1657 (invis-ranges nil) 1658 (invis-ranges nil)