From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#62048: 30.0.50; Non-nil `line-spacing' takes precendence over 'line-height t text property Date: Wed, 08 Mar 2023 12:18:59 +0000 Message-ID: <87ilfbe8r0.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16724"; mail-complaints-to="usenet@ciao.gmane.io" To: 62048@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 08 13:18:22 2023 Return-path: Envelope-to: geb-bug-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 1pZskP-000414-WE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Mar 2023 13:18:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZskM-0000mu-02; Wed, 08 Mar 2023 07:18:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZsk8-0000lz-Na for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2023 07:18:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZsk6-0000T7-6t for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2023 07:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZsk6-0007zD-2L for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2023 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Mar 2023 12:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62048 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167827787130678 (code B ref -1); Wed, 08 Mar 2023 12:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2023 12:17:51 +0000 Original-Received: from localhost ([127.0.0.1]:48000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZsju-0007yj-R0 for submit@debbugs.gnu.org; Wed, 08 Mar 2023 07:17:51 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZsjs-0007yZ-Op for submit@debbugs.gnu.org; Wed, 08 Mar 2023 07:17:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZsjs-0000dN-J0 for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2023 07:17:48 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZsjp-0000R2-AQ for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2023 07:17:48 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C32A0240569 for ; Wed, 8 Mar 2023 13:17:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678277861; bh=AA/D/TO8kWNbce1Zx9AJ62hpYvyuO4W92LLiY09gXU8=; h=From:To:Subject:Date:From; b=V10QpjDyxp5Y91cSKqY6JuTmjki3yukSsxzFxfdNQGZpm6IazJmVWJ314MGJRGjly tcpX72COgsubLFeytjY3KtiWSwex8qh0Dg/m8wJzYR2i9tFzUsCU/udGUBE5BL8Hu+ PTEkZis+wxr5zcqr/sf0GR+9RgMO5dRFrhYebAvZc0/gf42LI5xBImQWaKZgDYLca5 ZG12GTv+WmcJJAdjBTExUT2nTwfHQLpaQdBot4QAtsrbgzqXqq/QyZkFE2ckBJBrGW 7rnU9IAmNypBQdc4vuQXp9IUhJvOW+m5scokjiNP7E93KWWpauTo6qEasBMuey6XND DgrF9ianz1OgA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PWrtB6lWRz9rxQ for ; Wed, 8 Mar 2023 13:17:37 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257530 Archived-At: Hi, According to 41.11 Line Height section of Elisp manual, A newline can have a =E2=80=98line-height=E2=80=99 text or overlay p= roperty that controls the total height of the display line ending in that newline. The property value can be one of several forms: =20=20=20=20 =E2=80=98t=E2=80=99 If the property value is =E2=80=98t=E2=80=99, the newline characte= r has no effect on the displayed height of the line=E2=80=94the visible contents a= lone determine the height. The =E2=80=98line-spacing=E2=80=99 property= , described below, is also ignored in this case. This is useful for tiling small images (or image slices) without adding blank areas between the images. AFAIU, it implies that buffer-local `line-spacing' value is also ignored. Consider the following minimal example: 1. emacs -Q 2. (setq-default line-spacing 0.15) 3. (with-silent-modifications (insert-sliced-image (create-image "/path/to/= some/image") nil nil 10 nil)) Expected: the spliced image is displayed without gaps. Observed: visible gaps between image rows If I understand correctly, `insert-sliced-image' tries to avoid the gaps by (insert (propertize "\n" 'line-height t)). But it does not seem to be working. Am I missing something? In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.17.6) of 2023-02-13 built on localhost Repository revision: df5c1c9370ca3c6a6e119278ef6bb1e3bca4d578 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Gentoo Linux --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at