From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: era+emacs@iki.fi Newsgroups: gmane.emacs.bugs Subject: bug#20891: emacs: Back off if .doc is not an Office document Date: Wed, 24 Jun 2015 14:19:18 +0300 Message-ID: <1435144758.2326415.306422097.2EE346E7@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435144825 24677 80.91.229.3 (24 Jun 2015 11:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2015 11:20:25 +0000 (UTC) Cc: era+emacs@iki.fi To: 20891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 13:20:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Z7ij1-0003YH-0t for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 13:20:15 +0200 Original-Received: from localhost ([::1]:49953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7ij0-0001Eo-9Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 07:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7iiw-0001Dd-Gt for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 07:20:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7iis-00072w-DD for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 07:20:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7iis-00071U-8p for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 07:20:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z7iiq-0003kA-Gu; Wed, 24 Jun 2015 07:20:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: era+emacs@iki.fi Original-Sender: "Debbugs-submit" Resent-CC: era+emacs@iki.fi, bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jun 2015 11:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org X-Debbugs-Original-Xcc: era+emacs@iki.fi Original-Received: via spool by submit@debbugs.gnu.org id=B.143514476114323 (code B ref -1); Wed, 24 Jun 2015 11:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2015 11:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:55872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7ii8-0003ix-SM for submit@debbugs.gnu.org; Wed, 24 Jun 2015 07:19:21 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:53612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7ii6-0003io-LC for submit@debbugs.gnu.org; Wed, 24 Jun 2015 07:19:19 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6E74C20BC9 for ; Wed, 24 Jun 2015 07:19:18 -0400 (EDT) Original-Received: from web5 ([10.202.2.215]) by compute3.internal (MEProxy); Wed, 24 Jun 2015 07:19:18 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=c10xyTXr2OZGp5TENvyZdqlnaEE=; b=qBaeQ 8EjsIJz4K5ZEGJGaKs6bh0A7JSO0+Lym1k5RruiCJQ4/gweJGIndn4w1SancIKVS Lr1hv6fh627Ac+wUg0fJNokU4FLytcGaMJGPfIi8F1jGQZM8ab4f4l8jaNF/4Obj CpBHKCLZ/WmdQ6Fy++4LHU2Dac5ccRWRinIlVo= Original-Received: by web5.nyi.internal (Postfix, from userid 99) id 45A61A74806; Wed, 24 Jun 2015 07:19:18 -0400 (EDT) X-Sasl-Enc: d2jYmxI8//gGw4fIe74J0EukwSW7tAMkr7GQMxCQ8riX 1435144758 X-Mailer: MessagingEngine.com Webmail Interface - ajax-eecef38c X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104295 Archived-At: Package: emacs Severity: normal Version: 24.4+1-4ubuntu5 X-Debbugs-Cc: era+emacs@iki.fi (I am forwarding the following bug from the Ubuntu Launchpad bug tracking system. The original report contains some upset lanuage; the boiled-down summary at the top is mine.) https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1466139 It is not uncommon for *.doc files to contain plain ASCII text. In this case, the default behavior of Emacs is less than ideal, as described in more detail in the problem report below. Perhaps the .doc file name mapping should contain some additional heuristics, and fall back to plain text if the file is not an Office document. Original problem description follows. ----- Today I downloaded the sources of secure delete. Inspected some files with vi and some with Emacs 24. Did what I wanted to do, started to listen to my favourite internet radio station, wanted to cite on Facebook a citation from the secure delete docs. I wanted to open the file "secure_delete.doc" (a pure ASCII text file) in Emacs 24 and: "Whenever you see this buffer I'm going to make a picture of it and you won't be able to edit anything." Haha, no this really reminds me of the monkey face during the Ubuntu installation. But don't make a monkey out of me because Emacs 24 is going to be replaced with svi an extensible text base line editor yet to be written. Emacs' open file is broken: - whenever it sees a file with the extension or post fix ".doc" it treats it like a Office document. - it takes an image of it - and shows you the image - which for a pure text file shows you the contents of the file as an image in that gone editor They should use the /file/ utility to check for the file type - but showing an unmutable picture of pure text is like making a monkey out of the user. -- If this were a real .signature, it would suck less. Well, maybe not.