From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#42824: 26.3; Feature request: implement 'smooth scroll' in djvu.el package Date: Sun, 15 Nov 2020 15:18:45 -0600 Message-ID: <39733.23957.97016.24497@gargle.gargle.HOWL> References: <8916ad6c75c76829bc0b43d6abc88f70e79ee816.camel@gmail.com> <87d014u0im.fsf@gnus.org> <51776.49199.252983.24473@gargle.gargle.HOWL> <39754.26909.124027.24485@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 42824@debbugs.gnu.org To: dalanicolai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 15 22:19:09 2020 Return-path: Envelope-to: geb-bug-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 1kePQR-0004o1-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 22:19:07 +0100 Original-Received: from localhost ([::1]:59964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kePQR-0002PH-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 16:19:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kePQM-0002P5-51 for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 16:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kePQL-0002cG-SA for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 16:19:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kePQL-00066s-Ox for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 16:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Nov 2020 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42824 X-GNU-PR-Package: emacs Original-Received: via spool by 42824-submit@debbugs.gnu.org id=B42824.160547513523473 (code B ref 42824); Sun, 15 Nov 2020 21:19:01 +0000 Original-Received: (at 42824) by debbugs.gnu.org; 15 Nov 2020 21:18:55 +0000 Original-Received: from localhost ([127.0.0.1]:54353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kePQF-00066X-4i for submit@debbugs.gnu.org; Sun, 15 Nov 2020 16:18:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kePQC-00066K-GL for 42824@debbugs.gnu.org; Sun, 15 Nov 2020 16:18:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48405) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kePQ6-0002bd-R0; Sun, 15 Nov 2020 16:18:47 -0500 Original-Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=45322 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kePQ6-0001q9-El; Sun, 15 Nov 2020 16:18:46 -0500 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193383 Archived-At: On Sat Nov 7 2020 dalanicolai wrote: > I do not fully understand what you are referring to with 'more > complete and consistent, but=C2=A0 the functions I've sent in the > request are really small, only 5 lines, and I think they implement > the essence of doc-view its scrolling feature. It was really meant > as just a small extra convenient addition to solve the small, but > inconvenient problem, as explained in the original request. I have updated djvu.el on GNU Elpa, please take a look. I implemented commands for scrolling for the `Read' buffer both in regular (text) mode and image minor mode. Also, I adopted the keybindings from doc-view and added a user option djvu-continuous similar to doc-view-continuous. So likely you may want to customize djvu-continuous. Please, let me know if this works for you, then I can close this bug report. > Well, in the djvu2.el package, I use the info in the annotation > buffer to draw the annotations (using imagemagick its convert > command). Of course as just a plain reader (without annotation > features), doc-view is already a fine reader for djvu documents. You do not need imagemagick convert for this. For the ppm images used by djvu.el, emacs can do that, too, see `djvu-image-rect'. Maybe I'll do that one day. However, adding just the color of the annotations I find less important than also displaying tooltips. These tooltips are displayed in the regular text mode of the Read buffers. I do not know how to generate tooltips based on the pixel coordinates of the mouse pointer over an image.