help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I use a var as a string?


From: Tom Browder
Subject: Re: How do I use a var as a string?
Date: Fri, 29 Jul 2016 13:39:58 -0500

On Fri, Jul 29, 2016 at 12:56 PM, Tom Browder <tom.browder@gmail.com> wrote:
> On Friday, July 29, 2016, John Mastro <john.b.mastro@gmail.com> wrote:
>> John Mastro <john.b.mastro@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]