From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: How can I assign a regex to a variable? Date: Fri, 29 Jul 2016 01:48:40 +0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469735379 5764 80.91.229.3 (28 Jul 2016 19:49:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 19:49:39 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Tom Browder Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 21:49:36 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 1bSrJH-0005YY-Tp for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 21:49:36 +0200 Original-Received: from localhost ([::1]:55387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrJB-0000iu-Qe for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 15:49:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrIl-0000ih-MY for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:49:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSrIj-0003Fg-S3 for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:49:02 -0400 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:35458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrIj-0003Dy-KV for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:49:01 -0400 Original-Received: by mail-lf0-x22f.google.com with SMTP id f93so56915774lfi.2 for ; Thu, 28 Jul 2016 12:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=LXx+7LcD5nsJx0eKKE55fzqHGn/S5jHNVvtoYsyeJO0=; b=1Dbmtp99Sz41CdYpVM5pZQb/1CaDhyffxFPVzsH0SUwk5tc/JwnSz7xK73n/UhB3NM XvBxTodUFh7hezzd9isG1jr1Q2LAERbqLysWCl9wqh/jbXKr7cCDHJOKe4QIJg8mK9/A 2np9jM3W1NfpYH16fa35GOq+joPptCdgs2R55HSxDaiRk43DnN+hvXE99dF+RMp70o1X kX4V7uVkAk9BYPC39fu6vMMzHFWQV0Hu0DBqvzaz8zsjO19WgDIR0DhoHLKy4fM67xUH RhXS4mVhDVuQwJyNRj62AE6w5g7zPgm+fSNcgPRpcgIm/zCmEnCBb6bMB9HCCDOSaTXl b4Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=LXx+7LcD5nsJx0eKKE55fzqHGn/S5jHNVvtoYsyeJO0=; b=fUcldeXFeiITegMXGIlEtx3PMcJy1G2NgtR59P7oNYzgKGPcUfYnBsqzOVqbKqhEos sDpU3XWSDDl9PBHiOjoyy0qTptL5OG5K3XrYIM5wNSt0Ihlqg0YvYCOvw9+BqO2O0FBJ 1aKoYe4v1MEmresu0vNU+rWBHfOwoGRHE+VI5bfZRPlKN4az/u6Pe/7wVaC15XUxPtjd mAOLIfCeTiABJEFzgLI+LHd8+gdsejTUOJzHUZ9bqw47GMtKqnHfJtg33N0N3VSOloZc qcgkpG2AuIZu2+ud9oSplvSzn3PWqmh0zut60x2R6haUIgn+NZ2P72JTY+YpXMrJ2TWX RboQ== X-Gm-Message-State: AEkoouvt+d/YOMhtrYs8itp/SXisxP+IciZOqcYPGefVAvp93Dceb0uA0QBgEqg7oYPXzOcdaszEXwGZY5VBqw== X-Received: by 10.25.159.205 with SMTP id i196mr14246061lfe.45.1469735340324; Thu, 28 Jul 2016 12:49:00 -0700 (PDT) Original-Received: by 10.114.180.131 with HTTP; Thu, 28 Jul 2016 12:48:40 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: LqO6BQfYnRoUD0vTnT_Jpzntj6I X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f 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:110977 Archived-At: On Fri, Jul 29, 2016 at 2:36 AM, Tom Browder wrote: > Drew showed me how to bind a string to a variable, and that works great! > However, when I tried it where I actually needed it I got an error saying= a > regex was expected. Show a small but complete example that demonstrates the problem. Someone will be able to tell you what=E2=80=99s wrong with it. In Emacs, regexps are not special. They are just strings. If you assign a regexp string to a variable, you should be able to use that variable in all the ways you could use an actual regexp string.