unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54746: 29.0.50; Extra backslash in generated docstring
@ 2022-04-06 11:27 Arash Esbati
  2022-04-06 11:48 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Arash Esbati @ 2022-04-06 11:27 UTC (permalink / raw)
  To: 54746

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#54746: 29.0.50; Extra backslash in generated docstring
  2022-04-06 11:27 bug#54746: 29.0.50; Extra backslash in generated docstring Arash Esbati
@ 2022-04-06 11:48 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-06 11:48 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 54746

Arash Esbati <arash@gnu.org> writes:

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

I've now fixed this in Emacs 29.

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-06 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 11:27 bug#54746: 29.0.50; Extra backslash in generated docstring Arash Esbati
2022-04-06 11:48 ` Lars Ingebrigtsen

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).