Minor tuneup of write-region change
* src/fileio.c (write_region): Use SCHARS, not Flength, on a value known to be a string.
This commit is contained in:
parent
c323659344
commit
6fbbfc77d4
1 changed files with 3 additions and 3 deletions
|
@ -5156,9 +5156,9 @@ write_region (Lisp_Object start, Lisp_Object end, Lisp_Object filename,
|
|||
: ! NILP (append)
|
||||
? "Added to `%s' (%d characters)"
|
||||
: "Wrote `%s' (%d characters)");
|
||||
CALLN (Fmessage, format, visit_file,
|
||||
(STRINGP (start) ? Flength (start)
|
||||
: make_number (XINT (end) - XINT (start))));
|
||||
EMACS_INT nchars = (STRINGP (start) ? SCHARS (start)
|
||||
: XINT (end) - XINT (start));
|
||||
CALLN (Fmessage, format, visit_file, make_number (nchars));
|
||||
}
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue