Subject: Re: bug#67474: 29.1; Buggy example in manual

From: Eli Zaretskii <[email-masked]>
Date: Mon, 27 Nov 2023 15:04:21 +0200

> Date: Mon, 27 Nov 2023 00:01:07 +0000
> From:  silarakta via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> 
> In Customization > Key Bindings > Init Rebinding ("50.3.6 Rebinding Keys in Your Init File"), the last example reads:
> 
>      (add-hook 'texinfo-mode-hook
>                (lambda ()
>                  (keymap-set texinfo-mode-map "C-c p"
>                              'backward-paragraph)
>                  (keymap-set texinfo-mode-map "C-c n"
>                              'forward-paragraph)))
>                  (keymap-set texinfo-mode-map "C-c C-x x" nil)
> 
> Parentheses in the second-to-last line are misplaced.
> Corrected example:
> 
>      (add-hook 'texinfo-mode-hook
>                (lambda ()
>                  (keymap-set texinfo-mode-map "C-c p"
>                              'backward-paragraph)
>                  (keymap-set texinfo-mode-map "C-c n"
>                              'forward-paragraph)
>                  (keymap-set texinfo-mode-map "C-c C-x x" nil)))
> 

Thanks, fixed on the emacs-29 branch, and closing the bug.