all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24299: perl-mode: mismatched parenthesis message
@ 2016-08-24 12:27 積丹尼 Dan Jacobson
  2019-07-06  4:00 ` Stefan Kangas
  2021-06-23 15:59 ` bug#24299: Can we just drop the noise from blink-matching-paren? Harald Jörg
  0 siblings, 2 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-08-24 12:27 UTC (permalink / raw)
  To: 24299

All I know is when inserting the final ], a mismatched parenthesis /
no matching parenthesis found message appeared in the minibuffer
(depending on the code above it. Anyways, both wrong.)

$visit{$visit_id}{name} = $1         if #m!href="/users/(\d+)/profile">([^<]+)!;
     /<img alt="Photo of ([^"]+)/;

Furthermore, that message should be recorded in the C-h e list.

emacs-version "24.5.1"





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24299: perl-mode: mismatched parenthesis message
  2016-08-24 12:27 bug#24299: perl-mode: mismatched parenthesis message 積丹尼 Dan Jacobson
@ 2019-07-06  4:00 ` Stefan Kangas
  2021-06-23 15:59 ` bug#24299: Can we just drop the noise from blink-matching-paren? Harald Jörg
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2019-07-06  4:00 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 24299

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> All I know is when inserting the final ], a mismatched parenthesis /
> no matching parenthesis found message appeared in the minibuffer
> (depending on the code above it. Anyways, both wrong.)
>
> $visit{$visit_id}{name} = $1         if #m!href="/users/(\d+)/profile">([^<]+)!;
>      /<img alt="Photo of ([^"]+)/;

I can reproduce this on Emacs 26.2, but I see this also without the
first line.

In other words, under "emacs -Q" and M-x perl-mode, when I type:

/<img alt="Photo of ([^"

And then type the final "]", I get the message "No matching parenthesis
found".

> Furthermore, that message should be recorded in the C-h e list.

I'm not sure -- should it?

> emacs-version "24.5.1"

Thanks,
Stefan Kangas





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24299: Can we just drop the noise from blink-matching-paren?
  2016-08-24 12:27 bug#24299: perl-mode: mismatched parenthesis message 積丹尼 Dan Jacobson
  2019-07-06  4:00 ` Stefan Kangas
@ 2021-06-23 15:59 ` Harald Jörg
  1 sibling, 0 replies; 3+ messages in thread
From: Harald Jörg @ 2021-06-23 15:59 UTC (permalink / raw)
  To: 24299

The misleading messages are caused by blink-matching-open which is
confused by the quotation mark within the regexp.  There are various
ways to trigger the message in perl-mode (and cperl-mode).  For example,
the closing paren in this line triggers the same message:

  my $text = "(')";

Modes like text-mode also get the noise when you enter a plain old
smiley like :-) or old-fashioned numbered lists like a), b), ...

Can we just drop these messages from blink-matching-open altogether?  I
know that this is a global change in behavior, but in my opinion the
value of the message for the user isn't that great.
-- 
Cheers,
haj





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-23 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 12:27 bug#24299: perl-mode: mismatched parenthesis message 積丹尼 Dan Jacobson
2019-07-06  4:00 ` Stefan Kangas
2021-06-23 15:59 ` bug#24299: Can we just drop the noise from blink-matching-paren? Harald Jörg

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.