From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: stardiviner Newsgroups: gmane.emacs.help Subject: Re: [BUG] overlay 'line-height property is invalid when window width change Date: Tue, 05 May 2020 10:27:57 +0800 Message-ID: <87pnbjdsk2.fsf@gmail.com> References: <87y2q84mak.fsf@gmail.com> <83r1vzol4g.fsf@gnu.org> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="43300"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4; emacs 28.0.50 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 05 04:29:04 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVnKQ-000B9p-Ua for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 04:29:02 +0200 Original-Received: from localhost ([::1]:59178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVnKP-0000WF-TJ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 22:29:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVnK6-0000W5-4b for help-gnu-emacs@gnu.org; Mon, 04 May 2020 22:28:42 -0400 Original-Received: from [183.249.139.183] (port=1068 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVnJx-0007rd-Cq for help-gnu-emacs@gnu.org; Mon, 04 May 2020 22:28:41 -0400 Original-Received: by dark.localdomain (Postfix, from userid 1000) id E88832413EE; Tue, 5 May 2020 10:28:00 +0800 (HKT) In-reply-to: <83r1vzol4g.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 183.249.139.183 (deferred) Received-SPF: softfail client-ip=183.249.139.183; envelope-from=numbchild@gmail.com; helo=dark.localdomain X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/04 22:28:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123020 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Eli Zaretskii writes: >> From: stardiviner >> Date: Mon, 04 May 2020 07:43:31 +0800 >>=20 >> Here is one post contains screenshots shows what problem I got: >>=20 >> https://emacs-china.org/t/org-agenda/8679/26?u=3Dstardiviner >>=20 >> 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 thous= ands 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 i= s 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 overla= y 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. =2D --=20 [ 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 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6wzy0UHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsOjdAf/Xz4YsTKSy1kFAwaUnNMjn1CoIaxJ V6mAncJuL3+KVQmOANHDVZjImTnWR2xBG4lsLYvGQj8bM9cxTtjOwcM2KtEOONW2 tZPCtwgKwYJ6fYWNW2QLD47AHaqqdaB8aO6WupCXNkifCQnh07rnOC70tyaWS19U MIqX95YkRXZqOs677cT9+X4nDrL0RGCJBW9PDJHD8bpbBjZsK6aRuqSXExsR0vDZ J/OsfGHu35RsmRpfT+a1d9uHEJS6dC+t5MoQWQ1dGqdO0JyN4jlK5Nksgg+gZ9Ch hDtr9btUGFlw7PyuWAs+wzCtt8X6jDaxHnuixBdWFNRxk0eJdwMJ0fXtPA=3D=3D =3DjVyr =2D----END PGP SIGNATURE-----