[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : rx of (any SET...)
From: |
Michael Albinus |
Subject: |
Re: [External] : rx of (any SET...) |
Date: |
Wed, 17 Aug 2022 20:19:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
Hi Drew,
> Dunno about rx. But what happens when `mm-7bit-chars'
> isn't bound and true? Your string is then "[^]", not
> a valid regexp. (Maybe you take care of that elsewhere?)
In practice, it always works. This is because this check is used in
tramp-bug, while composing the message. And while composing the message,
package mm-bodies is already loaded. Using bound-and-true-p is just for
pacifying the byte compiler.
This code snippet is 20 years old. Time to replace bound-and-true-p by
(defvar mm-7bit-chars)
But the question remains: how to express (concat "[^" mm-7bit-chars "]")
in rx notation?
Best regards, Michael.