emacs-devel
[Top][All Lists]
Advanced

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

Re: frame-local variables weirdness


From: Stefan Monnier
Subject: Re: frame-local variables weirdness
Date: Sat, 20 Oct 2007 09:15:12 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>     I'm suggesting we introduce a new concept which we could call "specifier"
>     or "localizable quasi variable".  We could create them with:

>        (defconst new-interprogram-cut-function
>                  (make-specifier 'x-select-text))

>     Now new-interprogram-cut-function is a normal global variable (actually
>     a constant: we will never `setq' it).  Its value is a "specifier".

>     Then we get get the value of this specifier with:

>        (specifier-value new-interprogram-cut-function)

> What we have now, where the variable itself has different bindings in
> different contexts, is much cleaner.

Could you expand on what you think makes it cleaner?
The above also gives it different bindings in different contexts: the only
difference is that it's not a variable any more, so you can't let-bind it.


        Stefan




reply via email to

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