From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: On removing some obsolete code from subr and core Date: Sat, 05 Nov 2016 13:50:48 -0400 Message-ID: References: <878tsznpuq.fsf@udel.edu> <83fun6jpeq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1478368320 25468 195.159.176.226 (5 Nov 2016 17:52:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2016 17:52:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 05 18:51:57 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3589-0005Df-Ge for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2016 18:51:49 +0100 Original-Received: from localhost ([::1]:53706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c358C-0004dW-Gy for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2016 13:51:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c357c-0004cj-7v for emacs-devel@gnu.org; Sat, 05 Nov 2016 13:51:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c357Z-0003th-6J for emacs-devel@gnu.org; Sat, 05 Nov 2016 13:51:16 -0400 Original-Received: from [195.159.176.226] (port=55432 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c357Y-0003sq-Vk for emacs-devel@gnu.org; Sat, 05 Nov 2016 13:51:13 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c357N-0007qR-NZ for emacs-devel@gnu.org; Sat, 05 Nov 2016 18:51:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:jqR3Uo/ZPyJoY8Qu/DAc58xtQ+0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209193 Archived-At: > 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. > 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. OTOH, once all the DEFVAR_BUFFER_DEFAULTS are removed, we can remove the hack in store_symval_forwarding. Stefan