From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Browder Newsgroups: gmane.emacs.help Subject: Re: How do I use a var as a string? Date: Fri, 29 Jul 2016 10:06:16 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469804995 17778 80.91.229.3 (29 Jul 2016 15:09:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 15:09:55 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 17:09:55 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bT9QA-0006PL-AG for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 17:09:54 +0200 Original-Received: from localhost ([::1]:60042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9Q4-0008PQ-8u for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 11:09:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9Mh-0006EP-6v for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 11:06:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT9Mf-0003xw-P6 for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 11:06:18 -0400 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:36316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9Mf-0003xs-Jh for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 11:06:17 -0400 Original-Received: by mail-oi0-x236.google.com with SMTP id w18so109978303oiw.3 for ; Fri, 29 Jul 2016 08:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qun0cW13znspztwpWm8yCKzIutp7litpAchjPfEagTY=; b=gnPIS/2oMTuVK6o/Hvv0BTn2f5bKERzzPtjP2F1SukQNhG2wchBmy8SdZeYJrqyYJB +0fw1aipDJ2WD7ZP9H8xthNjXbbaZ4j/QG2q9t7kfLCuBfFhF8fMdERm8A62XtsSCyid TyqXOtWKLTFHY7USxOSx7wY2nm0X2J6kAiaojMhpf413Tr4dEAah0jGlRsI+ahTsr3mW DFl42++eQPI8RjRkT+iBjg+KxnGZk3+7XoRxwt3ypfijyPAuqoS4HhdmIDZEoj0G88DA 1zJlQbXuQw9VnIq5Dvv327lEkyfwbCDgP3+MEq7f/5rpZJd+iy9e0xhBPXXJB8SXHu+c JATg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qun0cW13znspztwpWm8yCKzIutp7litpAchjPfEagTY=; b=KHcbalxx+S7wBH/ePyhGJuTkLmBITQqy20g/NeP/MBxmGO7b+4MR2tPXAMgyQaBz7V A+7tZazgzDdaAxHFkcCgQcAGhfaK8yVKDEAtwfwtL/npWw+LqlTiYixAtgJt14ZA4ZXP SDE4jU7CEtAxFW/jURena+UY8MB38SXCj6gAxxa82WzQob9IMFyN8wePFZV2RAoDnezw MrufPvjHZMu6ZzG9AxIyFNBhw/bJPFzhcS723n6/kRcD+HlgLuKOn4SemhTlZiL/6YjC PVGWJ3NMwv4y9AdXO15UsZyqcfF4P50T1nkjtT2hXUap5+JVu+8lFkfv9fD1wUT7IJ83 r6Lw== X-Gm-Message-State: AEkoousvE8Y0QMIoAizX6xxNILf+lTrzAgxFCAqXHNC22Vwudc0784ApD+TW0g8j9TPGgfAIyvYg2+YGcKzn0Q== X-Received: by 10.157.10.16 with SMTP id 16mr26773707otg.131.1469804777185; Fri, 29 Jul 2016 08:06:17 -0700 (PDT) Original-Received: by 10.157.62.135 with HTTP; Fri, 29 Jul 2016 08:06:16 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111000 Archived-At: On Friday, July 29, 2016, Drew Adams 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