Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!mit-eddie!ll-xn!cit-vax!ucla-cs!zen!ucbvax!LF-SERVER-2.BBN.COM!jr
From: jr@LF-SERVER-2.BBN.COM (John Robinson)
Newsgroups: comp.emacs
Subject: Re: check lisp file for unbalanced parentheses
Message-ID: <8707101837.AA20157@ucbvax.Berkeley.EDU>
Date: Fri, 10-Jul-87 14:37:45 EDT
Article-I.D.: ucbvax.8707101837.AA20157
Posted: Fri Jul 10 14:37:45 1987
Date-Received: Sun, 12-Jul-87 12:17:04 EDT
References: <385@sage.cs.reading.ac.uk>
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 11

One trivial way is to insert a close paren at the end to see if it
matches anything (asuming you are in lisp mode).  Slight harder is to
put an extra open at the top, and then the extra close at the end
should match it.  But, at least it required no macros (beyond lisp
mode).

NB - you didn't say which emacs.  I forget whether gosmacs has
paren-balancing in its lisp mode (or, for that matter, whether it has
a lisp mode).

/jr