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

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

Re: Automatically checking parentheses before a global save not working


From: Elena
Subject: Re: Automatically checking parentheses before a global save not working.
Date: Wed, 08 Dec 2010 15:17:02 -0000
User-agent: G2/1.0

On 1 Lug, 19:16, Andreas Politz <poli...@fh-trier.de> wrote:
> (condition-case nil
>     (check-parens)
>   (error
>    (when (yes-or-no-p (format "Fix parens in buffer %s ?" (buffer-name)))
>      (switch-to-buffer (current-buffer))
>      (recursive-edit) ;;Edit and press C-M-c
>      (check-parens))))

Thanks Andreas. This works even better than what I was trying to
achieve (I would have just aborted saving before leaving the user into
the offending buffer).


reply via email to

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