diff options
| author | Karl Heuer | 1995-03-22 20:45:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-22 20:45:26 +0000 |
| commit | 1b56c3098b8b8b1f422e550a0ffdd646475830a1 (patch) | |
| tree | 12379af066104c288038b50c930ea250db840bbd /src | |
| parent | f2d9e61da405b9f3cd2cebde538a76c4f3055be3 (diff) | |
| download | emacs-1b56c3098b8b8b1f422e550a0ffdd646475830a1.tar.gz emacs-1b56c3098b8b8b1f422e550a0ffdd646475830a1.zip | |
(concat): Treat integers as characters, not strings.
This makes `concat' more like `insert'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -222,8 +222,8 @@ The last argument is not copied, just used as the tail of the new list.") | |||
| 222 | DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0, | 222 | DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0, |
| 223 | "Concatenate all the arguments and make the result a string.\n\ | 223 | "Concatenate all the arguments and make the result a string.\n\ |
| 224 | The result is a string whose elements are the elements of all the arguments.\n\ | 224 | The result is a string whose elements are the elements of all the arguments.\n\ |
| 225 | Each argument may be a string, a list of characters (integers),\n\ | 225 | Each argument may be a string, a character (integer), or a list or vector\n\ |
| 226 | or a vector of characters (integers).") | 226 | of characters (integers).") |
| 227 | (nargs, args) | 227 | (nargs, args) |
| 228 | int nargs; | 228 | int nargs; |
| 229 | Lisp_Object *args; | 229 | Lisp_Object *args; |
| @@ -288,7 +288,7 @@ concat (nargs, args, target_type, last_special) | |||
| 288 | || COMPILEDP (this))) | 288 | || COMPILEDP (this))) |
| 289 | { | 289 | { |
| 290 | if (INTEGERP (this)) | 290 | if (INTEGERP (this)) |
| 291 | args[argnum] = Fnumber_to_string (this); | 291 | args[argnum] = Fcons (this, Qnil); |
| 292 | else | 292 | else |
| 293 | args[argnum] = wrong_type_argument (Qsequencep, this); | 293 | args[argnum] = wrong_type_argument (Qsequencep, this); |
| 294 | } | 294 | } |