emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu'


From: Po Lu
Subject: Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu'
Date: Mon, 04 Mar 2024 11:29:54 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Albinus <michael.albinus@gmx.de> writes:

> Good question. So perhaps we must improve the check like (untested)
>
> (defsubst tramp-androidsu-file-name-p (vec-or-filename)
>   "Check whether VEC-OR-FILENAME is for the `androidsu' method."
>   (when-let* ((vec (tramp-ensure-dissected-file-name vec-or-filename)))
>     (and (eq system-type 'android)
>          (equal (tramp-file-name-method vec) tramp-androidsu-method)
>          (null (tramp-file-name-hop vec)))))
>
> Best regards, Michael.

Too bad the two methods still cannot share the same name, as in that
case their respective entries in tramp-methods cannot coexist.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]