help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: catching parenthesis errors in elisp


From: Pascal J. Bourguignon
Subject: Re: catching parenthesis errors in elisp
Date: Fri, 12 Jun 2009 10:21:15 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

rustom <rustompmody@gmail.com> 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?

1- use M-x check-parens RET once you've botched the code.

2- indent your whole buffer:  C-x h M-q C-M-\
   where you see strange indentation is a hint about wrong parentheses.

3- install and use paredit-mode to avoid problems in the first place.
   http://mumble.net/~campbell/emacs/paredit.el


-- 
__Pascal Bourguignon__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]