From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Fineman Newsgroups: gmane.emacs.help Subject: Re: catching parenthesis errors in elisp Date: Fri, 12 Jun 2009 21:04:57 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244857242 10173 80.91.229.12 (13 Jun 2009 01:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 01:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 03:40:40 2009 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 1MFIEZ-0005uU-W4 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 03:40:40 +0200 Original-Received: from localhost ([127.0.0.1]:49592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFIEZ-0002S7-Fw for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 21:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!motzarella.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: news.eternal-september.org U2FsdGVkX18FKuk3iB1z1N0RYiBM5juhHpgEHN+KAj6eoN0ywY0wasUfpioo81X6xet2pOsLkhVQ7RDUL27RMiDaalA6CvJ/beycXpoQ4nx8F2DN4eX42rI4XYIyuOoOiXhubRpmGOIq2rqJG1r/aA== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sat, 13 Jun 2009 01:04:21 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19tnZnGVSUE68BkldthZba5VPJ47QNt3HE= Cancel-Lock: sha1:bw9DZTTYEPxB06dxEpb6wfX43ew= sha1:nRNSm4YJleNU8gl6monKRQfvUJE= User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) Original-Xref: news.stanford.edu gnu.emacs.help:170002 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:65229 Archived-At: I always enter parens in matching pairs. Combined with the use of C-j for new lines, which makes paren errors conspicuous thru wrong indentation, that pretty much eliminates such errors in writing defuns ab initio. However, in *revising* defuns it is often necessary to insert & delete parens singly, and that can lead to an insidious kind of error (I have made it several times in the last few days): an extra paren at the end of the defun. That is indetectable thru indentation & does not obstruct evaling it from within (C-M-x), but will cause an abort the next time the .emacs or Commands.el file is loaded as a whole. The best preventive I have found is to put point after the final paren & look for a match; but you have to remember to do it. -- --- Joe Fineman joe_f@verizon.net ||: Christians & Marxists think suffering must mean something. :||