texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] Understanding paths


From: David Allouche
Subject: Re: [Texmacs-dev] Understanding paths
Date: Sun, 2 May 2004 15:26:53 +0200
User-agent: Mutt/1.5.5.1+cvs20040105i

Wow... that message is confused!

On Fri, Apr 30, 2004 at 04:18:12PM -0400, address@hidden wrote:

> document
>   (0)concat
>     (0)(STRING) This is a simple test
>     (1)strong
>       (STRING) with some strong text
>     (2)(STRING) . This is a simple test. This is a simple test. This
>     is a simple test. This is a simple test. This is a simple test.
>     This is a simple test.
>   (1)(STRING) This line does not have any special content tags. This
>   line does not have any special content tags. This line does not have
>   any special content tags.  This line does not have any special
>   content tags. This line does not have any special content tags.

> Put the cursor right after the word "STRONG" in the first paragraph in
> the TeXmacs window.  After the right arrow key, TeXmacs displays:
> 
> Cursor Position: [ 0, 1, 0, 17 ]
> 
> Looking at the edit tree, I would have expected [ 0, 1, 17 ] i.e only
> 3 items in the path.  I don't understand how we end up with 4 elements
> in the tree.

0 -> first paragraph
1 -> second paragraph item (STRONG tag)
0 -> first operand
17 -> after 17th character

> 1)  Put the cursor right after the strong word "TEXT".  Hit the right
> arrow key.  TeXmacs displays: Cursor Position: [ 0, 1, 1 ].  I would
> have expected [ 0, 2, 0 ].  We can never have the cursor at [0, 2, 0].
> TeXmacs always begins at [0, 2, 1].

Sorry, I cannot make sense of what you are saying. Is it [0,1,1] (the
position _after_ the STRONG tag), [0,2,0] (the postion before the first
character of the third paragraph item) or [0,2,1] (which just does not
fit in the picture since STRONG has accessible borders)?

> I have read the developers docs where it mentions about a ghost
> cursor.  From what I see above, it seems like there is a "ghost" edit
> tree item after the line:
> 
>     (1)strong (STRING) with some strong text
> 
> in the edit tree. i.e. the edit tree looks like:
> 
>     (1)strong (STRING) with some strong text <<GHOST>>

You are confused.

I am not sure what is the ghost cursor you are refering too (I have no
checked the docs) but IIRC it relates to display updates during caret
motion.

BTW, this notation you are using is completely unfamiliar to everyone
here. If you want to be understood, you should use the Scheme format
notation which is concise, unambiguous and robust.

-- 
                                                            -- ddaa




reply via email to

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