GNU bug report logs - #42824
26.3; Feature request: implement 'smooth scroll' in djvu.el package

Previous Next

Package: emacs;

Reported by: dalanicolai <at> gmail.com

Date: Wed, 12 Aug 2020 08:40:02 UTC

Severity: wishlist

Found in version 26.3

Done: "Roland Winkler" <winkler <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Roland Winkler <winkler <at> gnu.org>
Cc: dalanicolai <at> gmail.com, 42824 <at> debbugs.gnu.org
Subject: bug#42824: 26.3; Feature request: implement 'smooth scroll' in djvu.el package
Date: Mon, 26 Oct 2020 22:42:57 +0100
Roland, could you take a look at this suggestion -- I've not used
djvu.el myself, so I'm not sure whether this would make sense or not:

dalanicolai <at> gmail.com writes:

> The djvu.el pacakge is a beautiful package but unfortunately it is not
> designed for reading djvu documents (The comments in the file say it is
> meant to be used with DjView). Probably for that reason there is no
> smooth scroll over pages implemented (at least I am not aware of that
> functionality), i.e. you can scroll smoothly over a
> single page but you can only do a full page jump to a next or previous
> page.
> This means that when you are at the bottom/top of a page and jump to
> the
> next/previous page then you end up at the bottom/top of that page,
> which is annoying. Anyway, smooth scrolling can be implemented with
> only
> a view simple lines. So I would like to propose to add the following
> lines to djvu.el:
>
>     (defun djvu-scroll-up-or-next-page ()
>       (interactive)
>       (scroll-up-line 5)
>       (when (= (window-vscroll) 0)
>         (djvu-next-page 1)))
>
>     (defun djvu-scroll-down-or-previous-page ()
>       (interactive)
>       (if (not (= (window-vscroll) 0))
>           (scroll-down-line 5)
>         (djvu-prev-page 1)
>         (scroll-up-command))))
>
> By adding these lines emacs can be perfectly used as a djvu reader
> (although it does not show annotations).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.