mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Merge from origin/emacs-26
cfc94fd(origin/emacs-26) Don't mention 'vc-stay-local' in the user m...8ce430bFix a typo in calendar.texibb748b3Minor improvement in wording of the Emacs manualb603affRevert "Fix tempfile creation when byte compiling"4fd446eFix tempfile creation when byte compiling7f48a11Improve the Emacs manual as suggested in emacs-manual-bugs728ded0* lisp/emacs-lisp/bytecomp.el: Tweak last changec6c05e2Unbreak building Emacs on FreeBSDa41ad3dDon't unnecessarily use non-ASCII characters in C sourcesc28d4b6Portability fixes in emacs-module-tests1d50c18Add tests for term.el
This commit is contained in:
commit
60d5a13d28
14 changed files with 215 additions and 48 deletions
|
|
@ -1933,7 +1933,17 @@ The value is non-nil if there were no errors, nil if errors."
|
|||
;; parallel bootstrap), it does not risk getting a
|
||||
;; half-finished file. (Bug#4196)
|
||||
(tempfile
|
||||
(make-temp-file (file-name-nondirectory target-file)))
|
||||
(if (file-name-absolute-p target-file)
|
||||
(make-temp-file target-file)
|
||||
;; If target-file is relative and includes
|
||||
;; leading directories, make-temp-file will
|
||||
;; assume those leading directories exist
|
||||
;; under temporary-file-directory, which might
|
||||
;; not be true. So strip leading directories
|
||||
;; from relative file names before calling
|
||||
;; make-temp-file.
|
||||
(make-temp-file
|
||||
(file-name-nondirectory target-file))))
|
||||
(default-modes (default-file-modes))
|
||||
(temp-modes (logand default-modes #o600))
|
||||
(desired-modes (logand default-modes #o666))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue