From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27348: 24.5; [PATCH] let defvars benefit from defcustom keywords and persistence Date: Mon, 10 Aug 2020 17:04:00 +0200 Message-ID: <87k0y6zgnz.fsf@gnus.org> References: <85d6df89-9c08-4927-9b10-93a0b43808a7@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4874"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 27348@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 10 17:05:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k59ML-00018U-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Aug 2020 17:05:09 +0200 Original-Received: from localhost ([::1]:50780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k59MK-0005xR-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Aug 2020 11:05:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k59ME-0005xF-Ix for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 11:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k59ME-00049W-96 for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k59ME-0003AK-4s for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 11:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2020 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27348-submit@debbugs.gnu.org id=B27348.159707185812089 (code B ref 27348); Mon, 10 Aug 2020 15:05:02 +0000 Original-Received: (at 27348) by debbugs.gnu.org; 10 Aug 2020 15:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:37177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k59LW-00038t-2Z for submit@debbugs.gnu.org; Mon, 10 Aug 2020 11:04:18 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k59LU-00038e-Pk for 27348@debbugs.gnu.org; Mon, 10 Aug 2020 11:04:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=reHv3uscyX3AlaW7KHuZHCcB52n3s6fAgt3l8xUvJ1Y=; b=n5DxyJOVMjuFGfNKbcrvwrVx3r CUzUVVwAzKVfZ9wONRPhW7G2R/xCJpVb5koLqGkjGTOlmLoPOX9bAbHTLV3kyJwb5954ygbtpN9Oa qhnBo7W32Qg4RVsiXxk79m9EThnELyuE6snLwVayVjV+QRh39P50qyhGhcAB17lyfk3U=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k59LF-0006BN-U4; Mon, 10 Aug 2020 17:04:10 +0200 In-Reply-To: <85d6df89-9c08-4927-9b10-93a0b43808a7@default> (Drew Adams's message of "Mon, 12 Jun 2017 14:34:35 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184534 Archived-At: Drew Adams writes: > This is an enhancement request, with a patch. > > [NOTE: I suggested this enhancement to emacs-devel in 2009. There was > exactly one reply, with only this text: "YAGNI". > http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00668.html > http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01481.html] > > The ability to type-check, provide :set and :initialize trigger > functions, automatically :require libraries, add links to doc, associate > with one or more :groups, etc. - these are useful things to be able to > do with at least some defvars, not just with defcustoms. Similarly, the > ability to persist non-option variables in a user's custom file can be > useful. So this has been brought up several times, and nobody seems to be enthusiastic about the idea. (I'm not either -- if we're extending Emacs Lisp to support static typing, I think this would be starting in at the wrong end.) So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no