emacs-devel
[Top][All Lists]
Advanced

[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: Sun, 06 Nov 2016 12:05:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:
>> easy.  But what do we do with the default-FOO variables, once the
>> machinery for their generation is removed?
>
> BTW, the default-FOO vars were only deprecated in Emacs-23, not
> Emacs-22, so maybe they can wait a little longer.  Actually I think most
> of them can be safely dropped (e.g. because they've never been used),
> but some have been used fairly commonly and should stick around a bit
> longer.  Most obvious ones: default-major-mode and default-tab-width.

Do you mean in 3rd party packages?  Because AFAICT no use of them is
left in Emacs.

For the record, from my search, what remains is:
- a comment in fileio.c on default-buffer-file-coding-system
- a mention in edebug.el of default-cursor-in-non-selected-windows

and I think I only removed one default-foo in the recent 2c6920a

>> Why do we need to remove buffer_defaults?  Once it is not exposed to
>> Lisp as variables, what's the harm?
>
> AFAIK buffer_defaults is indeed still very much needed for
> (default-value major-mode), (setq-default major-mode ...) and same for
> all other variables which have their own field in the struct buffer.

Oops, thanks.

> OTOH, once all the DEFVAR_BUFFER_DEFAULTS are removed, we can remove the
> hack in store_symval_forwarding.

P.S. Please Cc: me



reply via email to

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