From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Jeremy Bryant <jb@jeremybryant.net>
Cc: 72305@debbugs.gnu.org
Subject: bug#72305: [PATCH] Fix DocView's text conversion on tty Emacs
Date: Sat, 27 Jul 2024 17:17:24 +0200 [thread overview]
Message-ID: <871q3esw3f.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <87cymzakq7.fsf@jeremybryant.net> (Jeremy Bryant's message of "Fri, 26 Jul 2024 22:48:00 +0100")
Jeremy Bryant <jb@jeremybryant.net> writes:
> Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> writes:
>
>> Tags: patch
>>
>> Hi,
>>
>> When doing 'M-x doc-view-mode' on document buffer in "emacs -nw", Emacs
>> proposes to convert this document to the text version and if the user
>> says "yes" it calls `doc-view-open-text'.
>>
>> `doc-view-open-text' tries to get the current page by calling the
>> `doc-view-current-page' but this latter relies on
>> `image-mode-window-get' which most probably return nil on a tty.
>
> I can't reproduce this bug on 29.4, could you provide a more complete
> recipe starting from emacs -Q?
You're right but I see an error nevertheless. Here is my recipe:
- emacs -Q -nw
- C-x C-f "a_doc_for_example_a.pdf"
- M-x doc-view-mode ;; No automatic mode detection (I think it
;; would be the object of another bug report)
- Answer "y" to the question "Unable to render file. View
extracted text instead? "
Here I see an error in 29.4 but the text version is rendered anyway. In
30 (or master), I see an error and the text version is not rendered.
--
Manuel Giraud
next prev parent reply other threads:[~2024-07-27 15:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 15:49 bug#72305: [PATCH] Fix DocView's text conversion on tty Emacs Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-26 21:48 ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27 15:17 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-07-27 17:01 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=871q3esw3f.fsf@ledu-giraud.fr \
--to=bug-gnu-emacs@gnu.org \
--cc=72305@debbugs.gnu.org \
--cc=jb@jeremybryant.net \
--cc=manuel@ledu-giraud.fr \
/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).