From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: On removing some obsolete code from subr and core Date: Sun, 06 Nov 2016 12:05:43 -0500 Message-ID: <87h97k8ro8.fsf@udel.edu> 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 1478451977 3749 195.159.176.226 (6 Nov 2016 17:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2016 17:06:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 06 18:06:13 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 1c3QtF-0006RK-V0 for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2016 18:05:54 +0100 Original-Received: from localhost ([::1]:45378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3QtJ-0004BJ-06 for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2016 12:05:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3QtC-0004BC-5w for emacs-devel@gnu.org; Sun, 06 Nov 2016 12:05:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3Qt8-0007u8-7K for emacs-devel@gnu.org; Sun, 06 Nov 2016 12:05:50 -0500 Original-Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:36111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3Qt8-0007sy-0I for emacs-devel@gnu.org; Sun, 06 Nov 2016 12:05:46 -0500 Original-Received: by mail-qt0-x229.google.com with SMTP id w33so75011882qtc.3 for ; Sun, 06 Nov 2016 09:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7mFkUw75eLMUsgH81V7xK828P4/ImpPSawxnbJkL+Jc=; b=K84bWmynrGQOVb9P2yZ/tM7C1exY+ZXLkAF4JrSKQZ1gm60xCDerBrUmtn7TEghYoY /73c12ga1twND4CsPVoEKaWw5JZ6eliyi/sxAxXLEsN4D1Teci63zPBK+7ylk9vLtxxa KKrQj4uMowOwxMrInJUAjmf/r/XU0PkKxnC/vmSfttZpDmNHV/kolCK2aQ/OmVxboMJM vcpt7FDBIv+BN3lOdeDJRaQ3mnNA2BJYlFDThd5DE9N+R0mPJa+yRm2rXLWztQdeQOg8 aPboSro18cX/s8m5VVsNGvFTsOH2rbDeRn2ppRag+ZiIA8UUK1Nt9NMbx3jw0PPnysop l0yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7mFkUw75eLMUsgH81V7xK828P4/ImpPSawxnbJkL+Jc=; b=hipqDSMtbkZrqNVM1SFU8hf50iH3rImc+PDlbUdMMZanOvAbWdMmEUssNMHwhLJbSe IyWc27iYzl87WBwX2M8mAFj0pcavd/rGeBdH97hbRM5x0FsAObEF4owhFtOdtTdC55Zl KY2LQUnVEWc+bIfktyEbCTG2A8n+lrP9A5tNIEfcN6UnpCvfcHoCoRuzlrqHbOoaDSQD WUQZ3eI+Gu/8tVb0sEgyKI8IXw7JaeGjcLw0z5z1Fk59+Yx7CScdawNQIz2/aUXcLNH+ oJLVgtfFhMoxIk+XdYGslxPk5okY6EZi1k3iBodQK6L/WF8g2W6bdYV7/6/EDY4SmDbU NRgQ== X-Gm-Message-State: ABUngvcL76+05jmWqwbPYFsOXp4/EiravtrzhTLuSYPEbCUtsj95LBFnIXqDivmnpfdc3rUT X-Received: by 10.200.35.214 with SMTP id r22mr2978053qtr.30.1478451944420; Sun, 06 Nov 2016 09:05:44 -0800 (PST) Original-Received: from holos.localdomain (pool-72-78-210-63.phlapa.fios.verizon.net. [72.78.210.63]) by smtp.gmail.com with ESMTPSA id f36sm14004221qkf.43.2016.11.06.09.05.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 09:05:43 -0800 (PST) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 2F16C66231; Sun, 6 Nov 2016 12:05:43 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Sat, 05 Nov 2016 13:50:48 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::229 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:209215 Archived-At: Stefan Monnier 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