all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Wiesner <swiesner@lunaryorn.com>
To: Oleh Krehel <ohwoeowho@gmail.com>
Cc: Paul Eggert <eggert@cs.ucla.edu>, 20754@debbugs.gnu.org
Subject: bug#20754: checkdoc-current-buffer prints to stdout?!
Date: Sun, 7 Jun 2015 17:29:00 +0200	[thread overview]
Message-ID: <CAPFZAqqUe+5X5psYuW8r5AYPEm-x_6cquswKf5mHEi1Dq+wn-g@mail.gmail.com> (raw)
In-Reply-To: <86fv63y4uj.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]

2015-06-07 16:23 GMT+02:00 Oleh Krehel <ohwoeowho@gmail.com>:

> Sebastian Wiesner <swiesner@lunaryorn.com> writes:
>
> > while debugging unit test failures in Flycheck, I accidentally discovered
> > checkdoc-current-buffer apparently prints messages to standard output in
> > Emacs 25.1 in noninteractive mode.
> >
> > Would you please revert this change?
>
> No, this change doesn't need to be reverted. It's useful for running
> checkdoc in batch. And it does check for `noninteractive' before
> printing.


That is exactly _why_ I'd like to see this change reverted.  It introduces
output that is controlled by an entirely unrelated global variable.  YMMV,
but I don't think that this is good design at all.

> Would you please be more strict about updating
> > NEWS for breaking changes such as this?
>
> This isn't a breaking change.


It _did_ break Flycheck.

If you have any problem with checkdoc, the
> usual procedure is to:
>
>     git log --follow lisp/emacs-lisp/checkdoc.el


> or the equivalent "lf" in magit.
>

No offence meant, but why do you even bother with NEWS at all if that's
your general response to such issues?


> Actually, I'd think that it would be beneficial for flycheck to be able
> to run checkdoc in batch, since async can make things faster.


Flycheck has been successfully running checkdoc asynchronously in a
non-interactive batch session in batch since long before this change was
made.  This change didn't have any benefits at all for Flycheck, it only
made matters worse.

Why can't you just leave checkdoc-current-buffer as is, and introduce a new
entry point?

What works for ERT, can't be bad for checkdoc, and it means a lot less
trouble for anyone who's using checkdoc noninteractively, mostly because
they can explicitly opt in to this new behaviour instead of being forced
into it.

[-- Attachment #2: Type: text/html, Size: 3277 bytes --]

  reply	other threads:[~2015-06-07 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-06 18:50 bug#20754: checkdoc-current-buffer prints to stdout?! Paul Eggert
2015-06-07 14:23 ` Oleh Krehel
2015-06-07 15:29   ` Sebastian Wiesner [this message]
2015-06-08  6:35     ` Oleh Krehel
2015-06-08  9:17       ` Sebastian Wiesner
2015-06-08  9:33         ` Oleh Krehel
2015-06-07 18:27   ` Glenn Morris
2015-06-08  5:56     ` Oleh Krehel

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=CAPFZAqqUe+5X5psYuW8r5AYPEm-x_6cquswKf5mHEi1Dq+wn-g@mail.gmail.com \
    --to=swiesner@lunaryorn.com \
    --cc=20754@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=ohwoeowho@gmail.com \
    /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.