[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I use a var as a string?
From: |
Tom Browder |
Subject: |
Re: How do I use a var as a string? |
Date: |
Thu, 28 Jul 2016 12:11:03 -0500 |
On Thursday, July 28, 2016, Drew Adams <drew.adams@oracle.com> wrote:
> > (defvar my-str (concat "my " "string"))
> > (print my-str)
> >
> > and get an error about void symbol my-str.
>
> It works for me. Did you evaluate the `defvar', before trying to
> evaluate the `print' - it sounds like you did not.
>
Duh, no I didn't! Then it does work! (I should be evaling the buffer for
the experimenting I'm doing.)
Thanks, Drew.
-Tom