aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2019-10-17 02:45:06 +0200
committerJuanma Barranquero2019-10-17 02:45:06 +0200
commit3ad407005bf6560f4db40cab9dbeeabe554fb457 (patch)
tree220cc14a498e7586c8c330ac4766ab7c10b3d26b /src
parent2bb0703e24ec1b02bb2ab4be67719e2e050cc4d3 (diff)
downloademacs-3ad407005bf6560f4db40cab9dbeeabe554fb457.tar.gz
emacs-3ad407005bf6560f4db40cab9dbeeabe554fb457.zip
lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nil
* lisp/progmodes/flymake-proc.el (flymake-proc--find-buffer-for-file): Doc fix; return value is a buffer, not t. * lisp/progmodes/ebrowse.el (ebrowse-member-display-p): Doc fix; return value is the MEMBER argument, not nil. * lisp/files.el (hack-one-local-variable-eval-safep): * lisp/play/doctor.el (doctor-nounp, doctor-pronounp): * lisp/progmodes/flymake-proc.el (flymake-proc--check-include): * lisp/progmodes/js.el (js--broken-arrow-terminates-line-p): Doc fix; a non-nil return value is not always t. * lisp/image.el (image-type-available-p): * lisp/simple.el (region-active-p): * lisp/window.el (frame-root-window-p): * src/buffer.c (Fbuffer_live_p): * src/image.c (Finit_image_library): * src/window.c (Fwindow_minibuffer_p): Doc fix; a non-nil return value is always t. * doc/lispref/minibuf.texi (Minibuffer Windows): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c2
-rw-r--r--src/image.c2
-rw-r--r--src/window.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8cb28d8aa70..80eaa971a3a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -383,7 +383,7 @@ nsberror (Lisp_Object spec)
383} 383}
384 384
385DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0, 385DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0,
386 doc: /* Return non-nil if OBJECT is a buffer which has not been killed. 386 doc: /* Return t if OBJECT is a buffer which has not been killed.
387Value is nil if OBJECT is not a buffer or if it has been killed. */) 387Value is nil if OBJECT is not a buffer or if it has been killed. */)
388 (Lisp_Object object) 388 (Lisp_Object object)
389{ 389{
diff --git a/src/image.c b/src/image.c
index 7cf1bc4c362..08e420837a0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -10053,7 +10053,7 @@ The list of capabilities can include one or more of the following:
10053 10053
10054DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 1, 1, 0, 10054DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 1, 1, 0,
10055 doc: /* Initialize image library implementing image type TYPE. 10055 doc: /* Initialize image library implementing image type TYPE.
10056Return non-nil if TYPE is a supported image type. 10056Return t if TYPE is a supported image type.
10057 10057
10058If image libraries are loaded dynamically (currently only the case on 10058If image libraries are loaded dynamically (currently only the case on
10059MS-Windows), load the library for TYPE if it is not yet loaded, using 10059MS-Windows), load the library for TYPE if it is not yet loaded, using
diff --git a/src/window.c b/src/window.c
index 1e6e148bf48..e4bb2daeb38 100644
--- a/src/window.c
+++ b/src/window.c
@@ -384,7 +384,7 @@ If FRAME is omitted or nil, it defaults to the selected frame. */)
384 384
385DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, 385DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p,
386 Swindow_minibuffer_p, 0, 1, 0, 386 Swindow_minibuffer_p, 0, 1, 0,
387 doc: /* Return non-nil if WINDOW is a minibuffer window. 387 doc: /* Return t if WINDOW is a minibuffer window.
388WINDOW must be a valid window and defaults to the selected one. */) 388WINDOW must be a valid window and defaults to the selected one. */)
389 (Lisp_Object window) 389 (Lisp_Object window)
390{ 390{