From 4f62fd0789d914ccf5cd10de5d11eea41a5296a7 Mon Sep 17 00:00:00 2001 From: Tianshu Wang Date: Thu, 5 Sep 2024 15:49:11 +0800 Subject: [PATCH] Revert $TMPDIR for emacsclient --- Library/Homebrew/dev-cmd/edit.rb | 2 ++ bin/brew | 1 + 2 files changed, 3 insertions(+) diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 26be25488d..9164c553d7 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -28,6 +28,8 @@ module Homebrew sig { override.void } def run ENV["COLORTERM"] = ENV.fetch("HOMEBREW_COLORTERM", nil) + # Recover $TMPDIR for emacsclient + ENV["TMPDIR"] = ENV.fetch("HOMEBREW_TMPDIR", nil) unless (HOMEBREW_REPOSITORY/".git").directory? odie <<~EOS diff --git a/bin/brew b/bin/brew index 5c527f632d..58bc4f24a3 100755 --- a/bin/brew +++ b/bin/brew @@ -193,6 +193,7 @@ USED_BY_HOMEBREW_VARS=( RBENV_ROOT SSH_TTY SUDO_USER + TMPDIR TMUX XDG_CACHE_HOME XDG_DATA_DIRS