Mercurial > emacs
changeset 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 | 9687641007d3 |
children | dfe821140b60 |
files | src/editfns.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;