unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: rms@gnu.org, Paul Eggert <eggert@cs.ucla.edu>
Cc: mattiase@acm.org, eliz@gnu.org, rajeev@sivalik.com, emacs-devel@gnu.org
Subject: RE: icalendar.el bug fix patch
Date: Sun, 3 Nov 2019 08:54:59 -0800 (PST)	[thread overview]
Message-ID: <25fcac1f-16bf-4229-8710-dd22b5a9e01e@default> (raw)
In-Reply-To: <E1iR6VK-0000tb-Ex@fencepost.gnu.org>

>> But since the concept is useful, how about if we
>> create an escape for it? For example, we could
>> establish \! as a regexp that matches any single
>> character.
> 
> +1.

[Interesting.  I skipped this thread, based on the
Subject.  Just stumbled on this part of it, about
having a simple pattern to match what `\\(.\\|[\n]\\)'
matches.  Wouldn't have guessed that from the Subject.]

FWIW, I proposed this back in 2006.  Actually, I
proposed a toggle, so you could use the _same_ regexp
to match either any char or any char except newline.

Nothing wrong with having a separate escape, such as
`\!', to always match what `\\(.\\|[\n]\\)' matches.

But it would still be good to (also) have a toggle,
to be able to make just `.' match the same thing.

https://lists.gnu.org/archive/html/emacs-devel/2006-03/msg00162.html

In 2012 I again voiced the proposal (in the context
of mentioning how Icicles lets you do such things):

  I proposed long ago, for instance, a toggle for a
  `.' in regexp search to match also newlines, i.e.,
  any character.  IOW, `.' in one mode state of the
  toggle, would be equivalent to "\\(.\\|[\n]\\)"
  in the other (traditional) state.

https://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00832.html

So how about adding an escape, such as `\!', and
_also_ adding a toggle (variable and command to
toggle it) that treats both `\!' and plain `.' the
same; that is; have them each match any char?



  reply	other threads:[~2019-11-03 16:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 13:33 icalendar.el bug fix patch Rajeev Narang via Emacs development discussions.
2019-11-01  9:40 ` Eli Zaretskii
2019-11-01 10:51   ` Mattias Engdegård
2019-11-01 13:00     ` Eli Zaretskii
2019-11-01 11:12   ` Rajeev Narang via Emacs development discussions.
2019-11-01 13:05     ` Eli Zaretskii
2019-11-01 13:24       ` Mattias Engdegård
2019-11-01 13:33         ` Eli Zaretskii
2019-11-01 21:19           ` Paul Eggert
2019-11-01 21:38             ` Mattias Engdegård
2019-11-02 18:39             ` Juri Linkov
2019-11-03 13:21               ` Richard Stallman
2019-11-03 16:55                 ` Drew Adams
2019-11-03 19:55               ` Stefan Monnier
2019-11-03 20:54                 ` Juri Linkov
2019-11-03 21:10                   ` Stefan Monnier
2019-11-03 21:32                     ` Juri Linkov
     [not found]                     ` <E81C3456-834F-469D-B8CA-80B1CDD311F8@acm.org>
2019-11-04  0:50                       ` Paul Eggert
2019-11-04 11:56                         ` Mattias Engdegård
2019-11-04 15:16                           ` Drew Adams
2019-11-03  3:24             ` Richard Stallman
2019-11-03 16:54               ` Drew Adams [this message]
2019-11-01 16:44         ` Howard Melman
2019-11-01 14:30       ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=25fcac1f-16bf-4229-8710-dd22b5a9e01e@default \
    --to=drew.adams@oracle.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mattiase@acm.org \
    --cc=rajeev@sivalik.com \
    --cc=rms@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).