From: Keith David Bershatsky <esq@lawlist.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 26432@debbugs.gnu.org
Subject: bug#26432: Acknowledgement (image-dired: Adding support for PDF thumbnails.)
Date: Wed, 23 Oct 2019 20:27:43 -0700 [thread overview]
Message-ID: <m27e4uhlg0.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2vaqcjpu9.wl%esq@lawlist.com>
[-- Attachment #1: Type: text/plain, Size: 2759 bytes --]
The attached proof concept patch applies to the master branch as of 10/23/2019 bearing commit 53e7a763dd16509d90418bdf14d161db13271ea3.
I spent a couple of hours today fiddling around with a current version of image-dired.el, but I was not able to figure out how to get feature 26432 to work properly. My problems had something do with the need for a return value from image-dired-create-thumb and the old way of doing things processed subprocesses consecutively using call-process, whereas the current way of doing things uses start-process and run-at-time .... After unsuccessfully spinning my wheels, I went ahead and reverted the relevant functions in image-dired to where it was several years ago so that I could still use call-process and get a return value from image-dired-create-thumb; e.g., things like:
(not (= 0 (image-dired-create-thumb file thumb-name)))
and
(not (= 0 (image-dired-create-thumb curr-file thumb-name)))
I performed the following tests after applying the attached patch:
M-x image-dired: On a directory containing a few PDF, PNG, JPG files.
M-x image-dired-dired-toggle-marked-thumbs: In a dired-mode buffer containing a few PDF, PNG, JPG files.
In an *image-dired* buffer, move the cursor to different images and watch the files selection change in the corresponding dired-mode buffer.
In an *image-dired* buffer, press the enter key on an image and watch an *image-dired-display-image* buffer open with a larger image.
I understand that the Emacs development team would prefer a patch that uses the current system of start-process and run-at-time; however, that would likely take me several more hours to figure out. In terms of me signing Emacs copyright papers and so forth, I would be happy to do that whenever the Emacs development team feels that I have a contribution that rises to a programming level worthy of Emacs. At this time, my proof concept patch is far from being ready for production ....
Keith
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> Date: [10-23-2019 03:03:29] <23 Oct 2019 12:03:29 +0200>
> From: Lars Ingebrigtsen <larsi@gnus.org>
> To: Keith David Bershatsky <esq@lawlist.com>
> Cc: Drew Adams <drew.adams@oracle.com>, 26432@debbugs.gnu.org, Glenn Morris <rgm@gnu.org>
> Subject: Re: bug#26432: Acknowledgement (image-dired: Adding support for PDF thumbnails.)
>
> Keith David Bershatsky <esq@lawlist.com> writes:
>
> > Thank you Lars and Glenn for looking into tracker #26432. I would be
> > pleased to look at this again in the coming days and see what changes
> > I made to the functions at issue to enable this particular feature.
> > My guess is that I only added a few lines of code to existing
> > functions.
>
> Did you make any progress here?
[-- Attachment #2: 2019_10_23__20_00_17_777.diff --]
[-- Type: application/diff, Size: 17594 bytes --]
next prev parent reply other threads:[~2019-10-24 3:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-10 14:32 bug#26432: image-dired: Adding support for PDF thumbnails Keith David Bershatsky
2017-04-11 4:01 ` bug#26432: Acknowledgement (image-dired: Adding support for PDF thumbnails.) Keith David Bershatsky
2017-04-11 18:05 ` Glenn Morris
2019-09-29 12:11 ` Lars Ingebrigtsen
2019-09-29 16:57 ` Keith David Bershatsky
2019-10-23 10:03 ` Lars Ingebrigtsen
2019-10-24 3:27 ` Keith David Bershatsky [this message]
2019-10-24 11:52 ` Lars Ingebrigtsen
2020-08-04 9:12 ` Lars Ingebrigtsen
2021-10-20 15:38 ` bug#26432: image-dired: Adding support for PDF thumbnails Stefan Kangas
2022-09-16 0:39 ` Stefan Kangas
2022-09-16 3:21 ` Keith David Bershatsky
2022-09-16 6:02 ` Eli Zaretskii
2022-09-16 20:52 ` Stefan Kangas
2022-09-21 14:06 ` Stefan Kangas
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=m27e4uhlg0.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=26432@debbugs.gnu.org \
--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).