all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Cameron Desautels <camdez@gmail.com>
Cc: 16046-done@debbugs.gnu.org
Subject: bug#16046: Bug with Regexp Containing only a Character Class with a Caret (PATCH)
Date: Thu, 05 Dec 2013 15:26:38 -0500	[thread overview]
Message-ID: <jwvfvq7cavg.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CALtQdcnh91UTpj5WMEs7_W3ztJAHEcaZgCz1BDjwjp2aKB05Xw@mail.gmail.com> (Cameron Desautels's message of "Thu, 5 Dec 2013 13:26:58 -0600")

> After further experimentation, I suspect that "[^]" is simply not
> a valid regular expression.

Indeed, according to the documentation, for ^ to be treated as itself,
it needs to be "not the first char", but since we have nothing else to
put there, we're kind of screwed.

> This suggests that the broken behavior is within
> `regexp-opt-charset`.  I've attached a patch for that function.

Thank you for tracking down the problem and providing a fix.  I just
installed it in trunk, closing,


        Stefan





      reply	other threads:[~2013-12-05 20:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04  4:57 bug#16046: Bug with Regexp Containing only a Character Class with a Caret Cameron Desautels
2013-12-05 19:26 ` bug#16046: Bug with Regexp Containing only a Character Class with a Caret (PATCH) Cameron Desautels
2013-12-05 20:26   ` Stefan Monnier [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=jwvfvq7cavg.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=16046-done@debbugs.gnu.org \
    --cc=camdez@gmail.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.