Subject: Re: bug#38164: quit-restore-window doesn't restore point in man

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 04 Apr 2021 21:40:17 +0200

Eli Zaretskii <[email-masked]> writes:

>> The recipe is unclear -- I think it's really
>> 
>> M-x man RET man RET
>> select the man window
>> M-: (progn (man "XYZ") (read-string "-->"))
>
> Do you understand the practical importance of the last command?  IOW,
> in which practical use case will 'man' be called like that?

The practical issue was that you do an M-x man on something, and then
start doing something else (for instance a new M-x).  The error message
reported asynchronously will then select a random different buffer.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no