all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to set default value for voidvariables
@ 2011-07-21 21:31 emacsdude
  2011-07-22  6:52 ` Andreas Röhler
  0 siblings, 1 reply; 2+ messages in thread
From: emacsdude @ 2011-07-21 21:31 UTC (permalink / raw
  To: Help-gnu-emacs


i was wondering, is there any way to simply assign the value NIL to undefined
variables?

so that if I just write random words in the buffer and then evaluate them,
they return NIL, instead of the debugger informing me that they are void
variables.

thanks
-- 
View this message in context: http://old.nabble.com/how-to-set-default-value-for-voidvariables-tp32111187p32111187.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to set default value for voidvariables
  2011-07-21 21:31 how to set default value for voidvariables emacsdude
@ 2011-07-22  6:52 ` Andreas Röhler
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Röhler @ 2011-07-22  6:52 UTC (permalink / raw
  To: help-gnu-emacs

Am 21.07.2011 23:31, schrieb emacsdude:
>
> i was wondering, is there any way to simply assign the value NIL to undefined
> variables?
>
> so that if I just write random words in the buffer and then evaluate them,
> they return NIL, instead of the debugger informing me that they are void
> variables.
>
> thanks

you could have a litte mode/program running throughout the buffer from 
time to time doing at all words/symbols (defvar SYMBOL)

than you will have made them all to variables with a nil value and don't 
get that warning.


Andreas

--
https://launchpad.net/python-mode
https://launchpad.net/s-x-emacs-werkstatt/




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-22  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-21 21:31 how to set default value for voidvariables emacsdude
2011-07-22  6:52 ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.