Changeset 4140 for trunk/lispref/strings.texi
- Timestamp:
- 2006年08月10日 11時19分54秒 (2 years ago)
- Files:
-
- trunk/lispref/strings.texi (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lispref/strings.texi
r4131 r4140 701 701 702 702 The characters in @var{string}, other than the format specifications, 703 are copied directly into the output ; if they havetext properties,704 these are copied into the output also.703 are copied directly into the output, including their text properties, 704 if any. 705 705 @end defun 706 706 … … 718 718 @result{} "The value of fill-column is 72." 719 719 @end group 720 @end example 721 722 Since @code{format} interprets @samp{%} characters as format 723 specifications, you should @emph{never} pass an arbitrary string as 724 the first argument. This is particularly true when the string is 725 generated by some Lisp code. Unless the string is @emph{known} to 726 never include any @samp{%} characters, pass @code{"%s"}, described 727 below, as the first argument, and the string as the second, like this: 728 729 @example 730 (format "%s" @var{arbitrary-string}) 720 731 @end example 721 732
