diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-18 20:36:10 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-18 20:37:31 -0700 |
commit | e73691e1a47834aff367c9131fc3c7d78751d821 (patch) | |
tree | c1cf3cd0d4e99b8edaba6c13d53c5d762e0dc7e2 /src/filelock.c | |
parent | e66e81679c3c91d6bf8f62c7abcd968430b4d1fe (diff) | |
download | emacs-e73691e1a47834aff367c9131fc3c7d78751d821.tar.gz emacs-e73691e1a47834aff367c9131fc3c7d78751d821.tar.bz2 emacs-e73691e1a47834aff367c9131fc3c7d78751d821.zip |
Improve make-temp-file performance on local files
* lisp/files.el (make-temp-file): Let make-temp-file-internal do
the work of inserting the text.
* src/fileio.c (Fmake_temp_file_internal): New arg TEXT.
All callers changed.
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c index fec9bc044ae..fd4f0aa864e 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -210,7 +210,7 @@ get_boot_time (void) names up to 8 bytes long. Choose a 2 byte prefix, so the 6-byte suffix does not make the name too long. */ filename = Fmake_temp_file_internal (build_string ("wt"), Qnil, - empty_unibyte_string); + empty_unibyte_string, Qnil); CALLN (Fcall_process, build_string ("gzip"), Qnil, list2 (QCfile, filename), Qnil, build_string ("-cd"), tempname); |