From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How can I assign a regex to a variable? Date: Fri, 29 Jul 2016 03:08:39 -0400 Organization: A noiseless patient Spider Message-ID: References: <047b385d-5843-4548-810f-de411a62de20@default> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1469776233 19516 80.91.229.3 (29 Jul 2016 07:10:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 07:10:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 09:10:33 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 1bT1wG-0005wO-J2 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 09:10:32 +0200 Original-Received: from localhost ([::1]:57870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT1wA-00048b-7X for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 03:10:26 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!2.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Injection-Info: barmar.motzarella.org; posting-host="2ad3b96c9ca8a9a4a08701b78ce3ac28"; logging-data="27521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ixZs+xdioTioZBZA4+1+w" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:ysML9jTPCt3WANkwWiLyVC29PHU= Original-Xref: usenet.stanford.edu gnu.emacs.help:218685 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:110996 Archived-At: In article , Tom Browder wrote: > On Thursday, July 28, 2016, Drew Adams wrote: > > > > Show a small but complete example that demonstrates the problem. > > > Someone will be able to tell you what’s wrong with it. > > > Okay, I'll try. But I do have the regexes that work great when I put it in > double quotes directly in the function. However, I want to be able to > define the regexes external to the function for better generality and > documentation. There's no difference between using a literal string and a variable whose value is that string, and it doesn't matter where the value comes from. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***