From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#49330: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28921"; mail-complaints-to="usenet@ciao.gmane.io" To: 49330@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 17:55:12 2021 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 1lzLVX-0007JQ-Ss for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 17:55:12 +0200 Original-Received: from localhost ([::1]:41342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzLVW-00013v-QX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 11:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLVO-00013f-7z for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzLVO-0001cn-0d for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzLVN-00067q-Sf for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jul 2021 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49330 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162524125923453 (code B ref -1); Fri, 02 Jul 2021 15:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2021 15:54:19 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 Original-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 Original-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= Original-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 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-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:209327 Archived-At: 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".