From: Tom Browder <tom.browder@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How can I assign a regex to a variable?
Date: Thu, 28 Jul 2016 14:36:37 -0500 [thread overview]
Message-ID: <CAFMGiz9XKCbV-O8LuwdZ6+KeNBzY7L0pFNvm_uPjFgjdyPkpqw@mail.gmail.com> (raw)
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
next reply other threads:[~2016-07-28 19:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 19:36 Tom Browder [this message]
2016-07-28 19:48 ` How can I assign a regex to a variable? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFMGiz9XKCbV-O8LuwdZ6+KeNBzY7L0pFNvm_uPjFgjdyPkpqw@mail.gmail.com \
--to=tom.browder@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.