From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: line-pixel-height beyond eol Date: Tue, 12 Sep 2017 18:13:40 +0300 Message-ID: <83a820q7a3.fsf@gnu.org> References: <0963B695-945E-4DFD-8703-BCCB4562480F@misasa.okayama-u.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1505229283 5505 195.159.176.226 (12 Sep 2017 15:14:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 15:14:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 12 17:14:36 2017 Return-path: Envelope-to: ged-emacs-devel@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 1drmt9-0008Ru-1W for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 17:14:11 +0200 Original-Received: from localhost ([::1]:36451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmtG-0000BV-Es for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 11:14:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmsh-00009V-AG for emacs-devel@gnu.org; Tue, 12 Sep 2017 11:13:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drmse-0003vU-3u for emacs-devel@gnu.org; Tue, 12 Sep 2017 11:13:43 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmse-0003vO-0g; Tue, 12 Sep 2017 11:13:40 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2008 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1drmsd-00084l-DR; Tue, 12 Sep 2017 11:13:39 -0400 In-reply-to: <0963B695-945E-4DFD-8703-BCCB4562480F@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Tue, 12 Sep 2017 19:12:23 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218121 Archived-At: > From: Tak Kunihiro > Date: Tue, 12 Sep 2017 19:12:23 +0900 > 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. The display engine only renders what's on the screen. > Since point is on the line, the function `line-pixel-height’ returns > height of image instead of that of text. Correct. line-pixel-height is not documented to depend on what is displayed on the screen, it reports the dimensions of the line as a whole. > 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? I don't think I understand what value you want to obtain. Can you elaborate, and perhaps also explain what do you want to do with that value and why?