unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eric M. Ludlam" <eric@siege-engine.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Kevin Ryde <user42@zip.com.au>, emacs-devel@gnu.org
Subject: Re: checkdoc-batch.el v.3
Date: Wed, 12 May 2010 21:38:59 -0400	[thread overview]
Message-ID: <4BEB5833.40805@siege-engine.com> (raw)
In-Reply-To: <jwv4oid40wi.fsf-monnier+gnu.emacs.sources@gnu.org>

Hi,

I missed the first post, and perhaps I have misinterpreted what the 
original post was.

On 05/12/2010 11:10 AM, Stefan Monnier wrote:
>> This spot of code runs M-x checkdoc in "batch" style, giving a report of
>> problems instead of going through interactively fixing them.
>
> This sounds desirable.

If you pass a prefix argument to checkdoc-current-buffer, and a couple 
other functions, it logs all the messages to a buffer.

If you are instead discussing the doc strings in the C code, here is 
some code I posted a long time ago:

http://lists.gnu.org/archive/html/emacs-devel/2001-11/msg00760.html

>> The implementation is diabolical,
>
> That sounds less so.
>
> I generally like checkdoc, but it's too much in-your-face for my taste.

I have found that once code is clean, checkdoc doesn't complain.  If it 
does I fix the code and it stops complaining.  If you work constantly in 
non-compliant code, this would indeed be a pain.

Checkdoc follows a model similar to unit tests for your C code.  If a 
test fails, the build fails, and you have to fix it or you can play with 
your change.

Of course, you can always set the checkdoc-autofix-flag to 'never, which 
won't ask you questions.  I don't really remember what it would do.

> If you're interested, it would be wonderful if you could change it so it
> doesn't signal errors all the time, but just messages/warnings instead.
>
> The intention would be:
> - make it possible/bearable to enable checkdoc-mode unconditionally
>    (so M-C-x will always check your docstrings, whether you want it or
>    not, which clearly requires reducing substantially the
>    in-your-faceness factor).

See above.

> - solve the problem you mention that rejecting one suggestion can make
>    you miss subsequent ones.

Using the log mode I mentioned above solves this.

Eric




  reply	other threads:[~2010-05-13  1:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5.1273618593.5320.gnu-emacs-sources@gnu.org>
2010-05-12 15:10 ` checkdoc-batch.el v.3 Stefan Monnier
2010-05-13  1:38   ` Eric M. Ludlam [this message]
2010-05-13  2:40     ` Stefan Monnier
2010-05-14 23:15       ` Kevin Ryde

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4BEB5833.40805@siege-engine.com \
    --to=eric@siege-engine.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=user42@zip.com.au \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).