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: Michael Albinus
Subject: Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu'
Date: Mon, 04 Mar 2024 15:47:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Po Lu <luangruo@yahoo.com> writes:

Hi,

>> 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)))))
>
> Too bad the two methods still cannot share the same name, as in that
> case their respective entries in tramp-methods cannot coexist.

Hmm. Perhaps this could be fixed by using special `tramp-androidsu-*'
parameters in the "su" entry of `tramp-methods'. But this might go to
far; I let it for you whether you want to try it.

Best regards, Michael.



reply via email to

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