Show
Ignore:
Timestamp:
2006年08月10日 11時19分54秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lispref/strings.texi

    r4131 r4140  
    701701 
    702702The characters in @var{string}, other than the format specifications, 
    703 are copied directly into the output; if they have text properties, 
    704 these are copied into the output also
     703are copied directly into the output, including their text properties, 
     704if any
    705705@end defun 
    706706 
     
    718718     @result{} "The value of fill-column is 72." 
    719719@end group 
     720@end example 
     721 
     722  Since @code{format} interprets @samp{%} characters as format 
     723specifications, you should @emph{never} pass an arbitrary string as 
     724the first argument.  This is particularly true when the string is 
     725generated by some Lisp code.  Unless the string is @emph{known} to 
     726never include any @samp{%} characters, pass @code{"%s"}, described 
     727below, as the first argument, and the string as the second, like this: 
     728 
     729@example 
     730  (format "%s" @var{arbitrary-string}) 
    720731@end example 
    721732