From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#42867: 28.0.50; Wring pair-mode in m4 and similar modes Date: Fri, 14 Aug 2020 21:58:14 +0200 Message-ID: <20200814195814.kw6xfj6sfumt22bx@Ergus> References: <20200814195814.kw6xfj6sfumt22bx.ref@Ergus> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8686"; mail-complaints-to="usenet@ciao.gmane.io" To: 42867@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 21:59:16 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 1k6frA-00029h-BH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 21:59:16 +0200 Original-Received: from localhost ([::1]:40590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6fr9-0003dW-AR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 15:59:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6fqx-0003Xm-G1 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 15:59:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6fqw-0008A7-K3 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 15:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6fqw-0001Zg-IZ for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 15:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 19:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42867 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15974351116014 (code B ref -1); Fri, 14 Aug 2020 19:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2020 19:58:31 +0000 Original-Received: from localhost ([127.0.0.1]:53943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6fqQ-0001Yv-Rc for submit@debbugs.gnu.org; Fri, 14 Aug 2020 15:58:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6fqO-0001Yn-Ik for submit@debbugs.gnu.org; Fri, 14 Aug 2020 15:58:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6fqN-00035O-IV for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 15:58:28 -0400 Original-Received: from sonic309-14.consmr.mail.bf2.yahoo.com ([74.6.129.124]:40008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6fqL-000874-7h for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 15:58:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1597435103; bh=dy5n9sUyJutZvftqeWSaE42WAbnBJUvtJEj4xKdcEEI=; h=Date:From:To:Subject:References:From:Subject; b=haT30DGrjHjo7aqOkcEx9GeZhLvNtpOIzrndzK/eriqviG/DEkXKLQAWrs/Z93Z0jemVRPKseIQsER62Cd9Gn0QZlYd+7EC0/lOJy0pjWKm/bAVNRK76Wpu2CJgX1tKtAcVdqSfHaxlBS3kC83YHZEs56RgpYDX9OUyMi2iNkbjxiZhn8ec+2F9BVKWjBWQDe0OmX7wB6d8qDKlmh81ax6WOjIbwwD1mSw0TJwkFaSb7Qgfez3pC0s/L1R2cRcsq15DUOZ25Q628a3q3bu5ZI8x50B3YUIvOYNRBmCpUdXlfidEQ15tDvHHAHLq9jnwoJKmg2aFbHmDpPQPJw+Y+mg== X-YMail-OSG: Yi7fQlcVM1n66VkTkp51WGpmUrvMNqMdy6VjL5dEaOUzQ92km5GyzlxINGH.R3n z8nPnYB66lbCFpn6xCltXRwGP2BuJFq.SkyOT85wWIjfdWWzJ8N_jmQlZjD1xkPWHjBsVjf13Py5 4tah0YOBRrN2P6L3Cpup04n73MO0spoaFbA8kdWldPdQP1leJj1To0.s9AjEkLjhcr1ghn31ooz0 hBo1L2FeJL8BvrCDldUt_OOkb_2axFjEAOU5NYbbe.4AYan8erGi_.Cb8gflhgyVDRS1Svuohb1M rv0T_1Cpo3IBScOkuYew_AT_l1fb.gk.j92EaUAt0rMgDSQTd7yUXkRLbnWmtDeKEcpn_YfbhvJP umR.TwD4iRVOhhb0BGO_Z09yozGrMwPf8BtXuBmaQJfo5b7VuZ4MjLQFReAzTaV6B4pRIm9M.Dn1 i0T96yXE8FgRp5qXdbg.UykGSNF_hINI6JJJHwMTsUOCMHRChIs1AGmr.al7f7vi095gmBAcAHkg zvHfZhAFkMlO8NmJn3EY3qFWoFue01r2n4.d7hn5TIwqsWMBckRxS.zNJq7VOz.xY9X7UNuQO5Fv EgZT1QrtACHeNvGy8FNlkVKmq2k8UiNAX8TLafJ.glXGHgI.mwf3lXHBd6z0_rgk0VWXltxt__54 U80A70GHIPKR6lpLgqjsSNLslvjgLoHc2XKNx2qehRCWjGtEP1sv4Or4uGk6jxL0ZxjLjmWdz_Bt wshBNmnvV1A4YrPsXmjj07PWKL4uk6Ab7SuF9hVSIVwSOaM1SLBBSPJvAE5lCnEged2LLOGhcLlV pO9BIewvWc4ZUJNbT2TkhQp07BE_Z58QEZREuNxs.E Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Fri, 14 Aug 2020 19:58:23 +0000 Original-Received: by smtp401.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 78aea373aaade104c946a43ff255cebe; Fri, 14 Aug 2020 19:58:19 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.16455 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.129.124; envelope-from=spacibba@aol.com; helo=sonic309-14.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/14 15:58:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:185162 Archived-At: --text follows this line-- 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 ] ``` all the commands like forward-list or modes like show-paren-mode highlight the parentesis after i?86 as the closing for the first one. While the really closing one looks unpaired. Try emacs -Q file.m4 M-x show-paren-mode yank the example code and go to [. And see In GNU Emacs 28.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-12 built on Ergus Repository revision: fd6058b8fb07329bdd7d36cd05f4be1c5c691f9f Repository branch: master System Description: Arch Linux Recent messages: next-line: End of buffer [6 times] Current locus from *grep* Mark saved where search started Show-Paren mode enabled Making completion list... Quit Type "q" in help window to restore its previous buffer. Making completion list... completing-read-default: Command attempted to use minibuffer while in minibuffer funcall-interactively: End of buffer Configured using: 'configure --prefix=/home/ergo/.local/ --with-mailutils --with-json' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: m4 Minor modes in effect: show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra pp cl-print ibuf-ext ibuffer ibuffer-loaddefs help-fns radix-tree help-mode cus-start cus-load paren misearch multi-isearch find-dired dired dired-loaddefs ffap url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map seq url-vars thingatpt grep compile comint ansi-color ring vc-git diff-mode easymenu easy-mmode cl-loaddefs cl-lib m4-mode term/tmux term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 102679 15950) (symbols 48 9862 1) (strings 32 29160 1933) (string-bytes 1 868059) (vectors 16 13716) (vector-slots 8 153782 8256) (floats 8 36 675) (intervals 56 1332 0) (buffers 992 15))