|
From: | Christopher Miles |
Subject: | Re: [FEATURE SUGGESTED] Re: [BUG] ov property line height failed on lone length line when exceeded window width |
Date: | Sat, 30 Jan 2021 12:15:03 +0000 |
<#multipart type=alternative> <#part type=text/plain> <#secure method=pgpmime mode=sign>
Eli Zaretskii <eliz@gnu.org> writes:
From: Christopher Miles <numbchild@gmail.com> CC: Christopher Miles <numbchild@gmail.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org> Date: Wed, 27 Jan 2021 14:34:06 +0000
I tried to use text-property to implement this effect, but seems not working.
(with-current-buffer (get-buffer org-agenda-buffer) (let ((position 1084) (inhibit-read-only t)) (goto-char position) (put-text-property (point-at-bol) (1+ (point-at-bol)) 'display " ") (let ((ov (make-overlay (point-at-bol) (1+ (point-at-bol))))) (overlay-put ov 'line-height 100))))
Which text-property did you think will have this effect? The only text-property I see in the snippet above is the 'display' property, but you were talking about 'line-height' property, no?
Aha, you're right, I confused overlay with text-property. I thought text-property also have this effect.
<#part type=text/html> <p> <#secure method=pgpmime mode=sign> </p>
<p> Eli Zaretskii <eliz@gnu.org> writes: </p>
<p> <blockquote class="gmailquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><blockquote class="gmailquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>From: Christopher Miles <numbchild@gmail.com> CC: Christopher Miles <numbchild@gmail.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org> Date: Wed, 27 Jan 2021 14:34:06 +0000 </div> <div> <br /></div> <div>I tried to use text-property to implement this effect, but seems not working. </div> <div> <br /></div> <div>(with-current-buffer (get-buffer org-agenda-buffer) (let ((position 1084) (inhibit-read-only t)) (goto-char position) (put-text-property (point-at-bol) (1+ (point-at-bol)) 'display " ") (let ((ov (make-overlay (point-at-bol) (1+ (point-at-bol))))) (overlay-put ov 'line-height 100))))
</div></blockquote> </div> <div> <br /></div> <div>Which text-property did you think will have this effect? The only text-property I see in the snippet above is the 'display' property, but you were talking about 'line-height' property, no?
</div></blockquote> </p>
<p> Aha, you're right, I confused overlay with text-property. I thought text-property also have this effect. </p> <#/multipart>
<#secure method=pgpmime mode=sign>
Eli Zaretskii <eliz@gnu.org> writes:
From: Christopher Miles <numbchild@gmail.com> CC: Christopher Miles <numbchild@gmail.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org> Date: Wed, 27 Jan 2021 14:34:06 +0000I tried to use text-property to implement this effect, but seems not working.(with-current-buffer (get-buffer org-agenda-buffer) (let ((position 1084) (inhibit-read-only t)) (goto-char position) (put-text-property (point-at-bol) (1+ (point-at-bol)) 'display " ") (let ((ov (make-overlay (point-at-bol) (1+ (point-at-bol))))) (overlay-put ov 'line-height 100))))Which text-property did you think will have this effect? The only text-property I see in the snippet above is the 'display' property, but you were talking about 'line-height' property, no?
Aha, you're right, I confused overlay with text-property. I thought text-property also have this effect.
ATT00002.txt
Description: ATT00002.txt
[Prev in Thread] | Current Thread | [Next in Thread] |