For anyone who is interested, here are improved versions of image-roll.el and doc-view.el, providing continuous scroll in doc-view. First load `image-mode.el` then load the attached `doc-view.el` and open some document (e.g. (pdf, djvu or epub) in doc-view. After all pages have been converted, do `M-x doc-view-continuous-scroll-minor-mode`. Scroll with arrows, PgUp/PgDn, and S-PgUp/S-PgDn. Except for the minor issue (depending on how to define minor) as decribed in the my previous mails, things seem to work mostly fine (when scrolling in a single buffer). On Fri, 29 Apr 2022 at 16:46, dalanicolai wrote: > Never mind about the first issue, it was due to a little mistake. I'll > attach the corrected version here. > For some reason the 'corrected' version refuses to scroll initially (when > using emacs -Q, it scrolls > correctly immediately on Spacemacs), but after a jump to some page, the > scrolling > can be tested. I find now that there is a small bug when scrolling forward > (when using emacs -Q, > the bug does not 'show' on Spacemacs). > > The second issue mentioned above stays relevant. > > Anyway, I think it looks quite nice. > > On Fri, 29 Apr 2022 at 12:47, dalanicolai wrote: > >> As I realized that implementing continuous scrolling in doc-view, with >> the condition that it is only >> available after all pages have been converted, would not be much work, I >> have implemented it in >> doc-view now. >> >> However, I have two questions: >> >> 1. The scrolling works perfectly fine on Spacemacs, but when using `emacs >> -Q`, >> then scrolling forward does not go smoothly, but it makes 'larger' jumps >> instead. >> Scrolling up works perfectly fine though. >> >> So as it works alright on Spacemacs, I am quite sure this is due to some >> simple scrolling configuration setting. I am hoping that you might have an >> idea what configuration variable is >> responsible. On Spacemacs scrolling forward looks as smooth as scrolling >> backward. >> >> 2. The second question I have asked already yesterday. It can be found >> here >> . >> >> You can simply test the continuous scrolling by first loading >> `image-roll.el` and then load `doc-view.el` (both attached here). Then open >> some document (pdf or djvu; epub works fine also, but >> for some reason it does not scroll smoothly and makes jumps instead). >> Now wait until ALL pages have been converted (you can see the counter in >> the mode line), and >> when done, then activate `doc-view-continuous-scroll-minor-mode`. >> >> Use the arrows to scroll down (not smooth) and up (smooth). My question >> is if you know why >> starting form emacs -Q, scroling down does not go smoothly (while it does >> on Spacemacs). >> >> I have not yet implemented the required logic for 'deactivation' of the >> minor mode. >> Also, I have not yet taken care of the edge cases (scrolling to first and >> last page). >> >