From: stardiviner <numbchild@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [BUG] overlay 'line-height property is invalid when window width change
Date: Tue, 05 May 2020 10:27:57 +0800 [thread overview]
Message-ID: <87pnbjdsk2.fsf@gmail.com> (raw)
In-Reply-To: <83r1vzol4g.fsf@gnu.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Eli Zaretskii <eliz@gnu.org> writes:
>> From: stardiviner <numbchild@gmail.com>
>> Date: Mon, 04 May 2020 07:43:31 +0800
>>
>> Here is one post contains screenshots shows what problem I got:
>>
>> https://emacs-china.org/t/org-agenda/8679/26?u=stardiviner
>>
>> I tried many ways to debug this issue.
>
> Can you please describe the problem in more detail? What does it mean
> for the line-height property to be "invalid", and how does this affect
> the display?
It's a kind of hard to describe this clearly. An image is better than thousands
of words. In my shared link, you can see some images, especial the GIF
animation. It shows when the overlay line-height is invalid, when when it is ok
again.
>
> Also, if you can show a short Lisp snippet to reproduce this starting
> from "emacs -Q" and preferably without loading Org or using any of
> Org's features, that would be appreciated.
You're right, I should test a very simple elisp code snippet to test overlay line-height.
Here it is:
#+begin_src emacs-lisp
(let ((line-height 20)
(ov (make-overlay (point-at-bol) (1+ (point-at-eol)))))
(overlay-put ov 'face '(:background "yellow"))
(overlay-put ov 'line-height line-height)
(overlay-put ov 'line-spacing (1- line-height)))
#+end_src
It works fine. Weird. So seems it has some special settings in Org Agenda. But I
try to debug, have not found any clue.
Sorry for the disturb.
- --
[ 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
-----BEGIN PGP SIGNATURE-----
iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6wzy0UHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsOjdAf/Xz4YsTKSy1kFAwaUnNMjn1CoIaxJ
V6mAncJuL3+KVQmOANHDVZjImTnWR2xBG4lsLYvGQj8bM9cxTtjOwcM2KtEOONW2
tZPCtwgKwYJ6fYWNW2QLD47AHaqqdaB8aO6WupCXNkifCQnh07rnOC70tyaWS19U
MIqX95YkRXZqOs677cT9+X4nDrL0RGCJBW9PDJHD8bpbBjZsK6aRuqSXExsR0vDZ
J/OsfGHu35RsmRpfT+a1d9uHEJS6dC+t5MoQWQ1dGqdO0JyN4jlK5Nksgg+gZ9Ch
hDtr9btUGFlw7PyuWAs+wzCtt8X6jDaxHnuixBdWFNRxk0eJdwMJ0fXtPA==
=jVyr
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2020-05-05 2:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-03 23:43 [BUG] overlay 'line-height property is invalid when window width change stardiviner
2020-05-04 14:00 ` Eli Zaretskii
2020-05-05 2:27 ` stardiviner [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=87pnbjdsk2.fsf@gmail.com \
--to=numbchild@gmail.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@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.
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).