| www.delorie.com/gnu/docs/elisp-manual-21/elisp_145.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The usual way to reference a variable is to write the symbol which
names it (see section 9.2.2 Symbol Forms). This requires you to specify the
variable name when you write the program. Usually that is exactly what
you want to do. Occasionally you need to choose at run time which
variable to reference; then you can use symbol-value.
(setq abracadabra 5)
=> 5
(setq foo 9)
=> 9
;; Here the symbol |
A void-variable error is signaled if the current binding of
symbol is void.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |