bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34451: 26.1; doc-view-toggle-display chokes if default major-mode is


From: Tassilo Horn
Subject: bug#34451: 26.1; doc-view-toggle-display chokes if default major-mode is text-mode
Date: Sat, 09 Mar 2019 22:08:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Roland Winkler" <winkler@gnu.org> writes:

> Start `emacs -Q'
> eval  (setq-default major-mode 'text-mode)
> visit a pdf or postscript file
> Type C-c C-c twice
> doc-view-toggle-display: Wrong type argument: stringp, nil
>
> The problem is that doc-view-toggle-display assumes that if the
> major-mode is text-mode the user is viewing the document's text
> contents.  But that's incorrect if the default value of major-mode is
> text-mode so that this mode is also used for a "raw" pdf or postscript
> file.

Right, thanks for the pointer.  Now I use a separate mode (which is
actually just `view-mode' with a doc-view-specific value for
major-mode).

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]