unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: dalanicolai <dalanicolai@gmail.com>
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: Sun, 15 Nov 2020 15:18:45 -0600	[thread overview]
Message-ID: <39733.23957.97016.24497@gargle.gargle.HOWL> (raw)
In-Reply-To: <CACJP=3kXOQELdSyVMfF4bHkF5YYiySvA6D97cxeyBSbRML=KjQ@mail.gmail.com>

On Sat Nov 7 2020 dalanicolai wrote:
> I do not fully understand what you are referring to with 'more
> complete and consistent, but  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.





  reply	other threads:[~2020-11-15 21:18 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=39733.23957.97016.24497@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=42824@debbugs.gnu.org \
    --cc=dalanicolai@gmail.com \
    --cc=larsi@gnus.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).