emacs-devel
[Top][All Lists]
Advanced

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

Re: optimizing defconst


From: Johan Bockgård
Subject: Re: optimizing defconst
Date: Mon, 29 Oct 2007 15:19:31 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> What about an option to make a constant read-only, something like

    (if (featurep 'xemacs)
        (defvaralias 'viper-xemacs-p t)
      (defvaralias 'viper-xemacs-p nil))

    (setq viper-xemacs-p t)
       => Attempt to set a constant symbol: viper-xemacs-p

:)

-- 
Johan Bockgård





reply via email to

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