[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declaring a local dynamic variable?
From: |
Joost Kremers |
Subject: |
Re: Declaring a local dynamic variable? |
Date: |
23 Sep 2013 16:17:39 GMT |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
Pascal J. Bourguignon wrote:
> Joost Kremers <joostkremers@yahoo.com> writes:
>> If I purposefully use a local dynamic variable as in:
>
> CL has the (declare (special var…)) declaration for that.
Yeah, I was wondering if there was something similar for Elisp.
> To implement that in emacs lisp, you could define defun, let, let* and
> locally in a separate package, oops, no package in emacs.
Something that will hopefully be remedied one day. :-)
> To implement that in emacs lisp, you could define defun@, let@,
> let*@ and locally@ as macros that will check for the special
> declarations and define the variables as symbol-macrolets expanding to
> (symbol-value 'variable), and that save the old symbol-value and restore
> it. Something like:
Erm, I believe you. :-) I'm afraid I don't have the time to go through
your code and grok it fully, but I'm duly impressed.
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
- Re: Declaring a local dynamic variable?, (continued)
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Message not available
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/23
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/23
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/25
Re: Declaring a local dynamic variable?, Pascal J. Bourguignon, 2013/09/22
Message not available
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/25
- Re: Declaring a local dynamic variable?, Stefan Monnier, 2013/09/25
- Message not available
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/25
- Re: Declaring a local dynamic variable?, Stefan Monnier, 2013/09/25
- Re: Declaring a local dynamic variable?, Andreas Röhler, 2013/09/27