From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#31558: 27.0; `custom-file' settings messed up by Emacs 27 Date: Wed, 23 May 2018 11:07:16 +0200 Message-ID: <87wovug2pn.fsf@gmx.de> References: <5cd8f30c-a341-40c9-bb1f-441425e1a160@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527066366 13400 195.159.176.226 (23 May 2018 09:06:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 May 2018 09:06:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31558@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 23 11:06: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 1fLPia-0003LB-Sy for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2018 11:06:01 +0200 Original-Received: from localhost ([::1]:59965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLPkh-000265-VG for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2018 05:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLPkc-00025h-0K for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 05:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLPkY-0001v2-O0 for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 05:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLPkY-0001ud-KQ for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 05:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLPkY-0006jl-5Y for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 05:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 May 2018 09:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31558-submit@debbugs.gnu.org id=B31558.152706645525862 (code B ref 31558); Wed, 23 May 2018 09:08:02 +0000 Original-Received: (at 31558) by debbugs.gnu.org; 23 May 2018 09:07:35 +0000 Original-Received: from localhost ([127.0.0.1]:44783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLPk6-0006j4-Ts for submit@debbugs.gnu.org; Wed, 23 May 2018 05:07:35 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:49141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLPk4-0006iq-Bb for 31558@debbugs.gnu.org; Wed, 23 May 2018 05:07:33 -0400 Original-Received: from detlef.gmx.de ([212.86.60.250]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LiTm8-1fvpxB0nNs-00cfT9; Wed, 23 May 2018 11:07:17 +0200 In-Reply-To: <5cd8f30c-a341-40c9-bb1f-441425e1a160@default> (Drew Adams's message of "Tue, 22 May 2018 12:04:04 -0700 (PDT)") X-Provags-ID: V03:K1:iJVOx9hL0F5kbOrQoU7rYOyxAgiFWsf/Cz7TZCtSZA8TgkiRv8u /H38NBJ5rda52VeniGVkwAb/2Aay50urTy5uS9wyzkDhoK/XvmN/AYrI8DZ0jqty2shDG9d IpFXwJIW4Ze7do45N9wGnBbVwx/BFqDPc4eg2CIdDVE38BXDdwiI/l848gqu3X2Rb6k4Cir B1ot6peKlOPDpRdykumJA== X-UI-Out-Filterresults: notjunk:1;V01:K0:iXFGgAKmG+4=:pDE1Tm6kaDU0SQYKqXhpkK UuMZKeeVPNji3f17KMPoZ/5538vQwCggjzEUbF+BZXOCZ0qj/LTygsxw/wUGTmUfN/xQuskel KYttY1qr2OXA7l2V/d8dLlS4wqMhhZE5glY+JUJPK0Ctsy5uX5c8zBNVXYdR7gmi49YWSZJp8 j5qyXhBH0kWcZ7E9ThMGtg5BPZX3CtCEhep92llzL2gBA0ACFrLMO9cgVz+BlMjCumZmCLZ/p ptLgliCBh5vkERVQJZdvT3hyr6yCcCkgxsBokbr7XSaX2zGLBIxXR2ztPGsxArnS/3Hm5d4HD mmKYexK/ZCuKjXdYU8RQmRox/uVGeMTnmOHvZU3v1UDBlDcnhR4/4kaFM6HJz/6hmv3z+RaS+ I0TqRBEmpPfJqvFKTsjsYezrMQ1B5DF6zRymRUBfvafIbRfhA1n35YUofgT6SLJU87OWluy83 SVX/D7pLS81DTVgw1SPJLwD9ErqrWz3To7VbG5+qItaUUCwXoRR5iUzVd2j8jSztIL9KFZpoV d3heWgejDjZlU7AZwictrXSjjBgY98oljpu2IBvco3qrJg4engvfuqyArw3lb+TK3JrgBFA4h C7yo/2mLmjwcXoOmyGvUBV86VZ2yF3pJtmkjSJGr/etg5I20BxsCqe/mTgHyRfJy3EZw+WCFx +HVfTOZ5zbm1NZz9cl9ZlfXPrqSxkR+M9mD/fFuajXRmYn0ClO6tjDeBQBcMekZiQLwCQ3OTN ZoKKJ1EWe2jQ/ntUKXFsy/EAXcax60MTZTeYhqfAVpkU6d4muR1grF3BeB9mRFokQ+i5sxoc 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:146418 Archived-At: Drew Adams writes: Hi Drew, > 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. I suspect it is also in Emacs 26.1, see below. > 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)) In Tramp 2.3 (integrated in Emacs 26.1), the defcustoms have changed: --8<---------------cut here---------------start------------->8--- (defcustom tramp-default-method ... :group 'tramp :type 'string :require 'tramp) ;; new in Tramp 2.3. --8<---------------cut here---------------end--------------->8--- The additional arguments are due to the ":require 'tramp", which was added that time. > But why must Emacs now add that "nil (tramp)" to my custom settings? > Must defining the option value require the library? IIRC, there was a reason for this. Don't remember the details :-( > 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? Maybe you put at the beginning of your custom file --8<---------------cut here---------------start------------->8--- ;; This is for Emacs < 22 (or (locate-library "tramp") (provide 'tramp)) --8<---------------cut here---------------end--------------->8--- Best regards, Michael.