aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorPaul Eggert2015-03-03 14:41:30 -0800
committerPaul Eggert2015-03-03 14:41:30 -0800
commit37ad855a38786722833d06dfe78786acc7e9f412 (patch)
treede0f0c7aac92eb2c321c1d6ec3254250316d1035 /src/fileio.c
parent36a50f38fbbcf5cc0cafc44af9d1bfcd6c13fc25 (diff)
parentf1601063f29c99be77d2513320ed6d2494926c1d (diff)
downloademacs-37ad855a38786722833d06dfe78786acc7e9f412.tar.gz
emacs-37ad855a38786722833d06dfe78786acc7e9f412.zip
Merge from origin/emacs-24
f160106 Avoid assertion violations in Rmail due to newline cache 1b0ebbd browse-url-firefox: update for firefox 36's removal of -remote 1817892 Avoid erratic behavior of menu-bar tooltips on w32 (Bug#19925) 0260932 Bump python.el version b0adfc7 Spelling fixes 35f047c * src/fileio.c (Fmake_temp_name): Doc tweaks. 6f2971a * lisp/comint.el (comint-line-beginning-position): Revert searching 65d8ac7 Mention in admin/notes/repo how to mark commits not to be merged. 86fe750 # Remove NEWS temporary markup 4fa778b erc.el: Add old version header for package.el compatibilty 9366f05 Tramp: Disable paging with PAGER=cat Conflicts: admin/notes/repo etc/NEWS lisp/ChangeLog lisp/erc/ChangeLog src/ChangeLog
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 43ab456d813..d4e12cbe277 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -724,20 +724,16 @@ make_temp_name (Lisp_Object prefix, bool base64_p)
724 724
725DEFUN ("make-temp-name", Fmake_temp_name, Smake_temp_name, 1, 1, 0, 725DEFUN ("make-temp-name", Fmake_temp_name, Smake_temp_name, 1, 1, 0,
726 doc: /* Generate temporary file name (string) starting with PREFIX (a string). 726 doc: /* Generate temporary file name (string) starting with PREFIX (a string).
727The Emacs process number forms part of the result, 727The Emacs process number forms part of the result, so there is no
728so there is no danger of generating a name being used by another process. 728danger of generating a name being used by another Emacs process
729\(so long as only a single host can access the containing directory...).
729 730
730In addition, this function makes an attempt to choose a name 731This function tries to choose a name that has no existing file.
731which has no existing file. To make this work, 732For this to work, PREFIX should be an absolute file name.
732PREFIX should be an absolute file name.
733 733
734There is a race condition between calling `make-temp-name' and creating the 734There is a race condition between calling `make-temp-name' and creating the
735file which opens all kinds of security holes. For that reason, you should 735file, which opens all kinds of security holes. For that reason, you should
736probably use `make-temp-file' instead, except in three circumstances: 736normally use `make-temp-file' instead. */)
737
738* If you are creating the file in the user's home directory.
739* If you are creating a directory rather than an ordinary file.
740* If you are taking special precautions as `make-temp-file' does. */)
741 (Lisp_Object prefix) 737 (Lisp_Object prefix)
742{ 738{
743 return make_temp_name (prefix, 0); 739 return make_temp_name (prefix, 0);