From: Michael Albinus <michael.albinus@gmx.de>
To: Philip Kaludercic <philipk@posteo.net>
Cc: Visuwesh <visuweshm@gmail.com>, "T.V Raman" <raman@google.com>,
emacs-devel@gnu.org
Subject: Re: man broken?
Date: Sun, 07 Jan 2024 12:48:26 +0100 [thread overview]
Message-ID: <874jfpfjp1.fsf@gmx.de> (raw)
In-Reply-To: <87v88aa04w.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 03 Jan 2024 15:48:31 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
Hi,
>>>> 1. emacs -Q
>>>> 2. M-: (require 'tramp-adb) RET
>>>> 3. M-x man RET ls RET
>>
>> Could it be that this is the issue:
>>
>> diff --git a/lisp/files-x.el b/lisp/files-x.el
>> index 41d9cd3bab8..1911afe43e0 100644
>> --- a/lisp/files-x.el
>> +++ b/lisp/files-x.el
>> @@ -1,6 +1,6 @@
>> ;;; files-x.el --- extended file handling commands -*- lexical-binding: t; -*-
>>
>> -;; Copyright (C) 2009-2023 Free Software Foundation, Inc.
>> +;; Copyright (C) 2009-2024 Free Software Foundation, Inc.
>>
>> ;; Author: Juri Linkov <juri@jurta.org>
>> ;; Maintainer: emacs-devel@gnu.org
>> @@ -704,7 +704,7 @@ connection-local-get-profiles
>> profiles)
>> (dolist (crit-alist connection-local-criteria-alist)
>> (let ((crit criteria)
>> - (match t))
>> + (match nil))
>> (while (and crit match)
>> (when (plist-member (car crit-alist) (car crit))
>> (setq match (equal (plist-get (car crit-alist) (car crit))
>>
>>
>> I am not quite sure what is going on in the function, but the invariant
>> is that match is always non-nil after the loop is done, which seems
>> suspicious to me.
>
> Never mind the last sentence, match can be nil if `equal' returns nil at
> some point, but that doesn't happen locally since `criteria' is nil.
Finally, I found the culprit. connection-local-value didn't handle a
local default directory properly.
Fix pushed to master. Again, since this is a macro, you need to
recompile at least files-x.el and man.el (in this order). Or you run
'make bootstrap'.
Best regrds, Michael.
next prev parent reply other threads:[~2024-01-07 11:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-27 18:28 man broken? T.V Raman
2023-12-27 18:56 ` Michael Albinus
2023-12-28 9:48 ` Philip Kaludercic
2023-12-28 15:00 ` Emanuel Berg
2023-12-28 15:13 ` T.V Raman
2023-12-28 16:22 ` Michael Albinus
2023-12-29 19:38 ` Philip Kaludercic
2023-12-30 0:31 ` Emanuel Berg
2023-12-30 4:55 ` Visuwesh
2023-12-30 11:37 ` Michael Albinus
2024-01-03 15:45 ` Philip Kaludercic
2024-01-03 15:48 ` Philip Kaludercic
2024-01-07 11:48 ` Michael Albinus [this message]
2024-01-07 12:02 ` Po Lu
2024-01-07 12:13 ` Michael Albinus
2024-01-07 12:54 ` Po Lu
2024-01-07 22:38 ` Emanuel Berg
2023-12-27 18:57 ` Eli Zaretskii
2023-12-27 19:05 ` 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=874jfpfjp1.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=philipk@posteo.net \
--cc=raman@google.com \
--cc=visuweshm@gmail.com \
/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.