bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54746: 29.0.50; Extra backslash in generated docstring


From: Arash Esbati
Subject: bug#54746: 29.0.50; Extra backslash in generated docstring
Date: Wed, 06 Apr 2022 13:27:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi all,

this is what I see when I do 'C-h f electric-pair-mode RET':

--8<---------------cut here---------------start------------->8---
electric-pair-mode is an interactive native compiled Lisp function in
‘elec-pair.el’.

(electric-pair-mode &optional ARG)

Toggle automatic parens pairing (Electric Pair mode).

Electric Pair mode is a global minor mode.  When enabled, typing
an open parenthesis automatically inserts the corresponding
closing parenthesis, and vice versa.  (Likewise for brackets, etc.).
If the region is active, the parentheses (brackets, etc.) are
inserted around the region instead.

To toggle the mode in a single buffer, use ‘electric-pair-local-mode’.

This is a global minor mode.  If called interactively, toggle the
‘Electric-Pair mode’ mode.  If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is ‘toggle’.  Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate ‘(default-value \'electric-pair-mode)’.

The mode’s hook is called both when the mode is enabled and when
it is disabled.
--8<---------------cut here---------------end--------------->8---

Is the backslash in this form:

  (default-value \'electric-pair-mode)
                 ^

necessary?  It prevents one from eval'ing the form directly in the
*Help* buffer.

This is with Emacs 29.0.50 (78ecd67888).

Best, Arash





reply via email to

[Prev in Thread] Current Thread [Next in Thread]