all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.