From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: DocView now supports OpenDocument & MS Office formats Date: Thu, 30 Dec 2010 16:22:38 +0100 Message-ID: <87ipybxp35.fsf@member.fsf.org> References: <87vd2bxskk.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293722572 1609 80.91.229.12 (30 Dec 2010 15:22:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Dec 2010 15:22:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 30 16:22:48 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYKL0-0001Ny-UX for ged-emacs-devel@m.gmane.org; Thu, 30 Dec 2010 16:22:47 +0100 Original-Received: from localhost ([127.0.0.1]:48810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYKL0-0000zA-1P for ged-emacs-devel@m.gmane.org; Thu, 30 Dec 2010 10:22:46 -0500 Original-Received: from [140.186.70.92] (port=60107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYKKv-0000y5-AF for emacs-devel@gnu.org; Thu, 30 Dec 2010 10:22:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PYKKt-0006Id-Vi for emacs-devel@gnu.org; Thu, 30 Dec 2010 10:22:41 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:17769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PYKKt-0006I0-QM for emacs-devel@gnu.org; Thu, 30 Dec 2010 10:22:39 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 9BF0D7801687 for ; Thu, 30 Dec 2010 16:22:38 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10355-01 for ; Thu, 30 Dec 2010 16:22:38 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id E7F9A7801686 for ; Thu, 30 Dec 2010 16:22:37 +0100 (CET) In-Reply-To: <87vd2bxskk.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 30 Dec 2010 15:07:23 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134048 Archived-At: Tassilo Horn writes: Hi again, > Till now, I didn't modify the auto-mode-alist entry of doc-view-mode. > I think, adding all MS office extensions is ok, cause those are not > really editable (binary) stuff anyway. Should I go ahead? > > For the OpenDocument formats, I'm not sure. Basically, those are zip > archives containing the document contents as XML + images and > metadata, and it's not totally unreasonable to edit the contents > directly. So I guess, that's a corner case like postscript files... I've now implemented a better fallback mechanism, so that C-c C-c in doc-view-mode opens the document in whatever mode would be chosen if doc-view wasn't there (e.g. archive-mode for od[st] docs). So IMO, adding all OpenDocument and MS Office file extensions to the doc-view-mode entry in auto-mode-alist should be fine, now. Additionally, doc-view-previous-major-mode could be deleted. That makes only sense now if the user switched to some other major-mode manually before enabling doc-view-mode, which seems to be a very unlikely scenario. WDYT? Bye, Tassilo