unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: 54746@debbugs.gnu.org
Subject: bug#54746: 29.0.50; Extra backslash in generated docstring
Date: Wed, 06 Apr 2022 13:27:06 +0200	[thread overview]
Message-ID: <86y20i3111.fsf@gnu.org> (raw)

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	other threads:[~2022-04-06 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 11:27 Arash Esbati [this message]
2022-04-06 11:48 ` bug#54746: 29.0.50; Extra backslash in generated docstring Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y20i3111.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=54746@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).