all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Madhu <enometh@meer.net>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-30 f050b9c5033: Fix Tramp IPv6 handling in tests
Date: Mon, 05 Aug 2024 20:21:30 +0200	[thread overview]
Message-ID: <87cymmomol.fsf@gmx.de> (raw)
In-Reply-To: <87mslqoql8.fsf@gmx.de> (Michael Albinus's message of "Mon, 05 Aug 2024 18:57:07 +0200")

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

Hi Madhu,

>>>  ;;; Integration of shortdoc.el:
>>>
>>>  (with-eval-after-load 'shortdoc
>>> -  (dolist (elem '((file-remote-p
>>> +  (dolist (elem `((file-remote-p
>>>  		   :eval (file-remote-p "/ssh:user@host:/tmp/foo")
>>> -		   :eval (file-remote-p "/ssh:user@host:/tmp/foo" 'method))
>>> +		   :eval (file-remote-p "/ssh:user@host:/tmp/foo" 'method)
>>> +		   :eval (file-remote-p "/ssh:user@[::1]#1234:/tmp/foo" 'host)
>>> +		   ;; We don't want to see the text properties.
>>> +		   :no-eval (file-remote-p "/sudo::/tmp/foo" 'user)
>>> +		   :result ,(substring-no-properties
>>> +			     (file-remote-p "/sudo::/tmp/foo" 'user)))
>>
>> just a caveat that substring-no-properties can end up being called on
>> nil here.  I agree it is unlikely, but I managed to trigger it with the
>> `swiper' package, where an unconditional (require 'tramp) in the midst
>> of code kept failing.
>
> In that case (file-remote-p returns nil) the whole block doesn't make
> sense. How did they manage to manipulate Tramp this way? Setting
> tramp-mode to nil? Manipulating file-name-handler-alist?

I've added a sanity check. Pushed to the emacs-30 branch.

Best regards, Michael.



  reply	other threads:[~2024-08-05 18:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <172163502862.25672.12565431460737995012@vcs2.savannah.gnu.org>
     [not found] ` <20240722075709.1C23CC41F06@vcs2.savannah.gnu.org>
2024-08-05 14:30   ` emacs-30 f050b9c5033: Fix Tramp IPv6 handling in tests Madhu
2024-08-05 16:57     ` Michael Albinus
2024-08-05 18:21       ` Michael Albinus [this message]
2024-08-06  2:41         ` Madhu
2024-08-06 14:08           ` Michael Albinus
2024-08-07 15:21             ` Madhu
2024-09-25 16:08   ` Andreas Schwab
2024-09-25 17:47     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cymmomol.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=enometh@meer.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.