From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problem with doc-view-previous-major-mode Date: Sat, 13 Apr 2013 22:56:09 -0400 Message-ID: References: <878v4odd31.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365908176 12159 80.91.229.3 (14 Apr 2013 02:56:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2013 02:56:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 14 04:56:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URD73-0001DH-2v for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2013 04:56:17 +0200 Original-Received: from localhost ([::1]:44725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URD72-00020h-N6 for ged-emacs-devel@m.gmane.org; Sat, 13 Apr 2013 22:56:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URD6y-00020E-6f for emacs-devel@gnu.org; Sat, 13 Apr 2013 22:56:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URD6x-00061w-6r for emacs-devel@gnu.org; Sat, 13 Apr 2013 22:56:12 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URD6x-00061s-2V for emacs-devel@gnu.org; Sat, 13 Apr 2013 22:56:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="7360927" Original-Received: from 69-196-129-29.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.129.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Apr 2013 22:56:06 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 99803AE0BC; Sat, 13 Apr 2013 22:56:09 -0400 (EDT) In-Reply-To: <878v4odd31.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 11 Apr 2013 22:30:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158894 Archived-At: > what happens with -Q. But I have customized the global value of > major-mode to text-mode, and when I type C-c C-c on the image of a .docx > file, instead of getting the archive listing I only see the binary > content in text-mode. The reason for this is that in doc-view-mode, > doc-view-previous-major-mode is assigned the global value of major-mode, > unless this is fundamental-mode, and then doc-view-fallback-mode calls > the mode function stored in doc-view-previous-major-mode, in my case > text-mode. But if doc-view-previous-major-mode is nil, then I've installed a patch which seems to fix this problem, Stefan