From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Missing functions? (custom-initialize-safe-set, custom-initialize-safe-default) Date: Thu, 14 Jun 2018 18:47:20 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1529027280 18982 195.159.176.226 (15 Jun 2018 01:48:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2018 01:48:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 15 03:47:56 2018 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 1fTdqG-0004qk-Fw for ged-emacs-devel@m.gmane.org; Fri, 15 Jun 2018 03:47:56 +0200 Original-Received: from localhost ([::1]:43831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTdsN-0004TI-IW for ged-emacs-devel@m.gmane.org; Thu, 14 Jun 2018 21:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTbxc-0000VR-PW for emacs-devel@gnu.org; Thu, 14 Jun 2018 19:47:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTbxa-0001SU-Q2 for emacs-devel@gnu.org; Thu, 14 Jun 2018 19:47:23 -0400 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:55545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTbxa-0001Rd-IV for emacs-devel@gnu.org; Thu, 14 Jun 2018 19:47:22 -0400 Original-Received: by mail-wm0-x231.google.com with SMTP id v16-v6so692676wmh.5 for ; Thu, 14 Jun 2018 16:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=rsXI3oDtzj0IQLZIFwpogSdNeKjwW9Ca7B/1l0pLH0Y=; b=Lz5ZFsufj72MYNKb2Pgnh6PWadLOVeuMJcVtckGVKnc+q7C0YgO9W3gefyJHkMFfzL LNZtAlAMSZZsfNPKdWpx/N7fAxu1IRUwUhGIQr0CN6F+9tFlo/zbpmrzMR8/DoM5LscK mRE+m451pYlc7lXMYkABLkjRZ1bxnCkO0xQHe4FYYzucsnZ8R1CpiVT0ZXWIsFpg4vNK sRGHkW7LUzkU4qKWZxSqORbPHrHBBtiAjTt+TpNgU0MjfgX/rKyewww6dVZpF6OD3H+9 CLg3oMpdWEJJGAufE9UCLvnthmvBYlxMNc7rZOQzc1UR04LPfLbxPRRcYxK22DJxZKIP /mhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=rsXI3oDtzj0IQLZIFwpogSdNeKjwW9Ca7B/1l0pLH0Y=; b=Tw+rLsY6uqQAC7H/6nOrfUaWhkcSmJP6V54D4AINefXkePsILVGEjCEnTBC6U2S8X0 aZKGclCPDxA9ESGc534f96WAu2GnQuFU8dnMsSo87T9LHyy+VcheT2qyvna0c2dOwb67 kAt905THpTSW/1tRM4ALE76Lgh0f6EIP6Wwiqx9FQmAVDv7cLGAd3FASTv78pA1x6cHi xP9gufqa2Vx3mPjJvv3VCa4iPFDcDmxjPMQlHm+zTUoYn5uGglqaYKVe5EyLiFqfD++E orqDjp+RvWLlsNrBs0MYtScHKMg46eY0jM/MFQ9Voisea80A5h1k3S+/Mz/BmxkcpyLp hbqw== X-Gm-Message-State: APt69E0/hNCitqhPZbr/s8H3IRJbTEc9MIErH3U1CJX4C64zdQvFcYUP h/uPVgTbRssJEJH+EA5UPB4fomQXuIGmUXQMMA7FNA== X-Google-Smtp-Source: ADUXVKIS2Eezh61rsXOAgT2tpGE5mzHjdq/3mFPWFGko6UVts4B4knGnohVsb4g285ioPmRF6owY6vTcsDnz64CLI1c= X-Received: by 2002:a50:c211:: with SMTP id n17-v6mr4151178edf.11.1529020041052; Thu, 14 Jun 2018 16:47:21 -0700 (PDT) Original-Received: by 2002:aa7:d283:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 16:47:20 -0700 (PDT) X-Google-Sender-Auth: qoNUWfO2r-4A36puPbfDRXJkh2U X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 X-Mailman-Approved-At: Thu, 14 Jun 2018 21:46:10 -0400 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:226324 Archived-At: Hi, Looking in the manual at info:elisp#Variable Definitions, under the :set keyword, I see this: =E2=80=98custom-initialize-safe-set=E2=80=99 =E2=80=98custom-initialize-safe-default=E2=80=99 These functions behave like =E2=80=98custom-initialize-set=E2=80=99 (=E2=80=98custom-initialize-default=E2=80=99, respectively), but catch= errors. If an error occurs during initialization, they set the variable to =E2=80=98nil=E2=80=99 using =E2=80=98set-default=E2=80=99,= and signal no error. These functions are meant for options defined in pre-loaded files, where the STANDARD expression may signal an error because some required variable or function is not yet defined. The value normally gets updated in =E2=80=98startup.el=E2=80=99, ignor= ing the value computed by =E2=80=98defcustom=E2=80=99. After startup, if one = unsets the value and reevaluates the =E2=80=98defcustom=E2=80=99, the STANDAR= D expression can be evaluated without error. However, I cannot find those functions defined anywhere, in either Emacs 25 or 26. Searching the git history, I see they were added in 2005 in commit 8cb9beb32163fa3ce3b052ced646fd673814ddc6. Then they were removed in 2009 in commit adba8116c3a918f2f091600b60ea1700c9ea7362, however there was no reason given, and they were not removed from the manual. I noticed this because, if I understood the manual correctly, they sounded like they might be useful to fix a problem I was having. Should these functions be replaced? If not, why were they removed, and is there anything that replaces their functionality or obsoletes them? Or should they be removed from the manual? Thanks.