From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Propose to add setup-wizard.el to ELPA Date: Sun, 02 Jan 2022 11:58:57 +0000 Message-ID: <87bl0us60u.fsf@posteo.net> References: <369E183D-87EC-45AB-8352-9A780006561E@gmail.com> <87zgoeps3f.fsf@yahoo.com> <87zgoeo91m.fsf@yahoo.com> <87a6geo4h8.fsf@yahoo.com> <8735m6o349.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com To: xenodasein--- via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 02 13:00:02 2022 Return-path: Envelope-to: ged-emacs-devel@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 1n3zWs-0001xJ-EI for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 13:00:02 +0100 Original-Received: from localhost ([::1]:33094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3zWq-0002XI-FJ for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 07:00:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3zVu-0001qP-Qy for emacs-devel@gnu.org; Sun, 02 Jan 2022 06:59:02 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:41413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3zVs-0002M6-S0 for emacs-devel@gnu.org; Sun, 02 Jan 2022 06:59:02 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EE423240101 for ; Sun, 2 Jan 2022 12:58:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641124739; bh=1ukbbdpHol45aFd+L2ZFAV3ZGe1MXsmhkAySJ1CfGGA=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=dbiyxbgRS+DGb6JAvzG+ZwvQNcwG+l47oPloTeWL/kZo8qBxEqRAf354fWigbYyQV h+E1348Pyj4YXCO7kHaKYdi4WqpjWrY0hoIIi1MOH2nzbvjWb1b9qKSCPKbrIk8kvd 5RH+ABhNGL7EIpQlXPr/4tgHAiajxfvNiUrxqdMTSvJmSrusmMEa0YKvm+JsRCaNvm ofNIJktRy4K1ewX9vL429syi8teS7puNB8pBX23/GhLinpAzXBIHetIgwqQYYyLo9M 8jjZ8U7BE18RNuaFnz61+pA0O+73YtH+EUBDhbCqLKYvskjVDYEEQsRQn5Ma9PhCZi vE8cO4HEqTwNw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JRcq61VYVz9rxF; Sun, 2 Jan 2022 12:58:58 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (xenodasein's message of "Sun, 2 Jan 2022 11:34:34 +0100 (CET)") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283892 Archived-At: xenodasein--- via "Emacs development discussions." writes: > Jan 2, 2022, 12:45 by luangruo@yahoo.com: > >> xenodasein--- via "Emacs development discussions." <> emacs-devel@gnu.or= g> > >> writes: >> >>> Basically Custom is an unfinished system, it's code is not easy to >>> understand, and it does not integrate with the rest of Emacs well, it >>> especially does not play well with configuring things from init.el >>> file. >>> >> >> Custom is basically a finished system, and the whole point of it is to >> make things work so that users will not have to understand it. >> ... >> Custom should be understandable for everyone, and I don't see why it >> isn't. >> > > If you think it a perfect, finished and polished system, I am fearful of = the > damage you will do to both Emacs' code and community. > > >> And contrary to your statements, it integrates with the rest of Emacs >> quite well. For example, this doesn't work: >> >> (setq pixel-scroll-precision-mode t) >> >> But this does: >> >> (custom-set-variables '(pixel-scroll-precision-mode t)) >> >> Same goes for `scroll-bar-mode', and so on. >> > > I invite you to compare code of custom-set-variables and setq, for > setting a single variable, and to see how ridiculous this defense is. A simple macro like --8<---------------cut here---------------start------------->8--- (defmacro setc (&rest args) "Handle ARGS like `setq' using `customize-set-variable'." (let (body) (while args (let* ((var (pop args)) (val (pop args))) (push `(customize-set-variable ',var ,val) body))) (macroexp-progn (nreverse body)))) --8<---------------cut here---------------end--------------->8--- could fix that (perhaps expanded to not add itself to the "user" theme as it would usually be used within a persistent init.el), if added to the core. Then all you need to do is replace a setq with a setc. > There isn't even a function for setting a custom variable and you will > find a csetq macro popping up in many users init files, if you care to > look within your community.=C2=A0 And no, custom-set-variable isn't it. --=20 Philip Kaludercic