all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brent Goodrick <bgoodr@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 23795-done@debbugs.gnu.org
Subject: bug#23795: 24.5; rx eval on variable gives symbol error
Date: Sat, 18 Jun 2016 09:21:03 -0700	[thread overview]
Message-ID: <CAJj=8EEFFdtTM=xiH-bdCmoPyPqeDS=GamnmHuj3QOXhirGYUA@mail.gmail.com> (raw)
In-Reply-To: <87lh228o7c.fsf@linux-m68k.org>

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

Understood. Thanks Andreas.

On Sat, Jun 18, 2016 at 9:19 AM, Andreas Schwab <schwab@linux-m68k.org>
wrote:

> bgoodr@gmail.com writes:
>
> > Insert this into a .el file and load it in using emacs -Q:
> >
> > (let ((page-name "the page"))
> >        (let ((regexp
> >             ;; (concat "[[" page-name "]]")
> >             (rx "[[" (eval page-name) "]]" )))
> >        regexp
> >        ))
>
> Since rx is a macro it cannot refer to runtime values.  You need to use
> rx-to-string to construct the regexp at run time.  Or just use concat as
> in the comment.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>

[-- Attachment #2: Type: text/html, Size: 1365 bytes --]

      reply	other threads:[~2016-06-18 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-18 15:49 bug#23795: 24.5; rx eval on variable gives symbol error bgoodr
2016-06-18 16:13 ` Noam Postavsky
2016-06-18 16:15   ` Brent Goodrick
2016-06-18 16:19 ` Andreas Schwab
2016-06-18 16:21   ` Brent Goodrick [this message]

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='CAJj=8EEFFdtTM=xiH-bdCmoPyPqeDS=GamnmHuj3QOXhirGYUA@mail.gmail.com' \
    --to=bgoodr@gmail.com \
    --cc=23795-done@debbugs.gnu.org \
    --cc=schwab@linux-m68k.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.