From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: catching parenthesis errors in elisp Date: Fri, 12 Jun 2009 04:55:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <89aa42c7-bfc9-43de-b844-882b9db0ef77@p6g2000pre.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244818323 10869 80.91.229.12 (12 Jun 2009 14:52:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 14:52:03 +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 Jun 12 16:52:01 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 1MF86p-0005wZ-GJ for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 16:51:59 +0200 Original-Received: from localhost ([127.0.0.1]:56918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF86o-0000dV-VZ for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 10:51:59 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p6g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1244807758 8137 127.0.0.1 (12 Jun 2009 11:55:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 12 Jun 2009 11:55:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p6g2000pre.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169971 X-Mailman-Approved-At: Fri, 12 Jun 2009 10:49:13 -0400 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:65204 Archived-At: On Jun 12, 12:05 am, rustom wrote: > Im hacking on a 700 line elisp function. > While doing some (fairly mechanical) cut-paste operations it looks > like either Ive got a parenthesis or a quote (most likely double quote > but could also be single quote) error. > > Any suggestions on how to catch such errors? here's some recommendation based on how i code elisp. =E2=80=A2 never type single paren. I always type them in pairs. And never delete one of them. =E2=80=A2 use tree navigation to move between code. =E2=80=A2 to delete or move parts of expression, select the whole expressio= n, cut & copy to move. so, when i code in lisp, there is never ever unmatched parenthesis. this method beats paren-edit mode. the detail of my editing and setup is here: =E2=80=A2 Tips For Editing Lisp Code With Emacs http://xahlee.org/emacs/emacs_editing_lisp.html to select current unit of sexp, i press one key, which is bound to extend-selection, which is defined in my ergoemacs mode. The code is shown here: =E2=80=A2 A Text Editor Feature: Extend Selection By Semantic Unit http://xahlee.org/emacs/syntax_tree_walk.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84