aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-30 02:03:24 +0200
committerLars Ingebrigtsen2016-04-30 02:03:24 +0200
commita10eb168cc96db9f0dab2d75550cbd8f08be2363 (patch)
tree35e06e0e5840fff81319e3844e7af1ee444fc412
parent2ef0040e2363a669d9b93df935d31c98fa130132 (diff)
downloademacs-a10eb168cc96db9f0dab2d75550cbd8f08be2363.tar.gz
emacs-a10eb168cc96db9f0dab2d75550cbd8f08be2363.zip
Doc fixed for next-error-buffer-p
* lisp/simple.el (next-error-buffer-p): Clarify doc string (bug#18202).
-rw-r--r--lisp/simple.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index cb4ddc6c3e2..849cbd6863a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -145,18 +145,18 @@ nil means use goto-char using the second argument position.")
145 &optional avoid-current 145 &optional avoid-current
146 extra-test-inclusive 146 extra-test-inclusive
147 extra-test-exclusive) 147 extra-test-exclusive)
148 "Test if BUFFER is a `next-error' capable buffer. 148 "Return non-nil if BUFFER is a `next-error' capable buffer.
149 149If AVOID-CURRENT is non-nil, and BUFFER is the current buffer,
150If AVOID-CURRENT is non-nil, treat the current buffer 150return nil.
151as an absolute last resort only. 151
152 152The function EXTRA-TEST-INCLUSIVE, if non-nil, is called if
153The function EXTRA-TEST-INCLUSIVE, if non-nil, is called in each buffer 153BUFFER would not normally qualify. If it returns non-nil, BUFFER
154that normally would not qualify. If it returns t, the buffer 154is considered `next-error' capable, anyway, and the function
155in question is treated as usable. 155returns non-nil.
156 156
157The function EXTRA-TEST-EXCLUSIVE, if non-nil, is called in each buffer 157The function EXTRA-TEST-EXCLUSIVE, if non-nil, is called if the
158that would normally be considered usable. If it returns nil, 158buffer would normally qualify. If it returns nil, BUFFER is
159that buffer is rejected." 159rejected, and the function returns nil."
160 (and (buffer-name buffer) ;First make sure it's live. 160 (and (buffer-name buffer) ;First make sure it's live.
161 (not (and avoid-current (eq buffer (current-buffer)))) 161 (not (and avoid-current (eq buffer (current-buffer))))
162 (with-current-buffer buffer 162 (with-current-buffer buffer