help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: regex-opt does not accept 'symbol as second arg?


From: Nikolaj Schumacher
Subject: Re: regex-opt does not accept 'symbol as second arg?
Date: Sun, 12 Oct 2008 12:17:20 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Tim X <timx@nospam.dev.null> wrote:

> In emacs 23, it appears to be working as it is supposed to. It does take
> an arbitrary symbol, but the symbol "'words" has special meaning over just a
> non-nil value e.g.

The idea was that 'symbol or 'symbols should also have a special meaning.

> ELISP> (regexp-opt '("This" "That" "Those") 'symbol)
> "\\(Th\\(?:at\\|is\\|ose\\)\\)"

should return "\\_<\\(Th\\(?:at\\|is\\|ose\\)\\)\\_>" instead.


regards,
Nikolaj Schumacher




reply via email to

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