[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
detecting errors
From: |
Andreas Roehler |
Subject: |
detecting errors |
Date: |
Tue, 10 Oct 2006 12:11:33 +0200 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060516) |
While editing a larger file a function definition was
mutilated inadvertently.
I.e. beginning part was killed, remaining code saved as shown
below.
;;
(goto-char (point-min))
(while (re-search-forward "\\(^\"[ \t]+\\)" nil t)
(progn (replace-match "\"")
(message "%s" (what-line))))
(goto-char (point-min))
(while (re-search-forward "\\([ \t]+\\)" nil t)
(progn (replace-match " ")
(message "%s" (what-line))))
Detecting this error turned out laborious, as `(check
parens)', which often is helpful, couldn't claim
anything wrong. Also byte-compile-file finished without
error-messages.
Is there an appropriate way to locate this kind of errors?
Thanks
__
Andreas Roehler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- detecting errors,
Andreas Roehler <=