From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Problem with doc-view-previous-major-mode Date: Sun, 14 Apr 2013 14:55:33 +0200 Message-ID: <87wqs56zlm.fsf@rosalinde.fritz.box> 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 1365944147 12450 80.91.229.3 (14 Apr 2013 12:55:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2013 12:55:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 14 14:55:50 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 1URMTF-0004KF-3G for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2013 14:55:49 +0200 Original-Received: from localhost ([::1]:36088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URMTE-0001oG-Pv for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2013 08:55:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URMT9-0001oB-OR for emacs-devel@gnu.org; Sun, 14 Apr 2013 08:55:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URMT7-0007Ul-23 for emacs-devel@gnu.org; Sun, 14 Apr 2013 08:55:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:62795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URMT6-0007Ug-Ou for emacs-devel@gnu.org; Sun, 14 Apr 2013 08:55:40 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Lr5Xp-1V4Yq920NH-00ebE8 for ; Sun, 14 Apr 2013 14:55:38 +0200 Original-Received: (qmail invoked by alias); 14 Apr 2013 12:55:38 -0000 Original-Received: from i59F565E7.versanet.de (EHLO rosalinde.fritz.box) [89.245.101.231] by mail.gmx.net (mp017) with SMTP; 14 Apr 2013 14:55:38 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19oRdhpMcdoOYTQKSkAyi4bym08GWoAZzvbI975Jg iCve+pastr3TCZ In-Reply-To: (Stefan Monnier's message of "Sat, 13 Apr 2013 22:56:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:158903 Archived-At: On Sat, 13 Apr 2013 22:56:09 -0400 Stefan Monnier wrote: >> 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, Confirmed, and thanks. Steve Berman