From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu' Date: Mon, 04 Mar 2024 11:29:54 +0800 Message-ID: <87edcq1xot.fsf@yahoo.com> References: <170892805989.23297.10872025500935567738@vcs2.savannah.gnu.org> <20240226061420.EF1D4C00231@vcs2.savannah.gnu.org> <875xybtxq0.fsf@gmx.de> <87a5nn61k7.fsf@yahoo.com> <87r0gzpopy.fsf@gmx.de> <875xyb5wct.fsf@yahoo.com> <87edcsptvh.fsf@gmx.de> <87sf182ep4.fsf@yahoo.com> <877cijhbxy.fsf@gmx.de> <87a5nf34ba.fsf@yahoo.com> <87r0grfr0t.fsf@gmx.de> <875xy3332q.fsf@yahoo.com> <87msrffpj2.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34407"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 04 04:31:27 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rgz31-0008oG-6u for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Mar 2024 04:31:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgz2B-0007Br-Hk; Sun, 03 Mar 2024 22:30:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rgz28-0007BV-6g for emacs-devel@gnu.org; Sun, 03 Mar 2024 22:30:33 -0500 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rgz26-0004Uu-GO for emacs-devel@gnu.org; Sun, 03 Mar 2024 22:30:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1709523025; bh=kmypuW13+SJCdu8Tx1mXyAbsNdhANkVem1UBnuWASjA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=j94eETeuhDENleuoUw3LJXV+YdwET8HpY6Hc0/2n8XZ4vGQbe4AlvFLyHcNBQ5Z1ZA5DXdU2BR0UuwDOSpKOFW3j2IqNb/LUQEPd8pNJp6pzbyhxt1bQQWutvbY96mXavmzN7mnqm4t28sssAo92pBqS3XYq4X+nhihXTKPyrcSmbOjqfcUfsoo0fJhBLIHUepaYLaxlsoz8LqGq19IRIbNIkyuLB/fZJQZthhLTVHzD/HiKby3LJKNI8WUhnch+5mR3j+7OLaSJnG1Ahz1jNxqbwmJ2+JIP4wEAeIaeFCB/P/HqUFL5dY5iJ3DMGwCxhQm9684Gfb3tl49w/zbNhA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1709523025; bh=cJL2HOcrvqNY5+n+b3hdQjMtDU4f8IVQjd8kW0FuhAV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=J8O8ISavDqH16SlKrs7gGrQbmDJ7VePSPUC1TdjKYqbSeQmcPEuxOqq0lkBBGuseEuPxHp61nz8M9FKuxwQFL8Ymjt+1bBjWwTiAs4trH13Ktyf3L8Ind53/+hlNlM9zIoQFwWsDLAoVSmQm8PznmDJaseUFRzFKP/jxFIn3uhX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aeb2a68-85a4-4acc-8fdf-1f787b9dd316 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Mon, 4 Mar 2024 03:30:25 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-xcqgp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d38acf53ed91b94f5f2807d8490c647b; Mon, 04 Mar 2024 03:30:19 +0000 (UTC) In-Reply-To: <87msrffpj2.fsf@gmx.de> (Michael Albinus's message of "Sun, 03 Mar 2024 13:50:09 +0100") X-Mailer: WebService/1.1.22103 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.146; envelope-from=luangruo@yahoo.com; helo=sonic303-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316777 Archived-At: Michael Albinus 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.