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

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

How can I assign a regex to a variable?


From: Tom Browder
Subject: How can I assign a regex to a variable?
Date: Thu, 28 Jul 2016 14:36:37 -0500

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.

I have searched for emacs named regexps but have found nothing.  Does
anyone know how I can define a regex to be used in a function defined like
this (from package imenu.el):

(string regexp integer)

So I want to use the function like this:

("Funcs" regex-var 1)

but regex-var must be interpreted as a regex, not as a string.

Any help is appreciated.

Cheers!

-Tom


reply via email to

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