all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: 34451-done@debbugs.gnu.org
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	[thread overview]
Message-ID: <871s3f21tw.fsf@gnu.org> (raw)
In-Reply-To: <16572.72292.221387.23650@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 11 Feb 2019 21:42:52 -0600")

"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	other threads:[~2019-03-09 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-12  3:42 bug#34451: 26.1; doc-view-toggle-display chokes if default major-mode is text-mode Roland Winkler
2019-03-09 21:08 ` Tassilo Horn [this message]

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

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

  git send-email \
    --in-reply-to=871s3f21tw.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=34451-done@debbugs.gnu.org \
    --cc=winkler@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.