Subject: bug#73656: 30.0.91; icomplete-vertical has no matches for M-x man RET chdir

From: Van Ly <[email-masked]>
Date: Tue, 22 Oct 2024 09:31:35 +0000

Stefan Monnier <[email-masked]> writes:

>> +                         (if (eq system-type 'berkeley-unix) "-l")
>
> Maybe a more robust approach would be something like
>
>     (defvar man--apropos-args (...))
>
> where (...) is a piece of code which actually runs `man` with `-k` and
> with or without `-l` to try and determine which kind of `man` we're
> dealing with, but without making assumptions about which kind of `man`
> is installed on which kind of OS.

The following *shell* buffer logs show "man -k -l chd" then "man -k chd"
run on debian/aarch64 and netbsd/amd64

on debian/aarch64

 . deb$ man -k -l chd
 . chdir (2)            - change working directory
 . fchdir (2)           - change working directory
 . wdctl (8)            - show hardware watchdog status

 . deb$ man -k chd
 . chdir (2)            - change working directory
 . fchdir (2)           - change working directory
 . wdctl (8)            - show hardware watchdog status

 . deb$ echo $APROPOS
 . 
 . deb$ 

on netbsd/amd64

 . net$ man -k -l chd
 . man -k -l chd
 . swwdog(4) - software watchdog timer
 . pwdog(4) - Quancom PWDOG1 watchdog timer device
 . acpiwdrt(4) - ACPI Watchdog Timer WDRT
 . rdcpcib(4) - RDC PCI/ISA bridge and watchdog timer driver
 . i386/geodewdog(4) - AMD Geode SC1100 Watchdog Timer driver
 . gcscpcib(4) - AMD CS553[56] PCI-ISA bridge with timecounter, watchdog timer, and GPIO
 . evbarm/iopwdog(4) - Intel I/O Processor Watchdog Timer
 . x86/tco(4) - Intel Controller Hub TCO watchdog timer device
 . posix_spawn_file_actions_addchdir(3) - add chdir or fchdir action to spawn file actions object
 . chdir(2) - change current working directory
 . wdogctl(8) - Watchdog timer control utility
 . ifwatchd(8) - watch for addresses added to or deleted from interfaces and call up/down-scripts for them

 . net$ man -k chd
 . man -k chd
 . apropos: No relevant results obtained.
 . Please make sure that you spelled all the terms correctly or try using different keywords.

 . net$ echo $APROPOS
 . echo $APROPOS
 . 
 . net$ 

-- 
vl