From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: depth in parens Date: Thu, 22 Feb 2007 11:35:18 +0100 Organization: disorganized Message-ID: <87zm76mqe1.fsf@localhorst.mine.nu> References: <45DD41FC.1020304@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172140753 7470 80.91.229.12 (22 Feb 2007 10:39:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Feb 2007 10:39:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 22 11:39:07 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKBLo-0006J1-Fz for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Feb 2007 11:39:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKBLo-00032e-4s for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Feb 2007 05:39:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKBLa-00032K-8x for help-gnu-emacs@gnu.org; Thu, 22 Feb 2007 05:38:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKBLY-00031w-CL for help-gnu-emacs@gnu.org; Thu, 22 Feb 2007 05:38:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKBLY-00031t-6P for help-gnu-emacs@gnu.org; Thu, 22 Feb 2007 05:38:44 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKBLX-0005Jf-Kt for help-gnu-emacs@gnu.org; Thu, 22 Feb 2007 05:38:43 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HKBLN-0007AI-LE for help-gnu-emacs@gnu.org; Thu, 22 Feb 2007 11:38:33 +0100 Original-Received: from e178036010.adsl.alicedsl.de ([85.178.36.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Feb 2007 11:38:33 +0100 Original-Received: from david.hansen by e178036010.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Feb 2007 11:38:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178036010.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:meWJ52nMi6qmpK4eER3MBLusMvU= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41406 Archived-At: 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