]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fpropertize): Allow call with 1 arg.
authorRichard M. Stallman <rms@gnu.org>
Thu, 15 Nov 2001 00:34:53 +0000 (00:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 15 Nov 2001 00:34:53 +0000 (00:34 +0000)
src/ChangeLog
src/editfns.c

index 9b999fd0b5a70d73ed946aab6e6772b386284841..b480f00e0d1869994aa1c4ee7a4d52b11411a405 100644 (file)
@@ -1,5 +1,7 @@
 2001-11-14  Richard M. Stallman  <rms@gnu.org>
 
+       * editfns.c (Fpropertize): Allow call with 1 arg.
+
        * dispextern.h (image_background, image_background_transparent):
        Conditionalize on HAVE_X_WINDOWS.
 
index 7f94150d0ee25735846a21e42df39dd1b168171d..abecfa944666e77c64c23bd987668e6efe93657e 100644 (file)
@@ -3082,7 +3082,7 @@ DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0,
 }
 
 
-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 @@ usage: (propertize STRING &rest PROPERTIES)  */)
   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;