From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: cleaning up a big regexp Date: Mon, 15 Sep 2014 14:18:16 +0200 Message-ID: <874mw9f56f.fsf@gmx.de> References: <87iokpf6v8.fsf@gmx.de> <87a961ulzf.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410783544 31032 80.91.229.3 (15 Sep 2014 12:19:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 12:19:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: torys.anderson@gmail.com (Tory S. Anderson) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 14:18:57 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTVF6-0007Uw-8V for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 14:18:52 +0200 Original-Received: from localhost ([::1]:59378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVF5-0004Er-KU for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 08:18:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVEm-0004EW-IP for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:18:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTVEf-00042V-2m for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:18:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVEe-00042K-PA for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:18:24 -0400 Original-Received: from detlef.gmx.de ([93.202.51.203]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M08ia-1YLBoZ3Oto-00uFFy; Mon, 15 Sep 2014 14:18:23 +0200 In-Reply-To: <87a961ulzf.fsf@gmail.com> (Tory S. Anderson's message of "Mon, 15 Sep 2014 08:06:12 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:Y+I73/LqeUptTp52nEUYWN34fD5ZHuVCvDv8KIBtZvEHxX4xJ3m T/AMAi+NlCHqGA0JgY2wWE9SqHMP2bViPEoqNyuzJiXZ0TUc4m5SRNBY3wvf/hJXQdFDKmZ ++s9DsOj776vjq+SoHPJaeBtomNMDjlw1umzxel2DshyDJR/nPYw4Oktnbl80Uj/joHK4Xa F/nlRq1W7uRlQ2qGH7cYA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99916 Archived-At: torys.anderson@gmail.com (Tory S. Anderson) writes: > (setq my-gnus-bulk-from-address-regexp (mapconcat `regexp-quote my-gnus-bulk-from-address-list "\\|")) ;; make OR Use a single apostroph "'" here. > (setq my-gnus-bulk-from-regexp > (regexp-opt (mapconcat `(concat "^From:.*") my-gnus-bulk-from-address-regexp "\\|"))) ;; apply "From.*" to the start of each address That's wrong. You `concat' just one element, not needed. `regexp-opt' cannot be applied over meta characters, like "*". Even if you quote them, it doesn't work. Best regards, Michael.