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: Re: line-pixel-height beyond eol Date: Thu, 14 Sep 2017 08:14:26 +0900 (JST) Message-ID: <20170914.081426.783469864848954364.tkk@misasa.okayama-u.ac.jp> References: <83a820q7a3.fsf@gnu.org> <20170913.092430.784440060052023776.tkk@misasa.okayama-u.ac.jp> <83shfqobxv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1505345883 5555 195.159.176.226 (13 Sep 2017 23:38:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 23:38:03 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 14 01:37:59 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 1dsHEF-0001MG-5f for ged-emacs-devel@m.gmane.org; Thu, 14 Sep 2017 01:37:59 +0200 Original-Received: from localhost ([::1]:45046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsHEM-00037s-3O for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2017 19:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsHED-00037g-CI for emacs-devel@gnu.org; Wed, 13 Sep 2017 19:37:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsHE8-0006Bc-GU for emacs-devel@gnu.org; Wed, 13 Sep 2017 19:37:57 -0400 Original-Received: from mxl069v64.mxlogic.net ([208.81.69.64]:38341 helo=s18p02o141.mxlogic.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dsHE7-00068v-ST for emacs-devel@gnu.org; Wed, 13 Sep 2017 19:37:52 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o141.mxlogic.net(mxl_mta-8.5.0-1834) with ESMTP id f41c9b95.7f9a4ffff700.481458.00-535.951777.s18p02o141.mxlogic.net (envelope-from ); Wed, 13 Sep 2017 17:37:51 -0600 (MDT) X-MXL-Hash: 59b9c14f3617d95b-33423f1da27eedff9834e5993220b1d9fa248056 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o141.mxlogic.net(mxl_mta-8.5.0-1834) over TLS secured channel with ESMTP id bdbb9b95.0.481187.00-396.951245.s18p02o141.mxlogic.net (envelope-from ); Wed, 13 Sep 2017 17:14:36 -0600 (MDT) X-MXL-Hash: 59b9bbdc15187376-f07ff7e43913b57144358a4cd3dc28a799a4ed69 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 446a_ae7b_44a58a8a_4ea4_4491_961b_dde5ae21b832; Thu, 14 Sep 2017 08:14:28 +0900 Original-Received: from localhost (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id CDED54C0AB3; Thu, 14 Sep 2017 08:14:28 +0900 (JST) In-Reply-To: <83shfqobxv.fsf@gnu.org> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6115=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6115> : inlines <6067> : streams <1762893> : uri <2499925> X-AnalysisOut: [v=2.2 cv=F90nTupN c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=2JC] X-AnalysisOut: [JgTwv5E4A:10 a=fNktsW9CS53yblJ5n5MA:9 a=Z6uSIdIYRjDKC2Ia:2] X-AnalysisOut: [1 a=ZUKaNurCwZ7qMUAq:21 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5200000000; CM=0.500; MH=0.520(2017091311); S=0.446(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.64 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:218245 Archived-At: Thank you for the response. >> The building block of pixel-wise scrolling is described as below. >> >> (progn (vertical-motion 1) >> (dolist (vs (number-sequence 1 (1- (frame-char-height)))) >> (set-window-vscroll nil vs t) (sit-for 0.01)) >> (scroll-up 1)) >> > I think you may be trying a specific solution too early. I'm not yet > sure I understand why the original code doesn't work for your needs. Let me rephrase. More specifically, the building block of pixel-wise scrolling is described as below. (progn (vertical-motion 1) (dolist (vs (number-sequence 1 (1- (save-excursion (goto-char (window-start)) (line-pixel-height))))) (set-window-vscroll nil vs t) (sit-for 0.01)) (scroll-up 1)) Let's assume a line with image of height 144 pixel is located on the top line. When auto-hscroll-mode is off and (current-column) is large (the 144 pixel image is scrolled left), the top line looks 27 pixel height but (line-pixel-height) returns 144 pixel. The inconsistency results in jump. I hope this describes my concern!