From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: catching parenthesis errors in elisp Date: Fri, 12 Jun 2009 12:26:34 +0200 Organization: ThierryVolpiatto Message-ID: <87d499hhnp.fsf@tux.homenetwork> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244802847 26794 80.91.229.12 (12 Jun 2009 10:34:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 10:34:07 +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 12:34:05 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 1MF45F-0004J2-4m for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 12:34:05 +0200 Original-Received: from localhost ([127.0.0.1]:37355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF45E-0002dX-5L for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 06:34:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF44c-0002dK-Ss for help-gnu-emacs@gnu.org; Fri, 12 Jun 2009 06:33:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF44Y-0002cp-TD for help-gnu-emacs@gnu.org; Fri, 12 Jun 2009 06:33:26 -0400 Original-Received: from [199.232.76.173] (port=41391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF44Y-0002ck-K7 for help-gnu-emacs@gnu.org; Fri, 12 Jun 2009 06:33:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:37941 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MF44Y-0003j9-03 for help-gnu-emacs@gnu.org; Fri, 12 Jun 2009 06:33:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MF44U-00082r-UM for help-gnu-emacs@gnu.org; Fri, 12 Jun 2009 10:33:18 +0000 Original-Received: from 13.77.197-77.rev.gaoland.net ([77.197.77.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jun 2009 10:33:18 +0000 Original-Received: from thierry.volpiatto by 13.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jun 2009 10:33:18 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 13.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMjoxNDoyMiswMjowMM7uH/IAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE3OjA4OjQ4KzAxOjAwhqNSRgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux) Cancel-Lock: sha1:5vCCBnSOjRM87ITbR7oJ1VJPLEM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:65192 Archived-At: Hi, you can try to use: C-M f ==> forward-sexp or C-M d ==> down-list or C-M n ==> forward-list starting to the beginning of your defun with a big prefix arg (e.g C-u4567 C-M f) You will have an error giving you the exact position of your error. If you have many functions and you don't know which one have error, use C-M e in the same way, it will stop on the wrong defun. Then use the above commands as described. Hope that help. rustom writes: > 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? > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France