From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31558: 27.0; `custom-file' settings messed up by Emacs 27 Date: Tue, 22 May 2018 12:04:04 -0700 (PDT) Message-ID: <5cd8f30c-a341-40c9-bb1f-441425e1a160@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527015845 8274 195.159.176.226 (22 May 2018 19:04:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 19:04:05 +0000 (UTC) To: 31558@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 22 21:04:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fLCZl-00020S-7M for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2018 21:04:01 +0200 Original-Received: from localhost ([::1]:57433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLCbq-0005j4-FY for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2018 15:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLCao-0005Ax-2Q for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLCak-00057t-S1 for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:05:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLCak-00057g-Ob for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLCak-0001vA-EW for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 May 2018 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15270158637335 (code B ref -1); Tue, 22 May 2018 19:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2018 19:04:23 +0000 Original-Received: from localhost ([127.0.0.1]:44450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLCa6-0001uE-VW for submit@debbugs.gnu.org; Tue, 22 May 2018 15:04:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLCa5-0001u1-4p for submit@debbugs.gnu.org; Tue, 22 May 2018 15:04:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLCZz-0004eF-2h for submit@debbugs.gnu.org; Tue, 22 May 2018 15:04:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLCZy-0004eA-Ve for submit@debbugs.gnu.org; Tue, 22 May 2018 15:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLCZx-0004mW-NA for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:04:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLCZu-0004d0-HW for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:04:13 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:53806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLCZu-0004cM-8V for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 15:04:10 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4MIts97074519 for ; Tue, 22 May 2018 19:04:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=FEUytY8yga0objH9qwPArRynvdgXLYHRmNhrd6DsFwQ=; b=Ca/z1JBS57NrQ1fEBMLDDHd+Iz/Fa2qN/9vCTvk6FxDhfV3CbCdDY6QxzAua+5NE/zYM sc8NeCeM+or4Z8s0iGafBiTgNJBQYF5/7jY6fR4jTQNFaWLgTWAQInlekgT3iFT1uhy4 6Yp4DrsabgBfMyD6pfeQSTLkoHqnGHQK7cOOW3xbd+nxlXOcBGVJg8Ac6fvhTomsyg0y Mxcth3fPRxuyhXxCeAxCtVK+/6FvivKeIQFUK6Kw/fGVpZTxQ71AcSUc1Zc/hAQgni8s Q3uZCkVz1m0UUPTgquqedEqT9lXY58QQ4731WdnrSVbA1GJzPb9C6oxeyXsrYoHecbc8 GQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2j4nh7h3d1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 22 May 2018 19:04:07 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4MJ46gG027607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 22 May 2018 19:04:06 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4MJ452r013654 for ; Tue, 22 May 2018 19:04:06 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4690.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8901 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805220199 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146397 Archived-At: Admittedly, this is probably not a problem that others will run into often. But it is quite annoying for me. I think the problem was introduced in Emacs 27, but I'm not positive. This is the problem: If I update a user option and then save the new value, it is saved to my `custom-file', as usual. But thereafter my `custom-file' cannot be loaded by Emacs 20, because of these two entries that have been updated: '(tramp-default-method "ftp" nil (tramp)) '(tramp-verbose 9 nil (tramp)) I did not modify or ask to save those two options. Their values remain the same as they were. What has happened is that Emacs has now added "nil (tramp)", and those additional elements in the list make Emacs 20 choke, because library `tramp' does not exist in Emacs 20. Signaling: (file-error "Cannot open load file" "tramp") require(tramp) mapcar(require (tramp)) custom-set-variables(... (tramp-debug-buffer t) (tramp-default-method "ftp" nil (tramp)) (tramp-verbose 9 nil (tramp)) ...) But why must Emacs now add that "nil (tramp)" to my custom settings? Must defining the option value require the library? I have no other case of an option where such a require argument is inserted. And I need not use Tramp at all, for these options to get updated this way. Should Emacs (e.g. 27) be doing that systematically? If it should, then what's the best way for me to prevent it from doing that, for my use case? (In fact, in Emacs 20, the doc string for `custom-set-variables' does not even mention the possibility of an entry having a 4th argument, REQUEST, but the code for that function does handle it, as `custom-requests'.) In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32) of 2018-03-21 Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install -C 'CFLAGS=3D-O2 -static -g3''