From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20891: emacs: Back off if .doc is not an Office document Date: Thu, 14 Nov 2019 18:42:40 +0200 Message-ID: <83sgmq4dfj.fsf@gnu.org> References: <1435144758.2326415.306422097.2EE346E7@webmail.messagingengine.com> <875zngd2v4.fsf@mouse.gnus.org> <87pni54vou.fsf@marxist.se> <87o8xm3wz9.fsf@gnus.org> <83y2wpa7ml.fsf@gnu.org> <87lfsozu0z.fsf@gnus.org> <83a78y96tf.fsf@gnu.org> <874kz6ok88.fsf@gnus.org> <83imnm5yyh.fsf@gnu.org> <83v9rm4ehs.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34363"; mail-complaints-to="usenet@blaine.gmane.org" Cc: era+emacs@iki.fi, rpluim@gmail.com, 20891@debbugs.gnu.org, stefan@marxist.se, larsi@gnus.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 14 17:44:12 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iVIE6-0008kA-Dy for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2019 17:44:10 +0100 Original-Received: from localhost ([::1]:59680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVIE5-0006Wq-2m for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2019 11:44:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48891) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVIDz-0006WR-9f for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 11:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iVIDy-0005t5-Cl for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 11:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iVIDy-0005sR-9U for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 11:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iVIDy-0004z3-43 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 11:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20891 X-GNU-PR-Package: emacs Original-Received: via spool by 20891-submit@debbugs.gnu.org id=B20891.157374978919081 (code B ref 20891); Thu, 14 Nov 2019 16:44:02 +0000 Original-Received: (at 20891) by debbugs.gnu.org; 14 Nov 2019 16:43:09 +0000 Original-Received: from localhost ([127.0.0.1]:35111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVID2-0004xb-ME for submit@debbugs.gnu.org; Thu, 14 Nov 2019 11:43:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVID0-0004x3-Sw for 20891@debbugs.gnu.org; Thu, 14 Nov 2019 11:43:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iVICu-0005aa-5g; Thu, 14 Nov 2019 11:42:56 -0500 Original-Received: from [176.228.60.248] (port=2316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iVICt-0002dM-KU; Thu, 14 Nov 2019 11:42:55 -0500 In-reply-to: (message from Andreas Schwab on Thu, 14 Nov 2019 17:33:28 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:171601 Archived-At: > From: Andreas Schwab > Cc: Robert Pluim , era+emacs@iki.fi, larsi@gnus.org, 20891@debbugs.gnu.org, stefan@marxist.se > Date: Thu, 14 Nov 2019 17:33:28 +0100 > > On Nov 14 2019, Eli Zaretskii wrote: > > > Where do we have the code or data which does that? > > See auto-mode-alist, and doc-view-mode-maybe. > > > That's OK, but I'm still missing the code which makes this happen. > > E.g., I just did "C-x C-f foo.doc RET" and got a buffer in Fundamental > > mode. > > It only works if you have a doc-view-odf->pdf-converter-program. Thanks, I was blind. So we want to remove docx? from auto-mode-alist and instead to add the magic signature to magic-mode-alist? But then AFAIK MS Word documents had different signatures for different versions, so we should have several. And a literal docx should be left in auto-mode-alist, right?