From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: regex-opt does not accept 'symbol as second arg? Date: Sun, 12 Oct 2008 12:17:20 +0200 Message-ID: References: <87vdvy8u2r.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223806692 18672 80.91.229.12 (12 Oct 2008 10:18:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2008 10:18:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 12 12:19:09 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Koy2W-0003fO-Fb for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Oct 2008 12:19:08 +0200 Original-Received: from localhost ([127.0.0.1]:51651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Koy1R-0003XF-PF for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Oct 2008 06:18:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Koy0q-0003V1-87 for help-gnu-emacs@gnu.org; Sun, 12 Oct 2008 06:17:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Koy0p-0003Uj-A2 for help-gnu-emacs@gnu.org; Sun, 12 Oct 2008 06:17:23 -0400 Original-Received: from [199.232.76.173] (port=44335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Koy0p-0003Ug-3S for help-gnu-emacs@gnu.org; Sun, 12 Oct 2008 06:17:23 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:35814) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Koy0o-0004Nk-SS for help-gnu-emacs@gnu.org; Sun, 12 Oct 2008 06:17:23 -0400 Original-Received: from thursday (BAH4860.bah.pppool.de [77.135.72.96]) by dd18200.kasserver.com (Postfix) with ESMTP id 1A7F61845122E; Sun, 12 Oct 2008 12:17:23 +0200 (CEST) In-Reply-To: <87vdvy8u2r.fsf@lion.rapttech.com.au> (Tim X.'s message of "Sun\, 12 Oct 2008 12\:45\:32 +1100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58704 Archived-At: Tim X 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