[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rx of (any SET...)
From: |
Michael Heerdegen |
Subject: |
Re: rx of (any SET...) |
Date: |
Thu, 18 Aug 2022 02:59:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> (rx (regexp (concat "[^" (bound-and-true-p mm-7bit-chars) "]")))
Even using `rx-define' is not so helpful (its expanding mechanism is
different from e.g. defmacro):
#+begin_src emacs-lisp
(rx-define any-char (&rest string) (regex (concat "[" string "]")))
(rx-define not-any-char (&rest string) (regex (concat "[^" string "]")))
#+end_src
Will not work inside `not'. Thus two definitions.
Ok, in the end I could not really help at all...
Michael.