[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On removing some obsolete code from subr and core
From: |
Mark Oteiza |
Subject: |
Re: On removing some obsolete code from subr and core |
Date: |
Mon, 7 Nov 2016 15:25:30 -0500 |
User-agent: |
Mutt/1.7+23 (87911ba95dae) (2016-08-17) |
On 07/11/16 at 10:13pm, Eli Zaretskii wrote:
> > Date: Mon, 7 Nov 2016 15:08:28 -0500
> > From: Mark Oteiza <address@hidden>
> > Cc: address@hidden
> >
> > > I meant what happens if we for some reason need to reinstate some of
> > > them?
> >
> > Partially revert the commit I guess.
>
> Would it work to do in Lisp something like
>
> (defvar default-FOO (default-value FOO))
No, because default-FOO is tied to the default value of FOO, and
manipulating default-FOO created this way would have no effect on FOO's
default value.
Any user of the obsolete default-FOOs should be changing their code to:
(setq-default FOO bar) ;; setter
(set-default 'FOO bar) ;; setter
(default-value 'FOO) ;; getter
> > perhaps you or someone else know better why the default-FOO
> > variables might be needed again, or why they were implemented in the
> > first place.
>
> I don't know, maybe someone else does.
- Re: On removing some obsolete code from subr and core, (continued)
- Re: On removing some obsolete code from subr and core, Mark Oteiza, 2016/11/06
- Re: On removing some obsolete code from subr and core, Eli Zaretskii, 2016/11/06
- Re: On removing some obsolete code from subr and core, Mark Oteiza, 2016/11/06
- Re: On removing some obsolete code from subr and core, Eli Zaretskii, 2016/11/07
- Re: On removing some obsolete code from subr and core, Mark Oteiza, 2016/11/07
- Re: On removing some obsolete code from subr and core, Eli Zaretskii, 2016/11/07
- Re: On removing some obsolete code from subr and core,
Mark Oteiza <=
- Re: On removing some obsolete code from subr and core, Noam Postavsky, 2016/11/08
- Re: On removing some obsolete code from subr and core, Stefan Monnier, 2016/11/07
- Re: On removing some obsolete code from subr and core, Johan Bockgård, 2016/11/07
- Re: On removing some obsolete code from subr and core, Stefan Monnier, 2016/11/08
- Re: On removing some obsolete code from subr and core, John Wiegley, 2016/11/08
Re: On removing some obsolete code from subr and core, Clément Pit--Claudel, 2016/11/05
Re: On removing some obsolete code from subr and core, Clément Pit--Claudel, 2016/11/05