unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Miles <numbchild@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Christopher Miles <numbchild@gmail.com>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
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	[thread overview]
Message-ID: <PAXPR08MB664033DC5F37E351E994A4AFA3B89@PAXPR08MB6640.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <834kiyaj2b.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 2351 bytes --]

<#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>

[-- Attachment #1.2: Type: text/html, Size: 3310 bytes --]

[-- Attachment #2: ATT00001.htm --]
[-- Type: text/html, Size: 1373 bytes --]

[-- Attachment #3: ATT00002.txt --]
[-- Type: text/plain, Size: 253 bytes --]

-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

      reply	other threads:[~2021-01-30 12:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 10:23 [BUG] ov property line height failed on lone length line when exceeded window width numbchild
2020-06-03 11:07 ` Eli Zaretskii
     [not found]   ` <CAL1eYuJ0_rTgUr3bimtQHcX3fPG72sdhU53h9kkZ_jbiLaNpaA@mail.gmail.com>
2020-06-03 14:43     ` Eli Zaretskii
2020-06-04  0:43       ` stardiviner
2020-06-04 13:16         ` Eli Zaretskii
2020-06-04 15:46           ` stardiviner
2020-06-05 11:58             ` Eli Zaretskii
2020-06-05 15:59               ` stardiviner
2021-01-27 13:59               ` Christopher Miles
2021-01-27 14:34       ` [FEATURE SUGGESTED] " Christopher Miles
2021-01-30  9:08         ` Eli Zaretskii
2021-01-30 12:15           ` Christopher Miles [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PAXPR08MB664033DC5F37E351E994A4AFA3B89@PAXPR08MB6640.eurprd08.prod.outlook.com \
    --to=numbchild@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).