From: Tom Browder <tom.browder@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: How do I use a var as a string?
Date: Fri, 29 Jul 2016 10:06:16 -0500 [thread overview]
Message-ID: <CAFMGiz-QZCY_NCqHtk0VFsChUR9iU9_W2FARD0VrdrDiGbuMpQ@mail.gmail.com> (raw)
In-Reply-To: <a20f819b-bde0-47b7-9243-89940c872612@default>
On Friday, July 29, 2016, Drew Adams <drew.adams@oracle.com> wrote:
> > > I want to bind a string to a variable and then use the variable name as
> > > the string when a string is expected. I have tried variations of this:
> > > (defvar my-str (concat "my " "string"))
...
> > My next experiment will be to use "(defconst ...)" which I'm hoping will
> > solve the problem.
>
> What problem? It's not clear (to me) what you are trying to do.
>
In the beginning of this thread I mentioned I was getting an error when
trying to use the var in another definition.
-Tom
next prev parent reply other threads:[~2016-07-29 15:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 16:42 How do I use a var as a string? Tom Browder
2016-07-28 16:47 ` Drew Adams
2016-07-28 17:11 ` Tom Browder
[not found] ` <mailman.2218.1469725870.26859.help-gnu-emacs@gnu.org>
2016-07-29 2:39 ` Emanuel Berg
2016-07-29 14:50 ` Tom Browder
2016-07-29 14:59 ` Drew Adams
2016-07-29 15:06 ` Tom Browder [this message]
2016-07-29 16:52 ` Tom Browder
2016-07-29 17:20 ` John Mastro
2016-07-29 17:24 ` John Mastro
2016-07-29 17:56 ` Tom Browder
2016-07-29 18:39 ` Tom Browder
[not found] <mailman.2209.1469724157.26859.help-gnu-emacs@gnu.org>
2016-07-28 16:46 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFMGiz-QZCY_NCqHtk0VFsChUR9iU9_W2FARD0VrdrDiGbuMpQ@mail.gmail.com \
--to=tom.browder@gmail.com \
--cc=drew.adams@oracle.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.
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).