GNU bug report logs - #54017
add regexp translation option to read-regexp

Previous Next

Package: emacs;

Reported by: emacsq <laszlomail <at> protonmail.com>

Date: Tue, 15 Feb 2022 20:22:01 UTC

Severity: wishlist

Full log


Message #38 received at 54017 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: emacsq <laszlomail <at> protonmail.com>, Juri Linkov <juri <at> linkov.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "54017 <at> debbugs.gnu.org" <54017 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#54017: add regexp translation option to
 read-regexp
Date: Sun, 20 Feb 2022 22:46:20 +0000
(Probably at least somewhat off-topic.)

I'd like to see Emacs regexp handling support
a way to either (1) specify a new, multiline
"dot" syntax that's equivalent to \(.\|[\n]\)
or (2) have a (dynamic) variable, or a mode,
that you can toggle to switch the behavior of
ordinary dot to multiline dot.
___

In Icicles I have a command that toggles the
behavior in the minibuffer.  Users see `.',
but under the covers \(.\|[\n]\) is used.
Editing (e.g. char deletion) automatically
treats that regexp as if it were just the
single char `.'.

When a `.' in the minibuffer actually stands
for \(.\|[\n]\) it gets highlighted, to
remind you of its behavior.

This is admittedly just a hack.  It would be
much better for Emacs itself to provide for
multiline (i.e. true any-char) dot matching.

This bug report was last modified 3 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.