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#42867: 28.0.50; Wring pair-mode in m4 and similar modes Date: Fri, 16 Oct 2020 17:24:25 +0200 Message-ID: <87362e42ja.fsf@gnus.org> References: <20200814195814.kw6xfj6sfumt22bx.ref@Ergus> <20200814195814.kw6xfj6sfumt22bx@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19389"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 42867@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 17:25:12 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 1kTRbT-0004sm-3j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 17:25:11 +0200 Original-Received: from localhost ([::1]:41860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTRbS-00052Q-0U for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 11:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTRbK-00052D-QK for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 11:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTRbK-0008VG-GR for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 11:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTRbK-0000Jg-DS for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42867 X-GNU-PR-Package: emacs Original-Received: via spool by 42867-submit@debbugs.gnu.org id=B42867.16028618781162 (code B ref 42867); Fri, 16 Oct 2020 15:25:02 +0000 Original-Received: (at 42867) by debbugs.gnu.org; 16 Oct 2020 15:24:38 +0000 Original-Received: from localhost ([127.0.0.1]:60536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTRaw-0000Ib-Ja for submit@debbugs.gnu.org; Fri, 16 Oct 2020 11:24:38 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:57452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTRav-0000IK-6F for 42867@debbugs.gnu.org; Fri, 16 Oct 2020 11:24:37 -0400 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=fCvA0v0RPJ135U9CgGiiopPnzj98P6g6kJZFeuchpfE=; b=d3ffhy+1HYwlqmfdp90+75VDCP 9eT2gEugsOc5P+KZ51vwRoRvn3HwnxmOWygXzJ7vzwY+7Lp8faRijcc+rymR5UlT11rlhmTprIgCT oUSYUdrAZ7io/gI0ovdSsOOMzC6SI40zphN2gZPzJsMfgUSwW8kOWOYEv9SgJEGfTRYc=; 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 1kTRal-0004kx-1M; Fri, 16 Oct 2020 17:24:30 +0200 X-Now-Playing: Krim U's _1981-83_: "3 lys" In-Reply-To: <20200814195814.kw6xfj6sfumt22bx@Ergus> (Ergus's message of "Fri, 14 Aug 2020 21:58:14 +0200") 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:190705 Archived-At: Ergus writes: > Using emacs to edit an m4 file I see that there is an issue recognizing > the corresponding pairs in some cases like when using "case". > > For example: > > ``` > [ > case $word in > i?86) > something ;; > bla) > bla ;; > esac > ] > ``` The problem is that "bla)" has a closing-paren character, and the Emacs's sexp machinery doesn't seem to take into account what the closing paren character is in these circumstances -- just that there's a closing paren? You see this all over the place in Emacs, but fortunately not many languages use closing-parens like that. Does anybody know whether there's any convenient way to fix the problem here in m4-mode? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no