diff src/editfns.c @ 41062:07a4ff5f0909

(Fpropertize): Allow call with 1 arg.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Nov 2001 00:34:42 +0000
parents fee88c193206
children af0215d05281
line wrap: on
line diff
--- a/src/editfns.c	Wed Nov 14 22:31:37 2001 +0000
+++ b/src/editfns.c	Thu Nov 15 00:34:42 2001 +0000
@@ -3082,7 +3082,7 @@
 }
 
 
-DEFUN ("propertize", Fpropertize, Spropertize, 3, MANY, 0,
+DEFUN ("propertize", Fpropertize, Spropertize, 1, MANY, 0,
        doc: /* Return a copy of STRING with text properties added.
 First argument is the string to copy.
 Remaining arguments form a sequence of PROPERTY VALUE pairs for text
@@ -3097,7 +3097,7 @@
   int i;
 
   /* Number of args must be odd.  */
-  if ((nargs & 1) == 0 || nargs < 3)
+  if ((nargs & 1) == 0 || nargs < 1)
     error ("Wrong number of arguments");
 
   properties = string = Qnil;