Subject: bug#8947: 24.0.50; `describe-mode': `help-mode-map' pollutes minor mode descriptions

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 28 Apr 2016 13:04:19 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> "Drew Adams" <[email-masked]> writes:
>
>> Visit any *.el file, hit `C-h m', then search for `Transient' in *Help*.
>> The help for `transient-mark-mode' says this:
>>
>> "...for example, incremental search, <, and >."
>>
>> `<' and `>' here should be `M-<' and `M->'.  The bug happens because
>> `help-mode-map' is being used to interpret `\\[beginning-of-buffer]'
>> and `\\[end-of-buffer]'.  In the *Help* buffer, where the text is
>> used, the current keymap is being picked up, where these commands
>> are bound to `<' and `>'.
>
> This bug still exists in Emacs 24.3.

Here's a shorter test case:

(progn
  (describe-function 'transient-mark-mode)
  (with-current-buffer (get-buffer "*Help*")
    (revert-buffer)))

After answering "y", the `M-'s will go missing before the `<' and '>'.

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