From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25824: 25.1; bugs about display specfications Date: Fri, 24 Feb 2017 10:23:13 +0200 Message-ID: <83tw7kro9a.fsf@gnu.org> References: <87bmtsnn4g.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487924659 22654 195.159.176.226 (24 Feb 2017 08:24:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 08:24:19 +0000 (UTC) Cc: 25824@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 09:24:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBAi-0005Gq-Dl for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 09:24:12 +0100 Original-Received: from localhost ([::1]:35393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBAo-00051G-6G for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 03:24:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBAe-0004zy-8a for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:24:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chBAZ-0006xA-7A for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:24:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chBAZ-0006wq-2a for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chBAX-0000Kt-Oa for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 08:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25824-submit@debbugs.gnu.org id=B25824.14879246321275 (code B ref 25824); Fri, 24 Feb 2017 08:24:01 +0000 Original-Received: (at 25824) by debbugs.gnu.org; 24 Feb 2017 08:23:52 +0000 Original-Received: from localhost ([127.0.0.1]:53511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBAO-0000KV-1w for submit@debbugs.gnu.org; Fri, 24 Feb 2017 03:23:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBAM-0000KJ-NT for 25824@debbugs.gnu.org; Fri, 24 Feb 2017 03:23:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chBAD-0006rY-N5 for 25824@debbugs.gnu.org; Fri, 24 Feb 2017 03:23:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBAD-0006rT-Jz; Fri, 24 Feb 2017 03:23:41 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1244 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1chBAC-0001oq-PN; Fri, 24 Feb 2017 03:23:41 -0500 In-reply-to: <87bmtsnn4g.fsf@gmail.com> (ynyaaa@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129719 Archived-At: > From: ynyaaa@gmail.com > Cc: 25824@debbugs.gnu.org > Date: Fri, 24 Feb 2017 15:01:19 +0900 > > Eli Zaretskii writes: > > Only if the replacement comes from a before- or after-string (in which > > case the text won't be replaced, so you will have to hide it with some > > invisible property). Put the 'raise' display property on the overlay > > string, and you will have what you want. > > Overlays are not editable with kill and yank, > so text properties are better. Then I'm afraid you are out of luck, because Emacs doesn't support recursive 'display' properties, i.e. a 'display' property that is a string which has another 'display' property for (a part of) that string. > > What the display engine does is reserve space above > > the baseline that is large enough for the enlarged font, and then draw > > the "X" with a negative offset relative to the baseline, by enlarging > > the 'descent' value of that particular glyph, which adds vertical > > space _below_ the line. > > I wonder why the display engine does not take 'rase' into account > when reserving space above the baseline. AFAIU, it's just a side effect of the implementation: 'raise' is implemented as modifications of the ascent or descent, so it behaves like these attributes of any glyph would. > > Does the below do what you want? If not, perhaps I don't understand > > what you mean by "centered". > > > > (insert "A" (propertize "X" 'display '((raise -0.2) (height 2)))) > > It is enough for only one line. > With blank areas, emacs can display fewer lines. Yes, there are limitations of what can be done in Emacs as far as text layout is concerned.