Commit d2936d21 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fpropertize): Allow call with 1 arg.

parent c26e3f6c
2001-11-14 Richard M. Stallman <rms@gnu.org> 2001-11-14 Richard M. Stallman <rms@gnu.org>
* editfns.c (Fpropertize): Allow call with 1 arg.
* dispextern.h (image_background, image_background_transparent): * dispextern.h (image_background, image_background_transparent):
Conditionalize on HAVE_X_WINDOWS. Conditionalize on HAVE_X_WINDOWS.
......
...@@ -3082,7 +3082,7 @@ DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, ...@@ -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. doc: /* Return a copy of STRING with text properties added.
First argument is the string to copy. First argument is the string to copy.
Remaining arguments form a sequence of PROPERTY VALUE pairs for text Remaining arguments form a sequence of PROPERTY VALUE pairs for text
...@@ -3097,7 +3097,7 @@ usage: (propertize STRING &rest PROPERTIES) */) ...@@ -3097,7 +3097,7 @@ usage: (propertize STRING &rest PROPERTIES) */)
int i; int i;
/* Number of args must be odd. */ /* Number of args must be odd. */
if ((nargs & 1) == 0 || nargs < 3) if ((nargs & 1) == 0 || nargs < 1)
error ("Wrong number of arguments"); error ("Wrong number of arguments");
properties = string = Qnil; properties = string = Qnil;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment