emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FEATURE SUGGESTED] Re: [BUG] ov property line height failed on lone


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> &lt;#secure method=pgpmime mode=sign&gt; </p>

<p> Eli Zaretskii &lt;eliz@gnu.org&gt; 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 &lt;numbchild@gmail.com&gt; CC: Christopher Miles &lt;numbchild@gmail.com&gt;, "emacs-devel@gnu.org" &lt;emacs-devel@gnu.org&gt; 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 +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.

Attachment: ATT00002.txt
Description: ATT00002.txt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]