From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Budi Newsgroups: gmane.emacs.help Subject: Re: how to use a variable inside Emacs regex features ? Date: Thu, 23 May 2019 11:46:29 +0700 Message-ID: References: <7bb10774-01c5-402c-9924-1e7c23f32358@default> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="21357"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 06:46:47 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTfct-0005SW-K7 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2019 06:46:47 +0200 Original-Received: from localhost ([127.0.0.1]:57591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTfcs-0001wJ-K3 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2019 00:46:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTfcd-0001w3-Md for help-gnu-emacs@gnu.org; Thu, 23 May 2019 00:46:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTfcc-0004nP-Sj for help-gnu-emacs@gnu.org; Thu, 23 May 2019 00:46:31 -0400 Original-Received: from mail-it1-x135.google.com ([2607:f8b0:4864:20::135]:33475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTfcc-0004mm-Fq for help-gnu-emacs@gnu.org; Thu, 23 May 2019 00:46:30 -0400 Original-Received: by mail-it1-x135.google.com with SMTP id j17so7265029itk.0 for ; Wed, 22 May 2019 21:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0LC2FNYB9TVIypRUsqWNYeSZAg3zZYpYdyNmTK7XvfQ=; b=WBga5CXjZiMc89K7BuP97aOrNSMzUHW9BRj6TFTZLZJzJj0pCv2oa4mzJbWSBdX5+3 L6CMrTP9/K7wjYV0wtXfa+BLSjAfmtY0zcZlm2woighCByrX2nuKADf26GNz49AZZCSB vVyG1fwvvBp2Gb0cPSqNmUHZyWaxX+tOOOI1tqJQag96EsTgclSybU7YJF2abLdg4cly bsBjHEkmbQjny1MIbe025RLNWW0LUagGpat6YYZ8GYSA5H36e+RkfidczxfilUFnKJYR Tf7ypRYPPxTEyojzjFg3sbhO+HBy6iKw9X17lQHbJ1WXwBXAIIQ1UiwJqX5S6s32Fc00 KqQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0LC2FNYB9TVIypRUsqWNYeSZAg3zZYpYdyNmTK7XvfQ=; b=rnnem5sAIVPb4By/DbC3ovJP2cL+Z89La9IQSHYu6WMHDofF/g168bwi4iVgTDX6gd NBI1mb0BV1JxOmPTZsiEn7U4+RS+IRDzdIOiYp1I6eNzinrrbrPs07GQ7tC+HlWVwXmQ 6QrUG3UffWhcXNyU/wZ980BWfSLp09JI0V3lNpyFayegLbohU/glJIAzE1+ICZ/4kp7z rCXME3tR+AJo23KEwfUBqIuWm0gDSLIE9zH7s6in4dEM+8hJwLz4bAAYredB3wzLBLel /3tjyoWiYZDauo19/AM8BhvfsK923SvmPZpPb/hzCPC2BFaVp/+GcQFaD5LMQlYHgxgg DWKA== X-Gm-Message-State: APjAAAWRKOa7lfEIuFnXu/maIMIv+fSodJAj9LJNzy5blLC0siyWXXhS zbnrnhOzBml0CGDrWf+73Mv41GdpHiVnqAt0Odk= X-Google-Smtp-Source: APXvYqyMD2ir4r4ThlITkqq/2aK/6ijePfCBFXxKXS+yBFAO2+ck7MVrvxHDIvCg47picQcjEbTbn2dgkHIOxNqMVIQ= X-Received: by 2002:a24:6292:: with SMTP id d140mr11624403itc.132.1558586789649; Wed, 22 May 2019 21:46:29 -0700 (PDT) Original-Received: by 2002:a02:93cd:0:0:0:0:0 with HTTP; Wed, 22 May 2019 21:46:29 -0700 (PDT) In-Reply-To: <7bb10774-01c5-402c-9924-1e7c23f32358@default> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::135 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:120571 Archived-At: (setq ntimes 7) re-search-forward "hello\\{ntimes\\}" How is above supposed to work ? On 5/23/19, Drew Adams wrote: >> how to use a variable inside Emacs' regex features such as >> re-search-forward, looking-at, and all the rest ? > > Use it inside how? where? > > Maybe tell us what you really want to do. > > Give an example, perhaps, to show what you're asking about. In any case, > `C-h f re-search-forward' should tell you what you need to know about its > arguments. >