From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#53446: 29.0.50; Issues with awk-mode and electric-pair-mode Date: Fri, 23 Sep 2022 07:24:34 +0000 Message-ID: <87czbmv9hp.fsf@posteo.net> References: <875yqbdhvy.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20961"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie To: 53446@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 23 09:25:39 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 1obd47-0005FY-0w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 09:25:39 +0200 Original-Received: from localhost ([::1]:44176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obd45-0003Ra-5E for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 03:25:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obd3W-0003Os-E8 for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 03:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obd3V-0008Ki-V7 for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 03:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obd3V-0002fQ-NW for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 03:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Sep 2022 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53446 X-GNU-PR-Package: emacs Original-Received: via spool by 53446-submit@debbugs.gnu.org id=B53446.166391789410235 (code B ref 53446); Fri, 23 Sep 2022 07:25:01 +0000 Original-Received: (at 53446) by debbugs.gnu.org; 23 Sep 2022 07:24:54 +0000 Original-Received: from localhost ([127.0.0.1]:39255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obd3O-0002f1-Hr for submit@debbugs.gnu.org; Fri, 23 Sep 2022 03:24:54 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:47997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obd3J-0002ek-2B for 53446@debbugs.gnu.org; Fri, 23 Sep 2022 03:24:53 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 494AC240101 for <53446@debbugs.gnu.org>; Fri, 23 Sep 2022 09:24:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663917883; bh=VeWXEmO4TK4swLXiNKjaIuPG3tNmKxd3YX7wWZiKcBI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=aDA8jz41a8wIOGKZr4+YEGlsrWNJyZNNU8oLNcE7UyVySJJbULoFrVj+wxPE7/j7r VTyof+dwpl5La5ZMdC3HlxfJlPUTthSjHpiMcfaX0FSh1vQZpcVzT6s1G4eG9EZSJF 2YwvJ1jpbYQH/fMUZH0rKUDBp34dIoSFNYtoiIXuCQar/UCcHjW27g/fBEyqn2Umap 1Bm6WOJZ33X+8JccQOnFV0xUI+7/LvQ9bzZFiEpuM9bHyzoyyosWSOF/5uKl6hsFON 51ni/R6B9wG4lw6Vmg+ylyimY964/QyIpYeX5tvLWRfIzn+d0BjGabywL/lQv0m9n5 +ckAZ308XLvyQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MYkDl4mp1z9rxM; Fri, 23 Sep 2022 09:24:39 +0200 (CEST) In-Reply-To: <875yqbdhvy.fsf@posteo.net> (Philip Kaludercic's message of "Sat, 22 Jan 2022 13:22:57 +0000") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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:243451 Archived-At: Philip Kaludercic writes: > Open an AWK file, and ensure that electric-pair-mode is enabled. It > seems that some character pairs like braces or parentheses are > automatically paired, while others like apostrophes or double quotes are > not. I have managed to narrow this bug to the function `c-electric-pair-inhibit-predicate' that is used as `electric-pair-inhibit-predicate' by cc-mode. Specifically this check (not (equal (c-get-char-property last-quote 'c-fl-syn-tab) '(15))) fails, because the macro (c-get-char-property last-quote 'c-fl-syn-tab) that expands to (get-text-property last-quote 'c-fl-syn-tab) where `last-quote' is the position of the last quotation mark in a "logical line", evaluates to nil, not (15). I do not understand why this happens, or what the text property `c-fl-syn-tab' is supposed to indicate. I have CC'ed Alan to see if he can help.