summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-04-30 02:03:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2016-05-01 19:27:11 +0200
commit651182d070bfbb22a47133adf8d90c849e5e6467 (patch)
treef3710af6bc5341e373110a3c28c3362ff0796f42 /lisp/simple.el
parentd815ba53483a34a3507244a6223528e4702e1a93 (diff)
downloademacs-651182d070bfbb22a47133adf8d90c849e5e6467.tar.gz
Doc fixed for next-error-buffer-p
* lisp/simple.el (next-error-buffer-p): Clarify doc string (bug#18202). (cherry picked from commit a10eb168cc96db9f0dab2d75550cbd8f08be2363)
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 8965eb716be..24d2d7fbc0f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -145,18 +145,18 @@ nil means use goto-char using the second argument position.")
&optional avoid-current
extra-test-inclusive
extra-test-exclusive)
- "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."
+ "Return non-nil if BUFFER is a `next-error' capable buffer.
+If AVOID-CURRENT is non-nil, and BUFFER is the current buffer,
+return nil.
+
+The function EXTRA-TEST-INCLUSIVE, if non-nil, is called if
+BUFFER would not normally qualify. If it returns non-nil, BUFFER
+is considered `next-error' capable, anyway, and the function
+returns non-nil.
+
+The function EXTRA-TEST-EXCLUSIVE, if non-nil, is called if the
+buffer would normally qualify. If it returns nil, BUFFER is
+rejected, and the function returns nil."
(and (buffer-name buffer) ;First make sure it's live.
(not (and avoid-current (eq buffer (current-buffer))))
(with-current-buffer buffer