diff options
author | Richard M. Stallman <rms@gnu.org> | 2001-11-15 00:34:53 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2001-11-15 00:34:53 +0000 |
commit | d2936d21a1168390b2798956db4638b21906afbf (patch) | |
tree | a1a11127c730e2078a259528e6dcd76061bbb640 /src/editfns.c | |
parent | c26e3f6c55cf2b52f760b3e92b7d41d47dba79f3 (diff) | |
download | emacs-d2936d21a1168390b2798956db4638b21906afbf.tar.gz |
(Fpropertize): Allow call with 1 arg.
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |