From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53661: 29.0.50; electric-pair-mode not respecting electric-pair-inhibit-predicate. Date: Mon, 31 Jan 2022 20:04:02 +0200 Message-ID: <83czk793zh.fsf@gnu.org> References: <87fsp4eygw.fsf.ref@aol.com> <87fsp4eygw.fsf@aol.com> <83iltz97s8.fsf@gnu.org> <20220131172931.fwqtax34h6a5v4o4@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19486"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53661@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 31 19:05:51 2022 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 1nEb3n-0004uR-5M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 19:05:51 +0100 Original-Received: from localhost ([::1]:54898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEb3l-0006zh-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 13:05:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEb30-0006xw-4b for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 13:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEb2z-00006c-QG for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 13:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEb2z-0004UY-Js for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2022 13:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53661 X-GNU-PR-Package: emacs Original-Received: via spool by 53661-submit@debbugs.gnu.org id=B53661.164365226217207 (code B ref 53661); Mon, 31 Jan 2022 18:05:01 +0000 Original-Received: (at 53661) by debbugs.gnu.org; 31 Jan 2022 18:04:22 +0000 Original-Received: from localhost ([127.0.0.1]:40716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEb2M-0004TT-74 for submit@debbugs.gnu.org; Mon, 31 Jan 2022 13:04:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEb2K-0004T9-FJ for 53661@debbugs.gnu.org; Mon, 31 Jan 2022 13:04:20 -0500 Original-Received: from [2001:470:142:3::e] (port=52246 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEb26-0008P3-22; Mon, 31 Jan 2022 13:04:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=oJHjspmdowixPqRY7JUJQtrNjKPVMUEGMHLzPTTBWaQ=; b=pSIYI+wu+sWV 2u/JN+PbtMQBshqXiAW7ZngubocUny2hlIay0HPiYBsufEeJPGYc5H/s9GJxIGnxS8LgvzaBPcWmp p/RgqT2eaq9wge3+dB3Wdx5UH3oA83PWGMke7tw4p/8e5cM2rDlHvHHvl629xdbUzW5DGvv1qbp7z Rxj3+msQTOoS/xPCAFNOiVa2rtAO5R4h52pq8CG/HGYTEf3QsgeRDemj7rrHbQdUMXiPDR5ZXNR7V Ki1R3QktMnGmFCYU1D3a9MuTZaJzIQlmbB2n2/NT3G7lSP0cPqCviC6fZB24AVotLlELYLwe7UFsq V0MaXgcAddss2Bu2vFZnsA==; Original-Received: from [87.69.77.57] (port=2361 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEb24-0008IB-Gl; Mon, 31 Jan 2022 13:04:05 -0500 In-Reply-To: <20220131172931.fwqtax34h6a5v4o4@Ergus> (message from Ergus on Mon, 31 Jan 2022 18:29:31 +0100) 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:225711 Archived-At: > Date: Mon, 31 Jan 2022 18:29:31 +0100 > From: Ergus > Cc: 53661@debbugs.gnu.org > > >> (memq syntax '(?\( ?\" ?\$)) > >> > >> So, for other pairs, the function electric-pair-inhibit-predicate is > >> never called. > > > >The above condition looks at the _syntax_ of a character, not at the > >character itself. So what do you find "hard-coded" there,and what > >kind of pairs of characters did you want to add that don't have one of > >those syntaxes? > > Hi Eli: > > I wanted to add "<>" so I added to my init: > > (add-to-list 'electric-pair-pairs '(?< . ?>)) And it didn't work because of the hard-coded syntaxes? What is the syntax of ?< in the mode where you wanted to add that?