all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Elena <egarrulo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatically checking parentheses before a global save not  working.
Date: Fri, 2 Jul 2010 01:54:33 -0700 (PDT)	[thread overview]
Message-ID: <99fad6bf-a67b-4749-a8e5-59c5bfa52fa8@z10g2000yqb.googlegroups.com> (raw)
In-Reply-To: 87eifndnck.fsf@fh-trier.de

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).


      parent reply	other threads:[~2010-07-02  8:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01 13:49 Automatically checking parentheses before a global save not working Elena
     [not found] ` <87k4pffa8w.fsf@fh-trier.de>
     [not found]   ` <e4d6ef68-2e04-44d8-9765-eda0bb8c338d@c10g2000yqi.googlegroups.com>
2010-07-01 19:11     ` Uday S Reddy
2010-08-04 15:37       ` Johan Bockgård
     [not found]     ` <87eifndnck.fsf@fh-trier.de>
2010-07-02  8:54       ` Elena [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99fad6bf-a67b-4749-a8e5-59c5bfa52fa8@z10g2000yqb.googlegroups.com \
    --to=egarrulo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.