all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23413: rst-mode and electric-pair-pairs
@ 2016-05-01  9:35 Hong Xu
  2020-12-15  7:44 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Hong Xu @ 2016-05-01  9:35 UTC (permalink / raw)
  To: 23413; +Cc: Hong Xu


Dear maintainers,

I noticed that in rst-mode the variable `electric-pair-pairs' is set.
However, according the document of the variable, it seems that this
variable should be set by the user as a fallback (according to the
user's preference) regardless of the major modes:

    Alist of pairs that should be used regardless of major mode.

    Pairs of delimiters in this list are a fallback in case they have
    no syntax relevant to `electric-pair-mode' in the mode's syntax
    table.

    See also the variable `electric-pair-text-pairs'.

    You can customize this variable.

Major modes, per my understanding, should set the syntax table properly
for electric-pair-mode to do auto pairing.

I would consider this as a bug that does not respect users'
configuration on `electric-pair-pairs'.

Hong





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

* bug#23413: rst-mode and electric-pair-pairs
  2016-05-01  9:35 bug#23413: rst-mode and electric-pair-pairs Hong Xu
@ 2020-12-15  7:44 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-15  7:44 UTC (permalink / raw)
  To: Hong Xu; +Cc: 23413

Hong Xu <hong@topbug.net> writes:

> I noticed that in rst-mode the variable `electric-pair-pairs' is set.
> However, according the document of the variable, it seems that this
> variable should be set by the user as a fallback (according to the
> user's preference) regardless of the major modes:
>
>     Alist of pairs that should be used regardless of major mode.
>
>     Pairs of delimiters in this list are a fallback in case they have
>     no syntax relevant to `electric-pair-mode' in the mode's syntax
>     table.
>
>     See also the variable `electric-pair-text-pairs'.
>
>     You can customize this variable.
>
> Major modes, per my understanding, should set the syntax table properly
> for electric-pair-mode to do auto pairing.

This should now be fixed in Emacs 28.

-- 
(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:[~2020-12-15  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01  9:35 bug#23413: rst-mode and electric-pair-pairs Hong Xu
2020-12-15  7:44 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.