From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: line-pixel-height beyond eol Date: Tue, 12 Sep 2017 19:12:23 +0900 Message-ID: <0963B695-945E-4DFD-8703-BCCB4562480F@misasa.okayama-u.ac.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505211204 14908 195.159.176.226 (12 Sep 2017 10:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 10:13:24 +0000 (UTC) Cc: Kunihiro Tak To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 12 12:13:15 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 1driBc-0002XM-32 for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 12:12:56 +0200 Original-Received: from localhost ([::1]:34682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1driBj-0007OG-50 for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 06:13:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1driBa-0007O4-CE for emacs-devel@gnu.org; Tue, 12 Sep 2017 06:12:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1driBW-0003bI-Cn for emacs-devel@gnu.org; Tue, 12 Sep 2017 06:12:54 -0400 Original-Received: from mxl069v66.mxlogic.net ([208.81.69.66]:16797 helo=s18p02o143.mxlogic.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1driBV-0003Pi-Ol for emacs-devel@gnu.org; Tue, 12 Sep 2017 06:12:50 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1834) over TLS secured channel with ESMTP id 813b7b95.0.429917.00-377.848409.s18p02o143.mxlogic.net (envelope-from ); Tue, 12 Sep 2017 04:12:41 -0600 (MDT) X-MXL-Hash: 59b7b31928d15be2-52c2ff4164beb1a9830762fa7f419542e2dbf092 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 463b_0310_9ab8668d_dbe6_49ad_a6d7_bde51fb29703; Tue, 12 Sep 2017 19:12:36 +0900 Original-Received: from [192.168.1.50] (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 9D48A4C0B16; Tue, 12 Sep 2017 19:12:36 +0900 (JST) X-Mailer: Apple Mail (2.1878.6) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 6 Rules triggered GEN_SPAM_FEATRE=0.1, TRK_NCM1=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6113=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6113> : inlines <6063> : streams <1762673> : uri <2499105> X-AnalysisOut: [v=2.2 cv=E6K9neVl c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=N659UExz7-8A:10 a=2JC] X-AnalysisOut: [JgTwv5E4A:10 a=mDV3o1hIAAAA:8 a=doLZya8ere7n-B3Ue6oA:9 a=p] X-AnalysisOut: [ILNOxqGKmIA:10 a=_FVE-zBwftR9WsbkzFJk:22] X-Spam: [F=0.5200000000; CM=0.500; MH=0.520(2017091205); S=0.327(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 208.81.69.66 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:218110 Archived-At: I want to scroll pixel-wise with auto-hscroll-mode off. When auto-hscroll-mode is nil, `hollow=92 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=92 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) =3D> 144 M-: (setq auto-hscroll-mode nil) M-: (set-window-hscroll nil 256) M-: (line-pixel-height) =3D> 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=92 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?