[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I use a var as a string?

From: Emanuel Berg
Subject: Re: How do I use a var as a string?
Date: Thu, 28 Jul 2016 18:46:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Tom Browder wrote:

> So how can I define a variable whose value is
> a string and then access the actual string
> value by using the variable name?

For example like this:

    (defun print-string (s)
      (insert "The string is: " s) )

    (setq sail-ho-string "True sailing is dead!")

    (print-string sail-ho-string)

underground experts united ....
Emacs Gnus Blogomatic .........
                   - so far: 58 Blogomatic articles -                   

reply via email to

[Prev in Thread] Current Thread [Next in Thread]