From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#25824: 25.1; bugs about display specfications Date: Fri, 24 Feb 2017 15:01:19 +0900 Message-ID: <87bmtsnn4g.fsf@gmail.com> References: <87poicrxc9.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487916139 24707 195.159.176.226 (24 Feb 2017 06:02:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 06:02:19 +0000 (UTC) Cc: 25824@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 07:02:14 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 1ch8xH-0005Yu-MJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 07:02:11 +0100 Original-Received: from localhost ([::1]:34887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch8xL-00040u-WA for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 01:02:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch8xE-0003zL-03 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 01:02:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch8x9-0001aK-2v for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 01:02:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ch8x8-0001aG-Vc for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 01:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ch8x8-0005L5-Ju for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 01:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 06:02:02 +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.148791608520482 (code B ref 25824); Fri, 24 Feb 2017 06:02:02 +0000 Original-Received: (at 25824) by debbugs.gnu.org; 24 Feb 2017 06:01:25 +0000 Original-Received: from localhost ([127.0.0.1]:53453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch8wX-0005KI-9W for submit@debbugs.gnu.org; Fri, 24 Feb 2017 01:01:25 -0500 Original-Received: from mail-pg0-f52.google.com ([74.125.83.52]:33290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch8wV-0005K6-WA for 25824@debbugs.gnu.org; Fri, 24 Feb 2017 01:01:24 -0500 Original-Received: by mail-pg0-f52.google.com with SMTP id z128so7074070pgb.0 for <25824@debbugs.gnu.org>; Thu, 23 Feb 2017 22:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=YUEKHj8nu3E0Dlsix6c+GQWzoslej/EZab0io36WU58=; b=BGNKQqrOIoQQBNHXPexnqwlMdai8sJBL7TeZWqynNOOIX+0VruMAJpf3TPFWRnKwNY wgeo2Fx0o2sTUbyCpjteFM5qOV791X8aXOVWB0yNl1iJ1bKCYBJtowJ4XWQ2ewgMo9rX jETdErVtxYhP7sD8FZLckCr7+NGI96n6OWS1ohEJl1r5QQiPoRq5SrY8cUxMrxW9rG/G bNaYJpjcFA9pA2z4pgEb/+yA6kGTQQu64EwbkojqbvN7Wn/6B45tphz8Q0phtwgsjE3E dJwcNNlOQaPZ7wp6Sju4nbNG2FubI+uBLLclTFKzXXavnFzdsye6FjwX4uJd+ShrgW2c GDVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=YUEKHj8nu3E0Dlsix6c+GQWzoslej/EZab0io36WU58=; b=biFQ/pmPJoIWiWCeTnOcChQfOdyqZVHTwAAkxA4KvCD2qX3YnIOfZ/YMAkJ09SCS97 UsGYQLa0JfBKPJnKp76l1wWWEgCzNzt8eHXT2mp9Zm3URsYZObrE9ZGb2gYORw84tlrk i+aLMogQuSHoya0joa04mbjW0cvrzBGNBBgIEl7fRBk70CDyy3/JCtm7GlqISn0+Mf6w 90AYUh/TeP2VLSxuCgroz6G0jJhPeWaFuzHNerD/Eqw1xsyc4shRoZR6OnQNO+7un8I1 +5nhfJ7Lp4vzToVsq6Dx/9FcMG7pVs+v6X5WD+LFrtqOqrR/eTJxm1Ui6L9JWOSzksR1 FgYA== X-Gm-Message-State: AMke39l/QI4JvSM5ntRWH8S0+Py/rEI9vdG/LKrYXZoH8BCgu3h6/SjMgKD75uXdtOGfnA== X-Received: by 10.98.149.80 with SMTP id p77mr608791pfd.56.1487916078235; Thu, 23 Feb 2017 22:01:18 -0800 (PST) Original-Received: from PNUT-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59]) by smtp.gmail.com with ESMTPSA id a1sm12864885pgn.51.2017.02.23.22.01.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2017 22:01:17 -0800 (PST) In-Reply-To: <834lzkucq5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 Feb 2017 17:51:46 +0200") 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:129709 Archived-At: 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. > 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. > 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. For example in my environment, the form below displays 9 lines. (insert (propertize "1\n2\n3\n4\n5\n6\n7\n8\n9\n" 'display '(height 5))) And the form below displays 7 lines. (insert (propertize "1\n2\n3\n4\n5\n6\n7\n8\n9\n" 'display '((raise -1.3) (height 5))))