[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: man broken?
|
From: |
Michael Albinus |
|
Subject: |
Re: man broken? |
|
Date: |
Sun, 07 Jan 2024 12:48:26 +0100 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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.