From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23413: rst-mode and electric-pair-pairs Date: Tue, 15 Dec 2020 08:44:02 +0100 Message-ID: <87h7onzf7h.fsf@gnus.org> References: <8737q2jf3d.fsf@home.hong.me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17474"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 23413@debbugs.gnu.org To: Hong Xu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 15 08:45:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kp51B-0004PG-Ug for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 08:45:09 +0100 Original-Received: from localhost ([::1]:59786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kp51A-0005bG-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 02:45:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp514-0005b1-3a for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 02:45:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kp513-0000cZ-Rm for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 02:45:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kp513-0001Tv-QJ for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 02:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Dec 2020 07:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23413 X-GNU-PR-Package: emacs Original-Received: via spool by 23413-submit@debbugs.gnu.org id=B23413.16080182645610 (code B ref 23413); Tue, 15 Dec 2020 07:45:01 +0000 Original-Received: (at 23413) by debbugs.gnu.org; 15 Dec 2020 07:44:24 +0000 Original-Received: from localhost ([127.0.0.1]:55351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp50R-0001SQ-RS for submit@debbugs.gnu.org; Tue, 15 Dec 2020 02:44:24 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:52850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp50P-0001SC-Qo for 23413@debbugs.gnu.org; Tue, 15 Dec 2020 02:44:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VOhUQO9xV7EmnCyAUHZuTBVp6GxpHYRLvzWsf+1e39A=; b=Go098eJ4zFxr0XAK/+IxyoWFlQ 7tjsV+8hZZMPfuAUwS1r0fnq0ESxcAnWHC77uRMBgSTh0Wlnw37D9jY9ksgaofd3fyKeXYZJpsPqh hPP4VXGylPSXWTMkdqWkzdVJ4Dw7xiEti3CvTBOovY/7oa+XRMDtxZoxXjubIiwpeGzE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kp507-0006u3-Hj; Tue, 15 Dec 2020 08:44:15 +0100 X-Now-Playing: AR Kane's _I_: "Supervixens" In-Reply-To: <8737q2jf3d.fsf@home.hong.me> (Hong Xu's message of "Sun, 01 May 2016 02:35:18 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196137 Archived-At: Hong Xu 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