]> git.eshelyaron.com Git - emacs.git/commitdiff
(hfy-fontify-buffer): Inhibit read only
authorMichael Brumlow <m@brumlow.io>
Sun, 23 Jun 2019 18:10:21 +0000 (20:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 23 Jun 2019 18:11:33 +0000 (20:11 +0200)
* 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

index f37a76cd7b510ffbb7fd36f90d16c9d991ecb67f..c7414a20be8b716c150f2a8276e029bee110200f 100644 (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)