unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20754: checkdoc-current-buffer prints to stdout?!
@ 2015-06-06 18:50 Paul Eggert
  2015-06-07 14:23 ` Oleh Krehel
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggert @ 2015-06-06 18:50 UTC (permalink / raw)
  To: 20754; +Cc: Sebastian Wiesner, Oleh Krehel

[The following bug report was sent by Sebastian Wiesner to emacs-devel 
<http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00095.html>.]

Hello,

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?

I can understand the motivation for this “feature”, but it's generally a
bad idea for an interactive function to print text to standard output
depending on an opaque global environment.  It also makes backwards
compatibility harder than it needs to be:  As things stand I have no choice
but to check the Emacs version to print Checkdoc Errors in a consistent way
across Emacs major versions, and that is somewhat ugly.

The purpose of this feature would also be served by a different entry
point—we have `ert-run-tests-interactively` and `ert-run-tests-batch`,
too.  If that is impossible please at least expose an option to turn this
feature off.

On a related topic, I'd have fixed this issue much faster, had this change
been mentioned in the NEWS.  Would you please be more strict about updating
NEWS for breaking changes such as this?

Sincerely,
Sebastian Wiesner





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-08  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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