GNU bug report logs - #20891
emacs: Back off if .doc is not an Office document

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: era+emacs@HIDDEN; dated Wed, 24 Jun 2015 11:20:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2015 11:19:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 07:19:21 2015
Received: from localhost ([127.0.0.1]:55872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z7ii8-0003ix-SM
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 07:19:21 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:53612)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <era+emacs@HIDDEN>) id 1Z7ii6-0003io-LC
 for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 07:19:19 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 6E74C20BC9
 for <submit <at> debbugs.gnu.org>; Wed, 24 Jun 2015 07:19:18 -0400 (EDT)
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=
Received: by web5.nyi.internal (Postfix, from userid 99)
 id 45A61A74806; Wed, 24 Jun 2015 07:19:18 -0400 (EDT)
Message-Id: <1435144758.2326415.306422097.2EE346E7@HIDDEN>
X-Sasl-Enc: d2jYmxI8//gGw4fIe74J0EukwSW7tAMkr7GQMxCQ8riX 1435144758
From: era+emacs@HIDDEN
To: submit <at> debbugs.gnu.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: MessagingEngine.com Webmail Interface - ajax-eecef38c
Subject: emacs: Back off if .doc is not an Office document
Date: Wed, 24 Jun 2015 14:19:18 +0300
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Package: emacs
Severity: normal
Version: 24.4+1-4ubuntu5
X-Debbugs-Cc: era+emacs@HIDDEN

(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.




Acknowledgement sent to era+emacs@HIDDEN:
New bug report received and forwarded. Copy sent to era+emacs@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to era+emacs@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#20891; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 24 Jun 2015 11:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.