unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* line-pixel-height beyond eol
@ 2017-09-12 10:12 Tak Kunihiro
  2017-09-12 15:13 ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Tak Kunihiro @ 2017-09-12 10:12 UTC (permalink / raw)
  To: emacs-devel; +Cc: Kunihiro Tak

I want to scroll pixel-wise with auto-hscroll-mode off.

When auto-hscroll-mode is nil, `hollow’ cursor can go over the end
of line with an inline image.  As soon as the image is scrolled out to
the left, on display, height of line shrinks to frame-char-height.

Since point is on the line, the function `line-pixel-height’ returns
height of image instead of that of text.

  GNU Emacs 26.0.50 (build 3, x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))
  src/emacs -Q
  M-x eww
  www.gnu.org
  C-n 16 times (to reach to GNU image)
  M-: (line-pixel-height) => 144
  M-: (setq auto-hscroll-mode nil)
  M-: (set-window-hscroll nil 256)
  M-: (line-pixel-height) => 144

  -- Function: line-pixel-height
     This function returns the height in pixels of the line at point in
     the selected window.  The value includes the line spacing of the
     line (*note Line Height::).

Is there a way to obtain the height in pixels of the line at the `hollow’
point in the selected window?  Or is there a way to maintain the height of
a line even when an image is horizontally scrolled out?






^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-10-17 16:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-12 10:12 line-pixel-height beyond eol Tak Kunihiro
2017-09-12 15:13 ` Eli Zaretskii
2017-09-13  0:24   ` Tak Kunihiro
2017-09-13 15:28     ` Eli Zaretskii
2017-09-13 23:14       ` Tak Kunihiro
2017-09-14 17:53         ` Eli Zaretskii
2017-09-15  1:39           ` Tak Kunihiro
2017-09-15 17:35             ` Eli Zaretskii
2017-09-23 12:57               ` Tak Kunihiro
2017-09-23 13:16                 ` Eli Zaretskii
2017-10-05  9:50                   ` Tak Kunihiro
2017-10-09 13:31                     ` Eli Zaretskii
2017-10-16  5:13                       ` Tak Kunihiro
2017-10-16 16:16                         ` Eli Zaretskii
2017-10-17  0:29                           ` Tak Kunihiro
2017-10-17 16:37                             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).