all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dalanicolai <dalanicolai@gmail.com>
To: Roland Winkler <winkler@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 42824@debbugs.gnu.org
Subject: bug#42824: 26.3; Feature request: implement 'smooth scroll' in djvu.el package
Date: Thu, 29 Oct 2020 15:53:02 +0100	[thread overview]
Message-ID: <CACJP=3kXs4OKUVa7UMn_vuqQBg=_XgUKYJjCFptB=PAQu4fddg@mail.gmail.com> (raw)
In-Reply-To: <51776.49199.252983.24473@gargle.gargle.HOWL>

[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]

Well, it is just more or less the function
`doc-view-next-line-or-next-page` (i.e. `C-n`) slightly adapted to
djvu-mode, because djvu-mode works slightly differently.
It is meant for `djvu-image-mode-only` but I have simply bound it in the
`djvu-read-mode-map` and it seems to handle things fine.
It is just a small addition that slightly improves the scrolling experience
(i.e. it becomes like that in doc-view).

While I am here anyway, I have also created some code to implement
`djvu-occur`
similar to `pdf-occur` (but synchronous instead of async) which works fine
for most djvu documents. Also I have added some annotation drawing features.
I have created a new github repo for it here
<https://github.com/dalanicolai/djvu2.el>. So if you are interested you
could have a look at it or even test it.
However, I am not a very experienced elisp programmer, and although the
`djvu-occur` code could probably could get merged without too much
improvements, the code for annotation drawing can get cleaned up quite a
bit.

Anyway, I am just informing you about it. I don't expect anyone to spend
much time on it, as there is a good working pdf-tools already.
I am just playing with it a little, becauseI I think it would be great if
djvu.el and pdf-tools.el functionality could all get merged into doc-view
at some point.
But I fully understand that time and resources of volunteers generally are
very limited and that it does not have too much priority anyway (as
mentioned in djvu.el, djview already exists).

Okay, getting very much off topic here. In short, to me it seems that these
scrolling functions handle cases consistently enough. Maybe they can be
added as an option (and get documented as a not well-tested hack). If the
code was on github/gitlab/etc, I would just have created an issue and there
could be made a reference to the issue for people interested.

On Wed, 28 Oct 2020 at 20:45, Roland Winkler <winkler@gnu.org> wrote:

> On Tue Oct 27 2020 dalanicolai wrote:
> > FYI it is inspired by `pdf-view-next-line-or-next-page` (and
> > complement) of the pdf-tools package.
> >
> > On Mon, 26 Oct 2020 at 22:43, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> >
> >     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:
>
> Thanks, I want to see how this can be used with Djvu mode.
>
> Is there a generic keybinding for similar commands in other modes?
>
> Are the suggested commands to be used with djvu-image-mode only or
> also with the text-based Djvu mode?  Certainly, these use cases
> should be handled consistently.
>

[-- Attachment #2: Type: text/html, Size: 3227 bytes --]

  reply	other threads:[~2020-10-29 14:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12  8:38 bug#42824: 26.3; Feature request: implement 'smooth scroll' in djvu.el package dalanicolai
2020-10-26 21:42 ` Lars Ingebrigtsen
2020-10-27  1:32   ` dalanicolai
2020-10-28 19:45     ` Roland Winkler
2020-10-29 14:53       ` dalanicolai [this message]
2020-10-29 14:54         ` dalanicolai
2020-11-06 18:51         ` Roland Winkler
2020-11-07 19:16           ` dalanicolai
2020-11-15 21:18             ` Roland Winkler
2020-11-16 13:08               ` dalanicolai
2020-11-16 16:50                 ` Roland Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACJP=3kXs4OKUVa7UMn_vuqQBg=_XgUKYJjCFptB=PAQu4fddg@mail.gmail.com' \
    --to=dalanicolai@gmail.com \
    --cc=42824@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.