]> code.delx.au - gnu-emacs/blobdiff - lispref/strings.texi
(Writing Emacs Primitives): Clarify GCPRO rules.
[gnu-emacs] / lispref / strings.texi
index e722b74e54cee90ead855addb3d0492e0e33bd4c..796090bb80cfae8603c72f8af58ca07129a9c9a8 100644 (file)
@@ -102,6 +102,11 @@ This function returns @code{t} if @var{object} is a string, @code{nil}
 otherwise.
 @end defun
 
+@defun string-or-null-p object
+This function returns @code{t} if @var{object} is a string or nil,
+@code{nil} otherwise.
+@end defun
+
 @defun char-or-string-p object
 This function returns @code{t} if @var{object} is a string or a
 character (i.e., an integer), @code{nil} otherwise.
@@ -293,7 +298,7 @@ null strings are always omitted from the result.  Thus:
      @result{} ("two" "words")
 @end example
 
-The result is not @samp{("" "two" "words" "")}, which would rarely be
+The result is not @code{("" "two" "words" "")}, which would rarely be
 useful.  If you need such a result, use an explicit value for
 @var{separators}:
 
@@ -355,7 +360,7 @@ practice:
 
 @defvar split-string-default-separators
 The default value of @var{separators} for @code{split-string}.  Its
-usual value is @w{@samp{"[ \f\t\n\r\v]+"}}.
+usual value is @w{@code{"[ \f\t\n\r\v]+"}}.
 @end defvar
 
 @node Modifying Strings