From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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, 24 Jun 2019 18:35:05 +0200 Message-ID: References: <85d6df89-9c08-4927-9b10-93a0b43808a7@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="124214"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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.org@gnu.org Mon Jun 24 18:37:52 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfRya-000W9O-58 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2019 18:37:52 +0200 Original-Received: from localhost ([::1]:53064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfRyY-0001sQ-W3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2019 12:37:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34140) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfRwp-00018H-CG for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 12:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfRwo-0001ml-8g for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 12:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfRwo-0001ls-4U for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 12:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfRwn-0000dl-WE for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 12:36: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, 24 Jun 2019 16:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27348 X-GNU-PR-Package: emacs Original-Received: via spool by 27348-submit@debbugs.gnu.org id=B27348.15613941122388 (code B ref 27348); Mon, 24 Jun 2019 16:36:01 +0000 Original-Received: (at 27348) by debbugs.gnu.org; 24 Jun 2019 16:35:12 +0000 Original-Received: from localhost ([127.0.0.1]:57796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRvz-0000cS-JU for submit@debbugs.gnu.org; Mon, 24 Jun 2019 12:35:11 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:33186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRvy-0000cG-59 for 27348@debbugs.gnu.org; Mon, 24 Jun 2019 12:35:10 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfRvt-0005Kx-OP; Mon, 24 Jun 2019 18:35:08 +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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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:161246 Archived-At: Drew Adams writes: > 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. I think this is an interesting idea, but perhaps a bug report isn't the right venue for it? Did you take this up on emacs-devel? (And here's my two pennies on the subject after considering it for about 60 seconds: I'm not sure this sort of extension of the type system is that useful... If we want a more expressive type system in Emacs, this is the wrong place to start.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no