From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: era Newsgroups: gmane.emacs.bugs Subject: bug#20891: emacs: Back off if .doc is not an Office document Date: Wed, 06 Nov 2019 15:08:14 +0200 Message-ID: <666aa5df-8f4b-4bb9-a542-945421c584b9@www.fastmail.com> References: <1435144758.2326415.306422097.2EE346E7@webmail.messagingengine.com> <875zngd2v4.fsf@mouse.gnus.org> <87pni54vou.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73455"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Cyrus-JMAP/3.1.7-509-ge3ec61c-fmstable-20191030v1 Cc: Lars Ingebrigtsen , Stefan Kangas To: 20891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 14:20:10 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 1iSLEH-000Iyo-4o for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 14:20:09 +0100 Original-Received: from localhost ([::1]:58002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSLEF-0005u8-SV for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 08:20:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37327) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSL3X-0008Qr-Ff for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 08:09:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSL3W-0006a4-Cq for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 08:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSL3W-0006Zn-9I for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 08:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSL3V-0003QJ-Vf for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 08:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: era Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2019 13:09:01 +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.157304572513130 (code B ref 20891); Wed, 06 Nov 2019 13:09:01 +0000 Original-Received: (at 20891) by debbugs.gnu.org; 6 Nov 2019 13:08:45 +0000 Original-Received: from localhost ([127.0.0.1]:39572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSL3E-0003Pi-MD for submit@debbugs.gnu.org; Wed, 06 Nov 2019 08:08:44 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSL3B-0003PT-UK for 20891@debbugs.gnu.org; Wed, 06 Nov 2019 08:08:42 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 5B860220A7; Wed, 6 Nov 2019 08:08:35 -0500 (EST) Original-Received: from imap34 ([10.202.2.84]) by compute2.internal (MEProxy); Wed, 06 Nov 2019 08:08:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=7Qqnlt ooB/Z/sElb/JYsvEhYT7Lxi3BOFc9jexS1/+0=; b=mhHs8Gm86Did6qzoaQ5c3I tU1OM9k2cZmQbgnJU8lDP+7I/Tl7/M6EXsqZatyEu6YixuF+DoiDFDK9U+lcoNTr FOMVaPBTwdZ2IF93KJMpK68Jm5S02c2rtSLbCW8mKiyGZXhZYSIa4tBJT810WCqX jbSSpNVBuh+ya8B9E9A7J63WS3RGpgRCbdKkptPBSIT2ITy6evfb2ujrQ2DlSnmS hUIPj3soDDyZ6bsG2XMX0/Yus6hThu/roa057lynuR4E0Hs91T3So6f0WBk5X/pL qFH19/TfQviqlK6+NWICSAi2RJ+RZlQqs3qnucL0PW9ZKUZA9rYiR+9OxK4TW4GA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddujedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepvghrrgcu oegvrhgrodgvmhgrtghssehikhhirdhfiheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gvrhgrodgvmhgrtghssehikhhirdhfihenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 811A61460061; Wed, 6 Nov 2019 08:08:34 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87pni54vou.fsf@marxist.se> 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:171020 Archived-At: On Wed, Nov 6, 2019, at 03:53, Stefan Kangas wrote: > Lars Ingebrigtsen writes: > > era+emacs@iki.fi writes: > >> It is not uncommon for *.doc files to contain plain ASCII text. In this > >> case, the default behavior of Emacs is less than ideal > > I think this makes sense. A fix in Emacs would mean moving the .doc > > recognition from `auto-mode-alist' to... `magic-fallback-mode-alist', I > > guess. > I wasn't aware of the practice to name plain text files *.doc; I can't > remember having encountered any file like that. Perhaps this practice > is rare. > Would implementing this risk make opening *.doc files slower for most > users? Perhaps that could make the trade-off not worth it. Other > than that, I see no problem with the proposal. I'd agree that this is probably increasingly rare, but it used to be a practice which wasn't entirely uncommon back when Microsoft was not yet a household brand name and Word wasn't taught in schools. On the other hand, if the behavior described in the original bug report is still current, that's quirky and unexpected. Really, how many people *expect* Emacs to be able to open a Word document, and are any of them happy when they get a static image to look at in Emacs? -- If this were a real .signature, it would suck less. Well, maybe not.