From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Smooth image scrolling Date: Thu, 08 Oct 2020 06:25:10 +0200 Message-ID: <87h7r5s5sp.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12986"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 08 06:28:11 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kQNXH-0003Is-Lk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 06:28:11 +0200 Original-Received: from localhost ([::1]:53080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQNXG-000730-G4 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 00:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQNUW-00072Q-5A for help-gnu-emacs@gnu.org; Thu, 08 Oct 2020 00:25:20 -0400 Original-Received: from mout.web.de ([217.72.192.78]:33583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQNUU-0001bo-38 for help-gnu-emacs@gnu.org; Thu, 08 Oct 2020 00:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1602131112; bh=Y1+v1SmtBvvfZ7Qf27rpcB3SS5DCX1jPS2G5A4vsEss=; h=X-UI-Sender-Class:From:To:Subject:Date; b=g8OS4HbILY/XL2ZKbqzV9dYrQPc6VR8T/cU6z3rO71lU1kATCw005ECqqM64wu44W MnbPZKdPBEyVlkY9PE7/wpP6Uw+Pj439Zp4we2TRsspcX721PkjPyr2aN1gOiHlT5L auTeo3uzV8GLCwgAp+rBPtlULFrDVlLnFBzwmvaE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.220.78]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MUWFj-1jzoLb2bzP-00RLpk; Thu, 08 Oct 2020 06:25:12 +0200 X-Provags-ID: V03:K1:fnKxqmxbtbIxbOaOzw4CaSezkQtTRwyKKBliFHOxSsCJ8DRW7nx KOk8ejaR4dlcZbTVlrmXxrSCSjguVEmpjdBgCmwr8PQithoxl60DckWpEGzrnDWU8YZRcNG 86qjQSLpUvBBW9U4LgyS9cLwvif7HflhLEV2PzwWp7lRvfJRni3cxAogjfUO09GJLWQKh33 pPc+suCk34PUQYFEqO7Yw== X-UI-Out-Filterresults: notjunk:1;V03:K0:8ywxJCBgLOk=:0i0cU/PiNIIIRJKuQISt4B WY1nfTdmiRYQwF0vjDXp2ALE05vJWQSDNEdHT8Y+SW15iijBQ5o7UQvlZeVnj+bJ8YK74Hajl mQmwSJhDGmNX3QrGGJYCLTH13LA75BNzJ/J0+JQVQdFcqH2VbFkgeAmjBKxErdMaOdu0aYVyY MchesoymRsLsQ4o4ocs9CNFiwTNQMXxC5I0hlKDJ1EM+EBYn/iKGdgU/4AwCRb6uPVSXKxyrj LWhLc8WL5UQLplu7qEJAXhhLioSOBCdXXPfHbUNwYqbjN8VgJwxuRlUndTpVTPsYkSbiYCw6b 9qut/oqJeLxLpZifP/UybSFu/s5ibrJPYPGA/vfuJNBJW7LVQ1VaS3obnm5X8p7mgC+cPOqqd St8BUCKugL2Qzk6a2PW/AsoPmnrlrI4yEfrREAtB5YzCuvaXhPYcHveOk7uGCrQQ/7t6FFftC /eINn0pweyAFZZwAhSiZ0PUeXrF2voQaLl7087hHYAtVcQPx/84g8StzT2lBmzeFKDKD30Gc0 dJmPjFe/ivH6qjd0/Ws+kHzTPtkgCE6AWPQqYDMakYhiHvT1ycBlncUuLQc6yYXukw6rprtKu uo1mdGXUMez17KT2ja4W8Er/6E+HG+QxnWOlJHtCaJ7zle0W/R/o8fKqTd9OWbcWBh+aTMnuy Z7efNDVhplpw0h495C6K7ukF6j9njnOgtchSqlaqVGwUy2eCW05Tlw3UHExnhljOYKey13Gut DIQRc5MP1WrHnUs20qSgnzRxI/NbS8ymF7EUufNN4zsp/rk/zkAUlLNC1qBEUN538WoBsmo5 Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/08 00:25:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124370 Archived-At: Hello, sorry to bring up again this old topic, but I couldn't find a solution that I liked. I have experimented with Calc and making the output buffer show the results as an image (gotten from tex'ing the latex form of the result). Normally, the calc buffers are only a few lines tall, and one image may be quite as large, or even larger. Everything is narrow. Normal mouse-whell scrolling just jumps past the image, so you have no chance to see the second half of it. Even if I scroll in one-line steps. So I experimented with scrolling by changing the window's vscroll (as image-mode uses to do). Oh, pixel-scroll-mode doesn't behave much nicer, so that didn't help. But now changing the windows vscroll comes with new problems. When increasing the window's vscroll (say, by one) moves the cursor out of view, Emacs (redisplay I guess) moves it back into the visible buffer part (it doesn't change point), and what I get is actually scrolling backwards. I then tried to adjust point manually, which is not that simple. But even then - when I want to get back to standard scrolling (say I have now scrolled past the first image), Emacs silently undoes the vscroll setting, again scrolling backwards in effect. So I would have to handle that effect as well, probably reimplementing more or less the whole scrolling algorithms. Do I miss something, or is this really ... a bit hard to achieve? TIA, Michael.