unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Klimov <alserkli@inbox.ru>
Subject: Editing .odt in emacs
Date: Thu, 23 Feb 2006 18:35:39 +0200 (IST)	[thread overview]
Message-ID: <TheMailAgent.ba66a1087522fa@d87ffb6f7ad8617f4e03> (raw)

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:

   <text:p text:style-name="Standard">Some text.</text:p>

changes to

   Some text.

but if I move point over (invisible) tag emacs hangs temporarily and
*Messages* is filled with messages like

  Invisible tag: <text:p text:style-name="Standard"> [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: <text:p text:style-name="Standard"> [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: <text:p text:style-name="Standard"> [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

             reply	other threads:[~2006-02-23 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 16:35 Alexander Klimov [this message]
2006-03-04 14:18 ` Editing .odt in emacs Eli Zaretskii
2006-03-06 17:04   ` Was: " Alexander Klimov
2006-03-06 19:33     ` Eli Zaretskii
2006-03-11 11:45     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TheMailAgent.ba66a1087522fa@d87ffb6f7ad8617f4e03 \
    --to=alserkli@inbox.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).