From fb03dd8df3ac60d7d5b7c018a8c8d5dd8a275d4a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 Oct 2019 12:07:51 -0400 Subject: [PATCH] Remove tramp-read-passwd advice tramp-current-method is no longer defined in Emacs 27, and this advice may not be necessary anymore. --- modules/config/default/config.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 4c51e12c9..027a8f6d7 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -52,14 +52,6 @@ (unless IS-WINDOWS (setq tramp-default-method "ssh")) ; faster than the default scp -(defadvice! +default-inhibit-authinfo-for-sudo-a (orig-fn &rest args) - "Don't consult .authinfo for local sudo TRAMP buffers." - :around #'tramp-read-passwd - (let ((auth-sources - (unless (equal tramp-current-method "sudo") - auth-sources))) - (apply orig-fn args))) - ;; ;;; Smartparens config