[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enriched-mode and switching major modes.

From: Oliver Scholz
Subject: Re: enriched-mode and switching major modes.
Date: Tue, 14 Sep 2004 18:31:19 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt)

A few minor corrections.

Oliver Scholz <address@hidden> writes:
> If Emacs' display engine would support this, e.g. as a `block' text
> property, then I could write:
> (progn (switch-to-buffer (generate-new-buffer "*tmp*"))
>        (insert "Example text. Example paragraph. Example text.")
>        (put-text-property 15 33
>                           'block
>                           '(:margin (4 1 1 1) :border nil :padding nil)))

It should be noted, that a good box model should allow for nested
block boxes.  However, this all is blue sky anyways ...

> With text/plain their relation is so simple that we hardly
> distinguish them at all.  The visual appearance is determined by
> control characters like space and newline, which are part of the
> document (i.e. part of the data structure).  The user interface is
> also simple: to change the (whitespace) formatting, we just insert
> spaces and newlines where appropriate, which in turn become part of
> the data structure.  To some extend this also works for
> text/enriched.

I mean "the document's character data" here.  The important point is
that formats suitable for WP (RTF, HTML ...) separate character data
from formatting information entirely.  In text/plain on the other hand
the formatting information (LF, SPC, TAB, FF, VT) /is/ part of the
character data.

> Or here:
> * This is a list item. It contains two subitems:
> -!- 1. One and
>     2. Two.
> The UI in typical word processors simply inhibits to move the cursor
> to these places.  If the cursor is after "subitems:" and the user
> hits <left>, the cursor would move before "One".

I meant "<right>" here; or `C-f', even.

Oliver Scholz               29 Fructidor an 212 de la Révolution
Ostendstr. 61               Liberté, Egalité, Fraternité!
60314 Frankfurt a. M.       

reply via email to

[Prev in Thread] Current Thread [Next in Thread]