From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Pixel scrolling support Date: Fri, 26 Nov 2021 20:09:22 +0800 Message-ID: <87y25bdsp9.fsf@yahoo.com> References: <87a6hrzrcv.fsf.ref@yahoo.com> <87a6hrzrcv.fsf@yahoo.com> <87v90fhayx.fsf@yahoo.com> <835ysf4dyr.fsf@gnu.org> <871r33h0th.fsf@yahoo.com> <8335nj4d53.fsf@gnu.org> <87sfvjfli2.fsf@yahoo.com> <83y25b2u2x.fsf@gnu.org> <87k0gvfeoa.fsf@yahoo.com> <83sfvj2m51.fsf@gnu.org> <87bl27f8pp.fsf@yahoo.com> <83o8672kl5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33386"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 26 13:22:52 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqaFg-0008Ww-AH for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 13:22:52 +0100 Original-Received: from localhost ([::1]:49740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqaFf-0001Jk-18 for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 07:22:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqa2q-0004iu-FA for emacs-devel@gnu.org; Fri, 26 Nov 2021 07:09:38 -0500 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:36385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqa2m-0001e9-9v for emacs-devel@gnu.org; Fri, 26 Nov 2021 07:09:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637928570; bh=5Avn7atbxfGyObKC/zRsvxfsvdaJ5JX+sCGZhf4UN1k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=D/aZ1QRFLl5b+qFwdI1/auM9mr3GMQ4dZrGijNWt8lVqgentLFs+9CL5qjGwi8EQkwzHjb3+u05agNwhdl9fEs4n0hIUz8scuDiEGE8qzvVLMW+NfsTdbV5Qq+jx82Y04oKY8mr3J0CKunYX5VaYWo3tarlmKo7isbvAE5aAb37lYEfXLQhZVoQPtdVHqG42D6jAyNu+RWBCPdSPQjfuu5rnqgMqzs30aPOpGYGfw7/wA8rfTxXN3WDZP4kz7zFRn40TNaQ2GO9YfsJFUDrvfutr3248h0OTWs1PUfzRnXp1tuzu+hEATr+DhhKP+4XEfbwOTBTN9CujeauVvPFghA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637928570; bh=SIyKnYfMOunwX5FnphiIgg+ZGFcWrriUA4OoNtl+jL0=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=IuZgpECWUNN0XAMFfb6DoNhX8ki0HHjvLxnLZKpfcvkQYND53eDQv64y09uqNLe7aYc4I9w3T5fQvIlekgwAGK9p3LakNxXV7LAMhbWcbT1RIGSJB2z3D9nJydfPsEr5fOar1/yRMZVwlSDm6YnX5z2AsHHaTBed0uh+C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onic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Fri, 26 Nov 2021 12:09:30 +0000 Original-Received: by kubenode517.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2b4bd9266685f6d543b87a51c401cd2d; Fri, 26 Nov 2021 12:09:27 +0000 (UTC) In-Reply-To: <83o8672kl5.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Nov 2021 14:00:06 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280227 Archived-At: Eli Zaretskii writes: >> pixel-scroll-mode still scrolls by lines, it just tries to animate each >> line movement. It's very unpleasant to use that with a precision scroll >> wheel. > Well, that sounds like a good description of the difference (minus the > "unpleasant" part) to have in the NEWS entry. I'll add that to the NEWS entry, thanks. >> I use `posn-at-x-y' to determine the position closest to the first line >> to be displayed on screen after the window is vscrolled by DELTA. > How do you know which line is "the first line to be displayed on > screen after the window is vscrolled by DELTA"? That's the bit I'm > missing, I think. Basically, the first line that's displayed in the window (which might not be the line at window start if the window is vscrolled). > What is "the delta by which the window is being scrolled"? Is that > the window's vscroll or is that something else? It's the pixel delta by which the window will be scrolled vertically. > Of course, it does. It might not be exposed to Lisp (I didn't look > closely enough), but it is certainly supported on the C level. Hmm, it would be great to expose that to Lisp, as right now `set-window-hscroll' only accepts columns and not pixels. Thanks.