]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change in tramp-androidsu.el
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 7 May 2024 17:44:19 +0000 (19:44 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 May 2024 16:52:58 +0000 (18:52 +0200)
(cherry picked from commit d0b36be59ab9840eebbda45609bc8c075ece40c0)

lisp/net/tramp-androidsu.el

index 3dcee8e2f8a8e47048ac016fc61f5da6c1c58abe..09dcd4d7bed1b56ae2fea3b6cb823ba6e697e14e 100644 (file)
@@ -94,8 +94,9 @@ may edit files belonging to any and all applications."
                `(,tramp-androidsu-method nil ,tramp-root-id-string)))
 
 ;;;###tramp-autoload
-(when (eq system-type 'android)
-  (tramp-enable-androidsu-method))
+(tramp--with-startup
+ (when (eq system-type 'android)
+   (tramp-enable-androidsu-method)))
 
 (defvar android-use-exec-loader) ; androidfns.c.