unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How can I assign a regex to a variable?
@ 2016-07-28 19:36 Tom Browder
  2016-07-28 19:48 ` Yuri Khan
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Browder @ 2016-07-28 19:36 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-29  7:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 19:36 How can I assign a regex to a variable? Tom Browder
2016-07-28 19:48 ` Yuri Khan
2016-07-28 20:25   ` Drew Adams
2016-07-28 20:44     ` Tom Browder
2016-07-28 20:57       ` Drew Adams
2016-07-28 21:57         ` Tom Browder
     [not found]     ` <mailman.2250.1469738663.26859.help-gnu-emacs@gnu.org>
2016-07-29  7:08       ` Barry Margolin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).