mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 07:20:28 -08:00
Fix Bug#31022
* lisp/cus-start.el (temporary-file-directory): Suppress file name handlers when calling `shell-command-to-string'. (Bug#31022)
This commit is contained in:
parent
a231c33eab
commit
56794ac6c7
1 changed files with 4 additions and 3 deletions
|
|
@ -277,9 +277,10 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
|
||||||
((eq system-type 'darwin)
|
((eq system-type 'darwin)
|
||||||
(or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
|
(or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
|
||||||
;; See bug#7135.
|
;; See bug#7135.
|
||||||
(let ((tmp (ignore-errors
|
(let* (file-name-handler-alist
|
||||||
(shell-command-to-string
|
(tmp (ignore-errors
|
||||||
"getconf DARWIN_USER_TEMP_DIR"))))
|
(shell-command-to-string
|
||||||
|
"getconf DARWIN_USER_TEMP_DIR"))))
|
||||||
(and (stringp tmp)
|
(and (stringp tmp)
|
||||||
(setq tmp (replace-regexp-in-string
|
(setq tmp (replace-regexp-in-string
|
||||||
"\n\\'" "" tmp))
|
"\n\\'" "" tmp))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue