* depth in parens
@ 2007-02-22 7:10 Andreas Roehler
2007-02-22 10:35 ` David Hansen
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Roehler @ 2007-02-22 7:10 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
can't follow first positions output of
`parse-partial-sexp' - depth in parens.
Cursor pos over pipe-symbol
(foo (bar))
_____|_____
`parse-partial-sexp' called at cursor pos
==>
(1 1 2 nil nil nil 0 nil nil (1))
i.e. depth in parens.
====> 1 <====
(foo (bar))
_________|_
(2 6 7 nil nil nil 0 nil nil (1 6))
i.e. depth in parens.
====> 2 <====
Shouldn't the opening and the closing delimiter of a
list have the same depth in parens?
Thanks
__
Andreas Roehler
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: depth in parens
2007-02-22 7:10 depth in parens Andreas Roehler
@ 2007-02-22 10:35 ` David Hansen
0 siblings, 0 replies; 2+ messages in thread
From: David Hansen @ 2007-02-22 10:35 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 22 Feb 2007 08:10:52 +0100 Andreas Roehler wrote:
> can't follow first positions output of
> `parse-partial-sexp' - depth in parens.
>
> Cursor pos over pipe-symbol
>
> (foo (bar))
> _____|_____
>
>
> `parse-partial-sexp' called at cursor pos
>
> ==>
>
> (1 1 2 nil nil nil 0 nil nil (1))
>
> i.e. depth in parens.
> ====> 1 <====
>
>
>
> (foo (bar))
> _________|_
>
>
> (2 6 7 nil nil nil 0 nil nil (1 6))
>
> i.e. depth in parens.
> ====> 2 <====
>
> Shouldn't the opening and the closing delimiter of a
> list have the same depth in parens?
,----[ (info "(emacs)Point") ]
|
| While the cursor appears to be _on_ a character, you should think of
| point as _between_ two characters; it points _before_ the character
| that appears under the cursor. For example, if your text looks like
| `frob' with the cursor over the `b', then point is between the `o' and
| the `b'. If you insert the character `!' at that position, the result
| is `fro!b', with point between the `!' and the `b'. Thus, the cursor
| remains over the `b', as before.
|
`----
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-22 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-22 7:10 depth in parens Andreas Roehler
2007-02-22 10:35 ` David Hansen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.