all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35025: [PATCH 1/1] htmlfontify-buffer read-only text
@ 2019-03-27 22:22 Michael Brumlow
  2019-06-23 18:10 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Brumlow @ 2019-03-27 22:22 UTC (permalink / raw)
  To: 35025

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]


When trying to htmlfontify read only text I ran into a issue when 
trying to copy
a read only ERC buffer. It failed because the text copied had the 
property of
being read only. I found where hfy-fontify-buffer tries to remove 
the text
properties but fails to do so because the text is read only.

By adding (inhibit-read-only t) in the let statement at the top of 
the function
I was able to correct this issue.

Patch attached.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: htmlfontify read-only fix --]
[-- Type: text/x-diff, Size: 601 bytes --]

diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 9fc029ec58..131d719fad 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -1652,7 +1652,8 @@ hfy-fontify-buffer
 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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#35025: [PATCH 1/1] htmlfontify-buffer read-only text
  2019-03-27 22:22 bug#35025: [PATCH 1/1] htmlfontify-buffer read-only text Michael Brumlow
@ 2019-06-23 18:10 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-06-23 18:10 UTC (permalink / raw)
  To: Michael Brumlow; +Cc: 35025

Michael Brumlow <m@brumlow.io> writes:

> When trying to htmlfontify read only text I ran into a issue when
> trying to copy a read only ERC buffer. It failed because the text
> copied had the property of being read only. I found where
> hfy-fontify-buffer tries to remove the text properties but fails to do
> so because the text is read only.
>
> By adding (inhibit-read-only t) in the let statement at the top of the
> function I was able to correct this issue.

Thanks; applied to Emacs 27.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-23 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 22:22 bug#35025: [PATCH 1/1] htmlfontify-buffer read-only text Michael Brumlow
2019-06-23 18:10 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.