From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 02 11:54:19 2021 Received: (at submit) by debbugs.gnu.org; 2 Jul 2021 15:54:19 +0000 Received: from localhost ([127.0.0.1]:36935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLUh-00066D-B3 for submit@debbugs.gnu.org; Fri, 02 Jul 2021 11:54:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:57062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLUe-000664-Vk for submit@debbugs.gnu.org; Fri, 02 Jul 2021 11:54:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLUe-0000zn-ME for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:54:16 -0400 Received: from bumble.maple.relay.mailchannels.net ([23.83.214.25]:64275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLUc-00017v-LW for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:54:16 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 552BF1E30B1 for ; Fri, 2 Jul 2021 15:54:10 +0000 (UTC) Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-105-161-161.trex-nlb.outbound.svc.cluster.local [100.105.161.161]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BB6831E30F1 for ; Fri, 2 Jul 2021 15:54:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a42.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.161 (trex/6.3.3); Fri, 02 Jul 2021 15:54:10 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Power-Cooing: 0407f3ce5665e94b_1625241250025_1147157625 X-MC-Loop-Signature: 1625241250025:1821567827 X-MC-Ingress-Time: 1625241250024 Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id 7EF597EFD0 for ; Fri, 2 Jul 2021 15:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=kXsjOtrSpryYVF+iONnwdo5j8ks=; b=hNwnnjQEILN7Q9Va 9sWPVNMBAfgPtv1KvueXBZ2D5diLOUvCDkwdEoAsA8AW+mc7/psB8ZjybvUmzfFl HBPhOQOpERSoIcmiKShW5LWm7vuXJN21+xhvCtTrl4NxaF1/Y4gX8Jl62WZgUOqQ qzKl1GGc1Ld90AstcOzowI/8oOQ= Received: from jidanni.org (220-140-5-80.dynamic-ip.hinet.net [220.140.5.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 63CC9897E4 for ; Fri, 2 Jul 2021 15:54:06 +0000 (UTC) X-DH-BACKEND: pdx1-sub0-mail-a42 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Customization buffer should also offer printing code snippets Date: Fri, 02 Jul 2021 22:16:02 +0800 Message-ID: <87y2aool7h.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.214.25; envelope-from=jidanni@jidanni.org; helo=bumble.maple.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The *Customize Face* buffer looks like: For help using this buffer, see Easy Customization in the Emacs manual. Operate on all settings in this buffer: Revert... Apply Apply and Save 1^^^^^^^^^^^2^^^^^^^3^^^^^^^^^^^^^ OK, but add a fourth menu item: "Print code snippet" or "Just print code snippet" or just "Print"! Else currently one must 1. cp .emacs-custom.el /tmp 2. click "Apply and Save" 3. exit emacs #as we are about to replace a dot file it uses. 4. diff /tmp .emacs-custom.el #obtain the code snippet. 5. mv /tmp/.emacs-custom ~ 6. restart emacs Just to obtain the code snippet! Let's compare https://overpass-turbo.eu/s/177G As you see, just like RMS wants: code produced shown to the user, and not need six whole steps to "dig it back out and have a look". From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 02 13:24:41 2021 Received: (at 49330) by debbugs.gnu.org; 2 Jul 2021 17:24:42 +0000 Received: from localhost ([127.0.0.1]:37103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzMu9-0004hc-Na for submit@debbugs.gnu.org; Fri, 02 Jul 2021 13:24:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzMu8-0004hP-8A for 49330@debbugs.gnu.org; Fri, 02 Jul 2021 13:24:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41658) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzMu2-0005iC-SB; Fri, 02 Jul 2021 13:24:34 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4608 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzMu2-0004ir-Fe; Fri, 02 Jul 2021 13:24:34 -0400 Date: Fri, 02 Jul 2021 20:24:32 +0300 Message-Id: <8335swk4rz.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-Reply-To: <87y2aool7h.5.fsf@jidanni.org> Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: 積丹尼 Dan Jacobson > > Date: Fri, 02 Jul 2021 22:16:02 +0800 > > The *Customize Face* buffer looks like: > > For help using this buffer, see Easy Customization in the Emacs manual. > > Operate on all settings in this buffer: > Revert... Apply Apply and Save > 1^^^^^^^^^^^2^^^^^^^3^^^^^^^^^^^^^ > > OK, but add a fourth menu item: > "Print code snippet" or > "Just print code snippet" or just > "Print"! > > Else currently one must > 1. cp .emacs-custom.el /tmp > 2. click "Apply and Save" > 3. exit emacs #as we are about to replace a dot file it uses. > 4. diff /tmp .emacs-custom.el #obtain the code snippet. > 5. mv /tmp/.emacs-custom ~ > 6. restart emacs > Just to obtain the code snippet! What is that "code snippet" that you'd like to see? If you want to see the effect of customizing the face, then the Customize Face buffer includes a "[sample]" part, which dynamically shows the results of your customizations. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 02:08:38 2021 Received: (at 49330) by debbugs.gnu.org; 3 Jul 2021 06:08:39 +0000 Received: from localhost ([127.0.0.1]:37787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzYpS-0000G1-Ln for submit@debbugs.gnu.org; Sat, 03 Jul 2021 02:08:38 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:26362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzYpP-0000Fr-7Z for 49330@debbugs.gnu.org; Sat, 03 Jul 2021 02:08:37 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 35E79122220; Sat, 3 Jul 2021 06:08:34 +0000 (UTC) Received: from pdx1-sub0-mail-a36.g.dreamhost.com (100-96-16-83.trex-nlb.outbound.svc.cluster.local [100.96.16.83]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BE7C5122143; Sat, 3 Jul 2021 06:08:33 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a36.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.83 (trex/6.3.3); Sat, 03 Jul 2021 06:08:34 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Slimy-Bored: 20a999aa25463e41_1625292513994_3861755137 X-MC-Loop-Signature: 1625292513994:3251076809 X-MC-Ingress-Time: 1625292513994 Received: from pdx1-sub0-mail-a36.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTP id 6956B82D98; Sat, 3 Jul 2021 06:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=MC591T4+jqAU1AzuHuqhdIYGjHs=; b=ZYAjp+A6OtvxA xfBVffTgpnCvVYI+VtJXZwWgoB/ER/HN+ke8aZwEijqnoQmwvFPsH/3xQuuwVRK3 okwsB4SPRehH3cSZIOXPAiUTVnpT7Q9HbdQWtLUB94LQCMKC3Cb9l8vHbLL3XXI9 TEvtpgoAP68zmOELW9hhkdjRUfL6IY= Received: from jidanni.org (36-234-69-177.dynamic-ip.hinet.net [36.234.69.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTPSA id D76197F142; Sat, 3 Jul 2021 06:08:32 +0000 (UTC) X-DH-BACKEND: pdx1-sub0-mail-a36 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> Date: Sat, 03 Jul 2021 14:08:28 +0800 Message-ID: <87y2ao53qb.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "EZ" == Eli Zaretskii writes: EZ> What is that "code snippet" that you'd like to see? If you want to EZ> see the effect of customizing the face, then the Customize Face buffer EZ> includes a "[sample]" part, which dynamically shows the results of EZ> your customizations. Yes, but that "sample" is not code. Here is a standalone code snippet: (custom-set-faces '(hl-line ((t (:underline t))))) From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 02:29:20 2021 Received: (at 49330) by debbugs.gnu.org; 3 Jul 2021 06:29:20 +0000 Received: from localhost ([127.0.0.1]:37805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZ9U-0000kF-41 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 02:29:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZ9S-0000k1-5N for 49330@debbugs.gnu.org; Sat, 03 Jul 2021 02:29:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34924) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzZ9M-000882-J9; Sat, 03 Jul 2021 02:29:12 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1125 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzZ9M-00051A-6M; Sat, 03 Jul 2021 02:29:12 -0400 Date: Sat, 03 Jul 2021 09:29:14 +0300 Message-Id: <83sg0vj4g5.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-Reply-To: <87y2ao53qb.5.fsf@jidanni.org> (message from =?utf-8?B?56mN?= =?utf-8?B?5Li55bC8?= Dan Jacobson on Sat, 03 Jul 2021 14:08:28 +0800) Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> <87y2ao53qb.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: 積丹尼 Dan Jacobson > Cc: 49330@debbugs.gnu.org > Date: Sat, 03 Jul 2021 14:08:28 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > > EZ> What is that "code snippet" that you'd like to see? If you want to > EZ> see the effect of customizing the face, then the Customize Face buffer > EZ> includes a "[sample]" part, which dynamically shows the results of > EZ> your customizations. > > Yes, but that "sample" is not code. > > Here is a standalone code snippet: > (custom-set-faces > '(hl-line ((t (:underline t))))) You mean, what Emacs will write into the init file to save your customizations? Why is that needed? If you want to customize your faces in Lisp, the recommended way is to use set-face-attribute instead, not custom-set-faces. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 02:38:52 2021 Received: (at 49330) by debbugs.gnu.org; 3 Jul 2021 06:38:52 +0000 Received: from localhost ([127.0.0.1]:37821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZIi-0000zQ-4Y for submit@debbugs.gnu.org; Sat, 03 Jul 2021 02:38:52 -0400 Received: from bumble.maple.relay.mailchannels.net ([23.83.214.25]:48209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZIf-0000zF-Gb for 49330@debbugs.gnu.org; Sat, 03 Jul 2021 02:38:50 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4B5D7321F09; Sat, 3 Jul 2021 06:38:48 +0000 (UTC) Received: from pdx1-sub0-mail-a36.g.dreamhost.com (100-96-27-210.trex.outbound.svc.cluster.local [100.96.27.210]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1C127321BD9; Sat, 3 Jul 2021 06:38:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a36.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.27.210 (trex/6.3.3); Sat, 03 Jul 2021 06:38:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Company-Juvenile: 67ad8fd541091fbc_1625294328154_452885631 X-MC-Loop-Signature: 1625294328154:1846321320 X-MC-Ingress-Time: 1625294328154 Received: from pdx1-sub0-mail-a36.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTP id A29B682D99; Sat, 3 Jul 2021 06:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=vLj3xbQ9BOzf8oFg9madO0zcsu8=; b=h/DfK6xxGr527 bI95KYZQH8gSnu6L0ZELeXfwsJnBrgIF0yMBdDYXKmexoJdL7ERURk90e0mbbTgx N6wxKsIvtYFi7Q32loarGZz9bH1ir+AxQ/lR+IJqP8Fpae0wf7LvCNb/g5ePL9g0 F+zXUrpm3k8XiXtlAkm/vElNYV4Fqs= Received: from jidanni.org (36-234-69-177.dynamic-ip.hinet.net [36.234.69.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTPSA id 17B2C82D98; Sat, 3 Jul 2021 06:38:45 +0000 (UTC) X-DH-BACKEND: pdx1-sub0-mail-a36 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> <87y2ao53qb.5.fsf@jidanni.org> <83sg0vj4g5.fsf@gnu.org> Date: Sat, 03 Jul 2021 14:38:41 +0800 Message-ID: <87r1gf6gwe.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "EZ" == Eli Zaretskii writes: EZ> You mean, what Emacs will write into the init file to save your EZ> customizations? Yes. EZ> Why is that needed? So the user can be in full control. RMS knows the feeling. The user wants a piece of code that he can stick into his .emacs, safe from having to fight with a robot on who can edit a file. The user wants to put it into a file that only he is editing. EZ> If you want to customize your EZ> faces in Lisp, the recommended way is to use set-face-attribute EZ> instead, not custom-set-faces. OK, good. then have the snippet be a set-face-attribute snippet. The documentation would be: "Here is a snippet you can paste into your .emacs file manually, if you don't feel comfortable allowing the robot maintain your customizations." From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 02:49:26 2021 Received: (at 49330) by debbugs.gnu.org; 3 Jul 2021 06:49:26 +0000 Received: from localhost ([127.0.0.1]:37847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZSw-0001Fz-CE for submit@debbugs.gnu.org; Sat, 03 Jul 2021 02:49:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzZSu-0001Fm-Ek for 49330@debbugs.gnu.org; Sat, 03 Jul 2021 02:49:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35340) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzZSn-0007G0-Gl; Sat, 03 Jul 2021 02:49:17 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2517 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzZSm-0006M8-EQ; Sat, 03 Jul 2021 02:49:17 -0400 Date: Sat, 03 Jul 2021 09:49:18 +0300 Message-Id: <83pmvzj3ip.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-Reply-To: <87r1gf6gwe.5.fsf@jidanni.org> (message from =?utf-8?B?56mN?= =?utf-8?B?5Li55bC8?= Dan Jacobson on Sat, 03 Jul 2021 14:38:41 +0800) Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> <87y2ao53qb.5.fsf@jidanni.org> <83sg0vj4g5.fsf@gnu.org> <87r1gf6gwe.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: 積丹尼 Dan Jacobson > Cc: 49330@debbugs.gnu.org > Date: Sat, 03 Jul 2021 14:38:41 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > EZ> You mean, what Emacs will write into the init file to save your > EZ> customizations? > > Yes. > > EZ> Why is that needed? > > So the user can be in full control. RMS knows the feeling. The user _is_ in control, you are just annoyed by the way this can be done now. > The user wants a piece of code that he can stick into his .emacs, > safe from having to fight with a robot on who can edit a file. > The user wants to put it into a file that only he is editing. See the variable custom-file, through which you can control into which file Emacs will write the customization form when you click Save. > EZ> If you want to customize your > EZ> faces in Lisp, the recommended way is to use set-face-attribute > EZ> instead, not custom-set-faces. > > OK, good. then have the snippet be a set-face-attribute snippet. > > The documentation would be: "Here is a snippet you can paste into your > .emacs file manually, if you don't feel comfortable allowing the robot > maintain your customizations." Sounds like too much effort for very little gain to me. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 10:02:26 2021 Received: (at 49330) by debbugs.gnu.org; 4 Jul 2021 14:02:26 +0000 Received: from localhost ([127.0.0.1]:42937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02hV-0000yz-Qe for submit@debbugs.gnu.org; Sun, 04 Jul 2021 10:02:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02hT-0000sL-9I for 49330@debbugs.gnu.org; Sun, 04 Jul 2021 10:02:23 -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=a7BZHbBWI0rxrfNNfHbFk2HyjM7V5Cr9EFjFiAVzqXE=; b=mZXgl0D0itCcCHa/jyJUtjSWZX VdCJIDoGctSCLV1bW/dKsRGw3xhBLDYF+cMPLgdfRq1WAnAno+Lq9n2wkxqFokXKrHPP+tGjQorey w16qPCDOnWj83gYm2IxnGmMob8eIHd2v5Xyg9JcZ7to+Es76aLZFJu3xdBKnYGVCVniw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02hL-00010q-2R; Sun, 04 Jul 2021 16:02:17 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> <87y2ao53qb.5.fsf@jidanni.org> <83sg0vj4g5.fsf@gnu.org> <87r1gf6gwe.5.fsf@jidanni.org> <83pmvzj3ip.fsf@gnu.org> X-Now-Playing: Kissing the Pink's _Naked_: "Desert Song" Date: Sun, 04 Jul 2021 16:02:14 +0200 In-Reply-To: <83pmvzj3ip.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Jul 2021 09:49:18 +0300") Message-ID: <87k0m62n4p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Sounds like too much effort for very little gain to me. Indeed, so I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Sounds like too much effort for very little gain to me. Indeed, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 10:02:31 2021 Received: (at control) by debbugs.gnu.org; 4 Jul 2021 14:02:31 +0000 Received: from localhost ([127.0.0.1]:42940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02hb-00012V-5m for submit@debbugs.gnu.org; Sun, 04 Jul 2021 10:02:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02hZ-0000xv-P3 for control@debbugs.gnu.org; Sun, 04 Jul 2021 10:02:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wVUknCq0mHh2tecd7NrFSN68tJMg2L19f1CpHTunaaY=; b=roa5Q8puOj7JdoR1G4dKvnt7Ga W8PmInbi+lkOfGL0col4c6ceoVY+XpC0CIYEbE8b9arDZWmWP35thgM27ygCFLEN/O6E+ujGDDp3H 1shvPnGGXYY8+gun/47zxgaJDtbxjaK/33Rp1t/QvQwGFjLbCPPA4NX+4D+37D0h/dN0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02hS-00010z-51 for control@debbugs.gnu.org; Sun, 04 Jul 2021 16:02:24 +0200 Date: Sun, 04 Jul 2021 16:02:21 +0200 Message-Id: <87im1q2n4i.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49330 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 49330 wontfix close 49330 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 49330 wontfix close 49330 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 08 08:28:58 2021 Received: (at 49330) by debbugs.gnu.org; 8 Jul 2021 12:28:58 +0000 Received: from localhost ([127.0.0.1]:54527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1T9G-0005NY-AC for submit@debbugs.gnu.org; Thu, 08 Jul 2021 08:28:58 -0400 Received: from bee.birch.relay.mailchannels.net ([23.83.209.14]:3519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1T94-0005NF-Tv for 49330@debbugs.gnu.org; Thu, 08 Jul 2021 08:28:57 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2B27E641E7E; Thu, 8 Jul 2021 12:28:44 +0000 (UTC) Received: from pdx1-sub0-mail-a13.g.dreamhost.com (100-96-13-112.trex.outbound.svc.cluster.local [100.96.13.112]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 50900641BD3; Thu, 8 Jul 2021 12:28:39 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a13.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.13.112 (trex/6.3.3); Thu, 08 Jul 2021 12:28:40 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Slimy-Chief: 4f0a300c23fef0e9_1625747320009_712386483 X-MC-Loop-Signature: 1625747320009:3881098929 X-MC-Ingress-Time: 1625747320009 Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 0A5E6806B1; Thu, 8 Jul 2021 12:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=ZQScqg6wr6VMVwDHxTPHzjYMwkc=; b=IrWk1OSZn8Hbg jXc5vUYTx/l1lc8elIKqu7frxwIwDq0D+opXmCFXTPZZfHqSXcHJ1VVXRLtODjjC J4wxSNLKZpLQAFB7OUpNjS1V1rhorkweIKyI41aZwsUVGSrCVtC40a4H2gUe42kL Kcn5Uc6xCHFAOPxTy1HHz1dF/NIN3Q= Received: from jidanni.org (114-41-28-173.dynamic-ip.hinet.net [114.41.28.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id 0CC598044B; Thu, 8 Jul 2021 12:28:37 +0000 (UTC) X-DH-BACKEND: pdx1-sub0-mail-a13 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#49330: Customization buffer should also offer printing code snippets References: <87y2aool7h.5.fsf@jidanni.org> <8335swk4rz.fsf@gnu.org> <87y2ao53qb.5.fsf@jidanni.org> <83sg0vj4g5.fsf@gnu.org> <87r1gf6gwe.5.fsf@jidanni.org> <83pmvzj3ip.fsf@gnu.org> Date: Thu, 08 Jul 2021 16:03:51 +0800 Message-ID: <87h7h56xlk.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> "EZ" == Eli Zaretskii writes: EZ> See the variable custom-file, through which you can control into which EZ> file Emacs will write the customization form when you click Save. Yes, and I then cut code out of .emacs-custom.el and paste it into .emacs, which I then can share with my several machines, safe from being overwritten by the robot. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.1 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.209.14 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [23.83.209.14 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 49330 Cc: 49330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) >>>>> "EZ" == Eli Zaretskii writes: EZ> See the variable custom-file, through which you can control into which EZ> file Emacs will write the customization form when you click Save. Yes, and I then cut code out of .emacs-custom.el and paste it into .emacs, which I then can share with my several machines, safe from being overwritten by the robot. EZ> If you want to customize your EZ> faces in Lisp, the recommended way is to use set-face-attribute EZ> instead, not custom-set-faces. I will never know that, as all I do is make a customization, and then take what got written, and paste it into my .emacs file. The entire idea is: 1. A file that nobody writes to except me. 2. Lines of code that, although I don't know how to write, at least I can paste them into a file fully controlled by me, and then share it to my several machines. Anyway, fine, emacs' model is everybody owns only one computer or several computers and is happy with customizations on computer A being different that those on computer B, because he never wishes to sync his .emacs etc. For me, I want to maintain one .emacs file, *by hand*, and any differences (root vs. regular user, machine name, window system, I can simply use lisp "(if ...)" to branch with. Just like web sites' share buttons offer "embed code you can paste on a web page", emacs' customization page should also offer printing code snippets. From unknown Sat Sep 20 18:41:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 06 Aug 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator