GNU bug report logs -
#72305
[PATCH] Fix DocView's text conversion on tty Emacs
Previous Next
Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>
Date: Fri, 26 Jul 2024 15:51:01 UTC
Severity: normal
Tags: patch
Fixed in version 31.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
Manuel Giraud <manuel <at> ledu-giraud.fr> writes:
> Jeremy Bryant <jb <at> jeremybryant.net> writes:
>
>> Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> 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.
Erratum
- 29.4 and 30 behave the same: an error but shows the text version anyway
- master: error and no text version shown
--
Manuel Giraud
This bug report was last modified 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.