From d2936d21a1168390b2798956db4638b21906afbf Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Nov 2001 00:34:53 +0000 Subject: [PATCH] (Fpropertize): Allow call with 1 arg. --- src/ChangeLog | 2 ++ src/editfns.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9b999fd0b5a..b480f00e0d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-11-14 Richard M. Stallman + * editfns.c (Fpropertize): Allow call with 1 arg. + * dispextern.h (image_background, image_background_transparent): Conditionalize on HAVE_X_WINDOWS. diff --git a/src/editfns.c b/src/editfns.c index 7f94150d0ee..abecfa94466 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -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; -- 2.39.5