all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ergus <spacibba@aol.com>
Cc: 42867@debbugs.gnu.org
Subject: bug#42867: 28.0.50; Wring pair-mode in m4 and similar modes
Date: Fri, 16 Oct 2020 17:24:25 +0200	[thread overview]
Message-ID: <87362e42ja.fsf@gnus.org> (raw)
In-Reply-To: <20200814195814.kw6xfj6sfumt22bx@Ergus> (Ergus's message of "Fri,  14 Aug 2020 21:58:14 +0200")

Ergus <spacibba@aol.com> 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





      reply	other threads:[~2020-10-16 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200814195814.kw6xfj6sfumt22bx.ref@Ergus>
2020-08-14 19:58 ` bug#42867: 28.0.50; Wring pair-mode in m4 and similar modes Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-16 15:24   ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87362e42ja.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=42867@debbugs.gnu.org \
    --cc=spacibba@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.