all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: ynyaaa@gmail.com
Cc: 23806@debbugs.gnu.org
Subject: bug#23806: 24.5; can not set line height
Date: Mon, 20 Jun 2016 17:36:27 +0300	[thread overview]
Message-ID: <83a8ig7wr8.fsf@gnu.org> (raw)
In-Reply-To: <87twgotxlc.fsf@gmail.com> (ynyaaa@gmail.com)

tags 23806 + notabug
thanks

> From: ynyaaa@gmail.com
> Date: Mon, 20 Jun 2016 11:15:11 +0900
> 
> `line-height' property is effective only at the newlines,
> so there are no chances to set line height
>   (1) when the line is wrapped
>   (2) when the line is truncated
>   (3) when the line is at the bottom of a buffer
>         and not terminated by newline

Yes.  As clearly documented in the ELisp manual:

     A newline can have a ‘line-height’ text or overlay property that
  controls the total height of the display line ending in that newline.

It talks about "display lines", not physical lines.

The line-height property you put on a newline is designed and
implemented to cater to a specific use case: to allow control of the
effect the newline itself has on the line height.  Since the newline
only affects the height of the display line that ends in that newline,
this is what this feature supports.  It is not a general-purpose way
of controlling the vertical spacing of lines on display.

The node "Line Height" in the ELisp manual describes the line-spacing
variable and frame parameter, which are more general-purpose ways of
controlling vertical layout of text.





  reply	other threads:[~2016-06-20 14:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20  2:15 bug#23806: 24.5; can not set line height ynyaaa
2016-06-20 14:36 ` Eli Zaretskii [this message]
2016-06-21  1:45 ` ynyaaa
2016-06-21 14:24   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a8ig7wr8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23806@debbugs.gnu.org \
    --cc=ynyaaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.