GNU bug report logs - #18202
24.4.50; doc string of `next-error-buffer-p'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 5 Aug 2014 19:53:01 UTC

Severity: minor

Tags: fixed

Found in version 24.4.50

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: 18202 <at> debbugs.gnu.org
Subject: bug#18202: 24.4.50; doc string of `next-error-buffer-p'
Date: Tue, 5 Aug 2014 12:52:03 -0700 (PDT)
The doc string:

 Test if BUFFER is a `next-error' capable buffer.

 If AVOID-CURRENT is non-nil, treat the current buffer
 as an absolute last resort only.

 The function EXTRA-TEST-INCLUSIVE, if non-nil, is called in each buffer
 that normally would not qualify.  If it returns t, the buffer
 in question is treated as usable.

 The function EXTRA-TEST-EXCLUSIVE, if non-nil, is called in each buffer
 that would normally be considered usable.  If it returns nil,
 that buffer is rejected.

The doc string is very poor.

1. The first line should say that the predicate returns non-nil if
   BUFFER is a `next-error'-capable buffer.

2. The doc string should then give some indication of what that means
   (what it means for a buffer to be `next-error'-capable).

3. The description of AVOID-CURRENT says nothing.  It needs to say what
   the behavior is and how it affects the return value (if it does).
   "Treat the buffer" means nothing here, as does "as a last resort."

4. The other two paragraphs: What does it mean (a) for a buffer to
   "qualify" or "normally be considered usable" ("normally"?  What does
   that mean here?), and (b) for a buffer to be "usable" or "rejected"?
   Again, this text says nothing helpful.  It should say what the
   behavior is.

   Presumably, the last sentence in each of these paragraphs should say
   "If it returns [t|nil] then so does `next-error-buffer-p'."

There really is nothing good about this doc string.  

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-06-28 on ODIEONE
Bzr revision: 117431 rgm <at> gnu.org-20140628015517-eku6hj8mpgcvfnso
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




This bug report was last modified 8 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.