From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#27348: 24.5; [PATCH] let defvars benefit from defcustom keywords and persistence Date: Mon, 24 Jun 2019 11:04:40 -0700 (PDT) Message-ID: <30a84ebd-5903-4e74-8083-48b2f6cddabd@default> References: <85d6df89-9c08-4927-9b10-93a0b43808a7@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268672"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 27348@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 24 20:12:28 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 1hfTS7-0017ne-P4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2019 20:12:27 +0200 Original-Received: from localhost ([::1]:53656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfTS6-0008VU-Qo for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2019 14:12:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56262) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfTL0-0005pw-4b for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 14:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfTKy-00038k-5H for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 14:05:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfTKw-00035L-7s for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 14:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfTKv-0007Fy-VS for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2019 14:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2019 18:05: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.156139949327875 (code B ref 27348); Mon, 24 Jun 2019 18:05:01 +0000 Original-Received: (at 27348) by debbugs.gnu.org; 24 Jun 2019 18:04:53 +0000 Original-Received: from localhost ([127.0.0.1]:57930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTKn-0007FX-Al for submit@debbugs.gnu.org; Mon, 24 Jun 2019 14:04:53 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTKl-0007FH-DR for 27348@debbugs.gnu.org; Mon, 24 Jun 2019 14:04:52 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5OHwduM003840; Mon, 24 Jun 2019 18:04:44 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-2018-07-02; bh=SUHl76k8gkxlCbynRssMSbkZjDzrJlPkwvKtN/fahrQ=; b=dYZmRHgeZN/AQqWlwm39x83zLYBaQmzP/9UeQv6ubU21iQ2wBh/emwmN+IYx6kVMgwYU zJ4Zavddq2Eb4xeWZboO8PcN4p8aWlBiaaf1ibpRxDSYPSTi5eEsA5OkmU2/Tbv5WJVQ X5I/jFqUn0blZ50ZKNYRYRTtsVCpEamkXF4kUfqybnFtmaWgjCuSjtU4nc71i2MIDbXJ ydeekoor27nlihQruVVVujNgj/bjEsWtOrz/b5YaQfaIccCYAlqAsaVVB9Ph6fgGHnr7 sey2aezoclWMzqCqZPgqSAP4ZatWQ6QosZcCB4jBz2N2g8OZzwAMWkV9K4tN16tFiYQK ZA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2t9brsywr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jun 2019 18:04:44 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5OI3ov4136737; Mon, 24 Jun 2019 18:04:44 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2t99f3dpdr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jun 2019 18:04:44 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5OI4fP1013677; Mon, 24 Jun 2019 18:04:41 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9298 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=928 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906240143 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9298 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=979 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906240143 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:161260 Archived-At: > > The ability to type-check, provide :set and :initialize trigger > > functions, automatically :require libraries, add links to doc, associat= e > > 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, th= e > > ability to persist non-option variables in a user's custom file can be > > useful. >=20 > 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? >=20 > (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.) It's an enhancement request. This is the place for that. And yes, I brought it up on emacs-devel some time ago. (Probably was told to file an enhancement request. ;-)) This is not an "extension of the [Lisp] type system". It simply gives Lisp programmers the ability to use some `defcustom' features for variables that users do not change using Customize. It separates such features, which are useful for programmers, from the use of Customize.