help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [BUG] overlay 'line-height property is invalid when window width cha


From: stardiviner
Subject: Re: [BUG] overlay 'line-height property is invalid when window width change
Date: Tue, 05 May 2020 10:27:57 +0800
User-agent: mu4e 1.4; emacs 28.0.50

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



reply via email to

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