From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Re: elisp beginner's parens question ?? Date: Fri, 27 Apr 2007 01:43:29 -0400 Message-ID: <1177652609.3152.20.camel@CASE> References: <87y7kfx783.fsf@ambire.localdomain> <87d51qcylk.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177652632 12620 80.91.229.12 (27 Apr 2007 05:43:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 05:43:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Robert D. Crawford" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 07:43:49 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 1HhJFE-0002mk-N6 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 07:43:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhJL2-0002wU-P7 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 01:49:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhJKp-0002wC-Qh for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 01:49:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhJKp-0002w0-2z for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 01:49:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhJKo-0002vx-W6 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 01:49:35 -0400 Original-Received: from smtp104.rog.mail.re2.yahoo.com ([206.190.36.82]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HhJEz-0005uu-U3 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 01:43:34 -0400 Original-Received: (qmail 52994 invoked from network); 27 Apr 2007 05:43:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=hmS06Va31iUCDYm3OWuPmOBjEkArB891oqMZ1PwRsrPTZfe6iw3uK0Y/rRCuR+WACEkJ102y3RG7Wn/rhOSn9oEKuUDN4ccENihgivJqg/GQ5bwcjomKRD3magXEMEQgsXVHFwmBEEbAVOMpbHMuv2s4wyagv2rIGGhmSydidys= ; Original-Received: from unknown (HELO ?192.168.1.4?) (billlinux@rogers.com@74.104.51.86 with plain) by smtp104.rog.mail.re2.yahoo.com with SMTP; 27 Apr 2007 05:43:32 -0000 X-YMail-OSG: PIjOFygVM1n2c3JA.Ss_8xlW3YTaH6CunngKNR_nKro4e6Xa8BOdxooZDhmwg2NxQw-- In-Reply-To: <87d51qcylk.fsf@comcast.net> X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) X-detected-kernel: Genre and OS details not recognized. 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:43256 Archived-At: Thank you Robert On Thu, 2007-04-26 at 21:58 -0500, Robert D. Crawford wrote: > William Case writes: > > > However, the "mental tips or tricks" was really a 'by the way' or an > > after thought question. 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. 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) ? > > This might provide your answer. If you do C-h f and supply a function > name, the resulting buffer, in X anyway, will have a link to the > function's definition. Didn't know about the link to functions definition / source code. > > (defun check-parens () ; lame name? > "Check for unbalanced parentheses in the current buffer. > More accurately, check the narrowed part of the buffer for unbalanced > expressions (\"sexps\") in general. This is done according to the > current syntax table and will find unbalanced brackets or quotes as > appropriate. (See Info node `(emacs)Parentheses'.) If imbalance is > found, an error is signaled and point is left at the first unbalanced > character." Info node (emacs)Parentheses) lead me to 'show-paren-mode' which, when turned on, showed me how to visualize what way happening with the parentheses check. I appreciate the time you took to answer. -- Regards Bill