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: Thierry Volpiatto
Subject: Re: catching parenthesis errors in elisp
Date: Fri, 12 Jun 2009 12:26:34 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux)

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 <address@hidden> 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





reply via email to

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