From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#34451: 26.1; doc-view-toggle-display chokes if default major-mode is text-mode Date: Mon, 11 Feb 2019 21:42:52 -0600 Message-ID: <16572.72292.221387.23650@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58428"; mail-complaints-to="usenet@blaine.gmane.org" To: 34451@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 04:44:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtOzX-000F1y-Vn for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Feb 2019 04:44:16 +0100 Original-Received: from localhost ([127.0.0.1]:60631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtOzW-0001tA-TS for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Feb 2019 22:44:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtOzP-0001t2-IA for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:44:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtOzM-00089i-Uy for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:44:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtOzK-000872-P3 for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gtOzK-00016J-IF for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Feb 2019 03:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34451 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15499429864148 (code B ref -1); Tue, 12 Feb 2019 03:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2019 03:43:06 +0000 Original-Received: from localhost ([127.0.0.1]:44308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtOyQ-00014q-7o for submit@debbugs.gnu.org; Mon, 11 Feb 2019 22:43:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtOyO-00014K-BD for submit@debbugs.gnu.org; Mon, 11 Feb 2019 22:43:04 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:32946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtOyJ-0006rQ-1K for submit@debbugs.gnu.org; Mon, 11 Feb 2019 22:42:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtOyI-0001jo-4n for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:42:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtOyH-0006og-Sd for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:42:58 -0500 Original-Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=36372 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1gtOyH-00010K-Ly for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2019 22:42:57 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155368 Archived-At: 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. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-05-29 built on regnitz Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.5 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. text-mode DocView: using cached files! Type C-c C-c to toggle between editing or viewing the document. [2 times] doc-view-toggle-display: Wrong type argument: stringp, nil Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 Important settings: value of $LC_COLLATE: C value of $LANG: en_US.utf8 value of $XMODIFIERS: locale-coding-system: utf-8-unix