From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: Editing .odt in emacs Date: Thu, 23 Feb 2006 18:35:39 +0200 (IST) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1141463405 21116 80.91.229.2 (4 Mar 2006 09:10:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2006 09:10:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 04 10:10:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFSm2-00013g-LW for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 10:10:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFSm5-0002h4-Ca for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 04:10:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FErTU-0006de-QP for emacs-devel@gnu.org; Thu, 02 Mar 2006 12:20:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FCK0U-00032h-4K for emacs-devel@gnu.org; Thu, 23 Feb 2006 12:15:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCJRN-0005Gl-AM for emacs-devel@gnu.org; Thu, 23 Feb 2006 11:35:42 -0500 Original-Received: from [199.203.54.24] (helo=eitan.edu) by monty-python.gnu.org with smtp (Exim 4.52) id 1FCJY7-0002jW-7b for emacs-devel@gnu.org; Thu, 23 Feb 2006 11:42:39 -0500 Original-Received: (qmail 12693 invoked from network); 23 Feb 2006 16:35:39 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 23 Feb 2006 16:35:39 -0000 Original-To: emacs-devel@gnu.org X-Mailman-Approved-At: Sat, 04 Mar 2006 03:52:50 -0500 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:51136 Archived-At: Hi. I edit open document file saved in OpenOffice in emacs (cvs version). BTW, .odt is zipped XML, actually. The first problem is that after I have executed (add-to-list 'auto-mode-alist '("\\.odt$" . archive-mode)) I got the following: Parsing archive file... File mode specification error: (args-out-of-range 1866753 1866757) OTOH if I rename test.odt -> test.zip I can open it and start to edit content.xml in SGML (indicated as XML) mode. The next problem happens once I switch tags off using sgml-tags-invisible: Some text. changes to Some text. but if I move point over (invisible) tag emacs hangs temporarily and *Messages* is filled with messages like Invisible tag: [10 times] forward-list: Scan error: "Containing expression ends prematurely", 5948, 5948 forward-list: Scan error: "Containing expression ends prematurely", 5982, 5983 [585 times] Invisible tag: [4 times] forward-list: Scan error: "Containing expression ends prematurely", 5948, 5948 forward-list: Scan error: "Containing expression ends prematurely", 5982, 5983 [166 times] Invisible tag: [4 times] OTOH once I switch visibility on I have no problem to go thru the whole file using C-M-n and C-M-p unless I try to jump from inside a tag (in which case I get `..ends prematurely' error). BTW, anyone knows is there any effort to make odf-mode for emacs (or at least odt-mode)? Provided how slow is OOo when working with several documents without gigs of RAM it would be of real use for many users. -- Regards, ASK