From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49330: Customization buffer should also offer printing code snippets Date: Fri, 02 Jul 2021 20:24:32 +0300 Message-ID: <8335swk4rz.fsf@gnu.org> References: <87y2aool7h.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49330@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 19:25:36 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 1lzMv2-0007Dy-BT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 19:25:36 +0200 Original-Received: from localhost ([::1]:39882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzMv1-0001ak-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 13:25:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzMuU-0000mb-Qx for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 13:25:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzMuT-00060j-Ot for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 13:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzMuT-0004iF-MR for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 13:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jul 2021 17:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49330 X-GNU-PR-Package: emacs Original-Received: via spool by 49330-submit@debbugs.gnu.org id=B49330.162524668218084 (code B ref 49330); Fri, 02 Jul 2021 17:25:01 +0000 Original-Received: (at 49330) by debbugs.gnu.org; 2 Jul 2021 17:24:42 +0000 Original-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 Original-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 Original-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 Original-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 In-Reply-To: <87y2aool7h.5.fsf@jidanni.org> 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:209333 Archived-At: > 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.