From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: checkdoc-batch.el v.3 Date: Wed, 12 May 2010 22:40:00 -0400 Message-ID: References: <4BEB5833.40805@siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273720757 2842 80.91.229.12 (13 May 2010 03:19:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 May 2010 03:19:17 +0000 (UTC) Cc: Kevin Ryde , emacs-devel@gnu.org To: "Eric M. Ludlam" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 13 05:19:15 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCOx6-0005sB-GR for ged-emacs-devel@m.gmane.org; Thu, 13 May 2010 05:19:15 +0200 Original-Received: from localhost ([127.0.0.1]:34709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCOx4-0002rz-18 for ged-emacs-devel@m.gmane.org; Wed, 12 May 2010 23:19:10 -0400 Original-Received: from [140.186.70.92] (port=40997 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCOtW-0008L5-1I for emacs-devel@gnu.org; Wed, 12 May 2010 23:15:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCOLC-0003t3-Jd for emacs-devel@gnu.org; Wed, 12 May 2010 22:40:04 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4695 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCOLC-0003s0-DK for emacs-devel@gnu.org; Wed, 12 May 2010 22:40:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEADED60tMCqBp/2dsb2JhbACeJ3K9HoUSBIww X-IronPort-AV: E=Sophos;i="4.53,219,1272859200"; d="scan'208";a="64097238" Original-Received: from 76-10-160-105.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.105]) by ironport2-out.pppoe.ca with ESMTP; 12 May 2010 22:40:01 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6CAC280B1; Wed, 12 May 2010 22:40:00 -0400 (EDT) In-Reply-To: <4BEB5833.40805@siege-engine.com> (Eric M. Ludlam's message of "Wed, 12 May 2010 21:38:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124731 Archived-At: >>> 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. I know. That's pretty much the only way I use checkdoc explicitly. Note that it may still not list all problems (it seems that if there are problems in the general file layout (e.g. missing trailer) it doesn't move on to further things). >> 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. I want to turn it on unconditionally. That means it should just be a nag, but not a pain, if you don't care to follow its advice. BTW, I often don't follow its advice, and other times I do but it doesn't notice/understand it. >> - solve the problem you mention that rejecting one suggestion can make >> you miss subsequent ones. > Using the log mode I mentioned above solves this. I don't think it does completely. Stefan