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: Wed, 23 May 2018 07:07:17 -0700 (PDT) Message-ID: <8f1290c2-ad20-4ba9-809d-154188bae0fb@default> References: <5cd8f30c-a341-40c9-bb1f-441425e1a160@default> <87wovug2pn.fsf@gmx.de> 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 1527084375 16383 195.159.176.226 (23 May 2018 14:06:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 May 2018 14:06:15 +0000 (UTC) Cc: 31558@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 23 16:06:11 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 1fLUP2-00047c-VT for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2018 16:06:09 +0200 Original-Received: from localhost ([::1]:33648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLURA-0006q3-10 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2018 10:08:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLUQy-0006po-IV for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 10:08:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLUQs-0004B9-Tb for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 10:08:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLUQs-0004Ac-Os for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 10:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLUQs-000189-GM for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 10:08: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: Wed, 23 May 2018 14: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.15270844514305 (code B ref 31558); Wed, 23 May 2018 14:08:02 +0000 Original-Received: (at 31558) by debbugs.gnu.org; 23 May 2018 14:07:31 +0000 Original-Received: from localhost ([127.0.0.1]:45488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLUQM-00017N-Nz for submit@debbugs.gnu.org; Wed, 23 May 2018 10:07:30 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:58984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLUQL-00017A-AV for 31558@debbugs.gnu.org; Wed, 23 May 2018 10:07:29 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4NE5xAr084895; Wed, 23 May 2018 14:07:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=C9J49IG9kolnxN2es88K3xgwn3hEj5Ckbtuq1/GGYnE=; b=rBW2XvTW67QFS7laFoMI/oMUTbcbOME4V5Vkqil7mtUAXaKc/R758WvGf1vinzGK39Tw vAvj3nb0ocJ5GbrlqxRap63UN+G0r1jPM9AjspUjIdmYbaLCP8yi8A6Hu3+eIhHWgu4J gKME05Y2lzRuS2I8r5h++eD9qYlYLtQgteNfmPFI2RFVtKGfOU9IW2UQqLRHuWDuxdjk soGSwV2RinbmlthBWEXfPpxVUxAiZcnLlpspW3yZr5qbCSLkMGc9J+5xSPNqTBPhzq1E BS4uBN9aTGwjGsAeMT0Qg99faWhPT9p5sjFhXQO8iUhGR/MMk2KU9EXGh+Wkxt3WbZhP gg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2j4nh7v5sm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 14:07:23 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4NE7LxA002169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 14:07:22 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4NE7Jr7027183; Wed, 23 May 2018 14:07:19 GMT In-Reply-To: <87wovug2pn.fsf@gmx.de> 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=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=990 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805230143 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:146427 Archived-At: > Maybe you put at the beginning of your custom file > (or (locate-library "tramp") (provide 'tramp)) Yes, I guess that would work and is better than nothing, but it seems wrong to tell Emacs that something has been provided that has not. ;-) Worse than style or ugliness, though, is that there might be code here or there that tests (featurep 'tramp) and acts accordingly. That code surely will be led astray by such a hack. I'd like to find a better way. Seems like there should be a way for Tramp and Customize to collaborate to produce a conditional sexp that does not require tramp unconditionally. E.g., one that tests (at time of evaluating `custom-set-variables') whether Tramp is even included in the Emacs version. Or maybe somehow just use a soft-require - the equivalent of (require 'tramp nil t)? Would that work for Tramp, if it were possible for `custom-set-variables'? Seems like something is missing from Emacs for such cases. A library wants to ensure that it is loaded before evaluating a sexp that sets one of its user options. But if loading the library is impossible then setting the variable is benign, so a soft-require is all that is really needed. (Or am I missing something?)