emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scan of regexps in Emacs (March 17)


From: Richard Stallman
Subject: Re: Scan of regexps in Emacs (March 17)
Date: Wed, 20 Mar 2019 22:07:01 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > [ I wish Elisp regexps just used \ as an escape char in ranges instead
  >   of relying on those special convention of where `-` and `]` can appear
  >   in order to count as themselves.  ]

It might have been better, but we can't change it.  Even when first
implementing this in Emacs, I was following historical practice which
was later codified into standards.

  > I wonder why the doc doesn't just say that `-` should be the last
  > character and not mention the other possibilities which just make the
  > rule unnecessarily complex.

It could be reasonable to document that putting it at the beginning or
the end is the right way.


-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]