[Top][All Lists]

[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.

reply via email to

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