GNU bug report logs -
#18202
24.4.50; doc string of `next-error-buffer-p'
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18202 in the body.
You can then email your comments to 18202 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18202
; Package
emacs
.
(Tue, 05 Aug 2014 19:53:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 05 Aug 2014 19:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18202
; Package
emacs
.
(Sat, 30 Apr 2016 00:03:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 18202 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> 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.
Fixed.
> 2. The doc string should then give some indication of what that means
> (what it means for a buffer to be `next-error'-capable).
Hm... No I think that's pretty evident. It's a buffer in which the
command `next-error' makes sense.
> 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."
Yes, that's odd. Looking at the code, it just means that it returns nil
if given and BUFFER is the current buffer. Fixed.
> 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'."
Fixed.
> There really is nothing good about this doc string.
It's an almost verbatim copy of the doc string from
`next-error-find-buffer', which explains why it's so odd.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 30 Apr 2016 00:03:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 25.2, send any further explanations to
18202 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 30 Apr 2016 00:03:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 28 May 2016 11:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:05 GMT)
Full text and
rfc822 format available.
bug Marked as fixed in versions 26.1.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:05 GMT)
Full text and
rfc822 format available.
bug No longer marked as fixed in versions 25.2.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Dec 2016 02:50:06 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 01 Jan 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.