From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: elisp beginner's parens question ?? Date: Fri, 27 Apr 2007 11:59:40 +0200 Organization: sometimes Message-ID: <878xcef88j.fsf@ambire.localdomain> References: <87y7kfx783.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177670162 5080 80.91.229.12 (27 Apr 2007 10:36:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 10:36:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 12:36:00 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 1HhNny-0008AI-2U for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 12:35:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhNtn-0005l2-Id for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 06:41:59 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: ppp-221-37.21-151.libero.it Original-X-Trace: quimby.gnus.org 1177667970 15646 151.21.37.221 (27 Apr 2007 09:59:30 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Fri, 27 Apr 2007 09:59:30 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) Cancel-Lock: sha1:FJ5CoCw0plmiJfVEYpiC32iq6Yk= Original-Xref: shelby.stanford.edu gnu.emacs.help:147665 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:43269 Archived-At: () William Case () Thu, 26 Apr 2007 22:38:24 -0400 What I was really asking was how the interpreter or emacs uses parenthesis or how parenthesis are nested. Put another way, I was trying to develop for myself a minds eye view of how check-parens works. i share this desire, and did this to get a quick (10sec) overview: C-h f check-parens RET ; what do you do? C-x o TAB ; where do you do it? RET ; how do you do it? [ogle ogle] from this i see that one of the funcs called is `scan-sexps' and there is also some kind of error handling. Does check-parens just count left parens and compare that to the number of right parens to find an error, or does it actually examine nested parens pairs and work inword (or outward) ? it uses `scan-sexps' and handles errors that `scan-sexps' throws. these are things i didn't know before starting this message, and will probably forget a few moments after C-c C-c, but the method for re-knowing is what is important. perhaps that is the mental tip you seek. thi