From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Browder Newsgroups: gmane.emacs.help Subject: Re: How do I use a var as a string? Date: Fri, 29 Jul 2016 13:39:58 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469817685 7243 80.91.229.3 (29 Jul 2016 18:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 18:41:25 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 20:41:25 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 1bTCiq-0001Oi-3F for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 20:41:24 +0200 Original-Received: from localhost ([::1]:32842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCik-0006cl-4Q for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 14:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCi8-0006ay-7G for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 14:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTCi7-0005ig-7R for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 14:40:40 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:35015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCi6-0005iV-Sf for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 14:40:39 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id l72so117954060oig.2 for ; Fri, 29 Jul 2016 11:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cFUrde51wkkNjNy/79bT5NY7LlrBSV4io5giTYalgak=; b=v5wTBfXNctIXYtAhv/z80FWRk8t2u00uVflHgfgA+MSJfHFtOK8AAdk4LPLhtZk1Xu bBosUUaQDdde0DPTY8R6P+osRkOpAi+iTjN/YmvKx4OQ/T1ias3jN1nfoKCkqzk9xiAv +H307RkMfnang+cYSyayueR5GpzQnfKUv3RPc8eCO0709BkVAuyqva9wA8gGp9AO8M8u 82tJy8sak1ard8KQoOmL3kQZdEaC2r5mm8KZTeSBcSx0Le5qwoAAlknbqW3U78ezRmCf UzFU1j/Cq3mlImVLMQoeLy6DvwiZG4LJaqNh/bJFPZU86sDohIsfMW0C1Umxdu8M1f/D 2vpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cFUrde51wkkNjNy/79bT5NY7LlrBSV4io5giTYalgak=; b=H3p++KVoKuEROeHo4sxP2/ErHcawGT2jGHr7z+dblJJAXhbRQdKPVPh4ZjGAyokvvX 3D6rqu8H8p1V7pHKokrXRnzzSi1RL8wvTezKXOEVELLVfrGOoHJ/kNuCAInRw2V0+vKi sYzkRw50Lw5CC5nr8gkz32Q8L4W2JsqJnPMTvDQ+kSQUA3Ma+Re1AVxY1qaPELY1Sd5Y ZLpsMvLMsMyPLD/dJR5RH/IxEKx7xwSeQAv+zHeZJPboOsx45NME870Ri/AsRyxDFIlh oBHT6BsT5Arys8Q0z9UgTIQa1KJNcIMEg6fJ9eZB/N8+hk2fjXWn48M3h7jSodLEnAIm SR8A== X-Gm-Message-State: AEkooutelMnm5C+0UDM1bdWGOFTo11QmXZb9ZWw+6wbf5S7PcPIb6zNN3c6qZf/3ch9vTE2+/i5rpBZNELsijQ== X-Received: by 10.202.244.85 with SMTP id s82mr2949231oih.100.1469817638304; Fri, 29 Jul 2016 11:40:38 -0700 (PDT) Original-Received: by 10.157.62.135 with HTTP; Fri, 29 Jul 2016 11:39:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::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:111008 Archived-At: On Fri, Jul 29, 2016 at 12:56 PM, Tom Browder wrote: > On Friday, July 29, 2016, John Mastro wrote: >> John Mastro wrote: >> > I haven't followed this discussion in detail, but try this[1]. ... > Thanks so much--I'll report back after I get back to my PC. Okay, it worked!!!! I changed this def: (defvar perl6-imenu-generic-expression '( ; <= note quote (') instead of backquote (`) ; note explicit regex string below as second list item: ("Variables" "^\\s-*\\(?:my\\|our\\)\\s-+\\(\\(?:\\$\\|@\\|%\\)\\(?:[_[:alnum:]]+\\)\\)" 1) )) to this: (defvar perl6-imenu-generic-expression `( ; <= note backquote (`) instead of quote (') ; note regex string variable below (perl6-vars) as second list item: ("Variables" ,perl6-vars 1) ; <= note comma immediately before the regex var name (perl6-vars) )) Thank you John! You da man!! Best regards, and happy elisping, -Tom