From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Evaluate regexp-opt in :mode field of use-package Date: Thu, 28 Apr 2016 22:03:24 -0700 Message-ID: <20160428220324.5cbb8dd5@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1461906244 17791 80.91.229.3 (29 Apr 2016 05:04:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 05:04:04 +0000 (UTC) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 07:03:57 2016 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 1aw0aq-0000y1-Km for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 07:03:56 +0200 Original-Received: from localhost ([::1]:52374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw0ap-0003rA-UX for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 01:03:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw0ac-0003oo-V8 for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:03:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw0aZ-0002Sg-Qq for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:03:42 -0400 Original-Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.231]:62234 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw0aZ-0002R7-Mt for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:03:39 -0400 Original-Received: from [75.80.191.41] ([75.80.191.41:59117] helo=gauss) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id BE/E1-28393-12BE2275; Fri, 29 Apr 2016 05:03:30 +0000 X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.166.231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:109827 Archived-At: Is there a clever way to do the equivalent of (use-package :mode (((concat "\\." (regexp-opt "ext1" "ext2") "\\'") . some-mode)) That won't work because use-package is a macro and doesn't evaluate the (concat ...) to a string, which it expects. -- Joe Riel