@c Emacs 19 feature
@defun window-minibuffer-p &optional window
-This function returns non-@code{nil} if @var{window} is a minibuffer
-window. @var{window} defaults to the selected window.
+This function returns @code{t} if @var{window} is a minibuffer window.
+@var{window} defaults to the selected window.
@end defun
The following function returns the window showing the currently active
(hack-one-local-variable-quotep exp)))
(defun hack-one-local-variable-eval-safep (exp)
- "Return t if it is safe to eval EXP when it is found in a file."
+ "Return non-nil if it is safe to eval EXP when it is found in a file."
(or (not (consp exp))
;; Detect certain `put' expressions.
(and (eq (car exp) 'put)
;;;###autoload
(defun image-type-available-p (type)
- "Return non-nil if image type TYPE is available.
+ "Return t if image type TYPE is available.
Image types are symbols like `xbm' or `jpeg'."
(and (fboundp 'init-image-library)
(init-image-library type)))
nil))))
(defun doctor-nounp (x)
- "Return t if the symbol argument is a noun."
+ "Return non-nil if the symbol argument is a noun."
(or (doctor-pronounp x)
(not (or (doctor-verbp x)
(equal x 'not)
(doctor-modifierp x) )) ))
(defun doctor-pronounp (x)
- "Return t if the symbol argument is a pronoun."
+ "Return non-nil if the symbol argument is a pronoun."
(memq x '(
i me mine myself
we us ours ourselves ourself
(defun ebrowse-member-display-p (member)
- "Return t if MEMBER must be displayed under the current filter settings."
+ "Check if MEMBER must be displayed under the current filter settings.
+If so, return MEMBER; otherwise return nil."
(if (and (aref ebrowse--filters (ebrowse-ms-visibility member))
(or (null ebrowse--const-display-flag)
(ebrowse-const-p member))
(defun flymake-proc--check-include (source-file-name inc-name include-dirs)
"Check if SOURCE-FILE-NAME can be found in include path.
-Return t if it can be found via include path using INC-NAME."
+Return non-nil if it can be found via include path using INC-NAME."
(if (file-name-absolute-p inc-name)
(flymake-proc--same-files source-file-name inc-name)
(while (and include-dirs
(defun flymake-proc--find-buffer-for-file (file-name)
"Check if there exists a buffer visiting FILE-NAME.
-Return t if so, nil if not."
+Return the buffer if it exists, nil if not."
(let ((buffer-name (get-file-buffer file-name)))
(if buffer-name
(get-buffer buffer-name))))
(defun js--broken-arrow-terminates-line-p ()
"Helper function for `js--proper-indentation'.
-Return t if the last non-comment, non-whitespace token of the
+Return non-nil if the last non-comment, non-whitespace token of the
current line is the \"=>\" token (of an arrow function)."
(let ((from (point)))
(end-of-line)
t))
(defun region-active-p ()
- "Return non-nil if Transient Mark mode is enabled and the mark is active.
+ "Return t if Transient Mark mode is enabled and the mark is active.
Some commands act specially on the region when Transient Mark
mode is enabled. Usually, such commands should use
(+ (nth 1 edges) (nth 1 pos-in-window)))))))
\f
(defun frame-root-window-p (window)
- "Return non-nil if WINDOW is the root window of its frame."
+ "Return t if WINDOW is the root window of its frame."
(eq window (frame-root-window window)))
(defun window--subtree (window &optional next)
}
\f
DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0,
- doc: /* Return non-nil if OBJECT is a buffer which has not been killed.
+ doc: /* Return t if OBJECT is a buffer which has not been killed.
Value is nil if OBJECT is not a buffer or if it has been killed. */)
(Lisp_Object object)
{
DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 1, 1, 0,
doc: /* Initialize image library implementing image type TYPE.
-Return non-nil if TYPE is a supported image type.
+Return t if TYPE is a supported image type.
If image libraries are loaded dynamically (currently only the case on
MS-Windows), load the library for TYPE if it is not yet loaded, using
DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p,
Swindow_minibuffer_p, 0, 1, 0,
- doc: /* Return non-nil if WINDOW is a minibuffer window.
+ doc: /* Return t if WINDOW is a minibuffer window.
WINDOW must be a valid window and defaults to the selected one. */)
(Lisp_Object window)
{