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: Sat, 03 Jul 2021 09:29:14 +0300 Message-ID: <83sg0vj4g5.fsf@gnu.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37353"; 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 Sat Jul 03 08:30:26 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 1lzZAX-0009Xc-El for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jul 2021 08:30:25 +0200 Original-Received: from localhost ([::1]:53284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzZAV-0005lK-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jul 2021 02:30:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzZAB-0005jt-E5 for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2021 02:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzZAB-0000Lb-5q for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2021 02:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzZAA-0000m4-NE for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2021 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jul 2021 06:30:02 +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.16252937602898 (code B ref 49330); Sat, 03 Jul 2021 06:30:02 +0000 Original-Received: (at 49330) by debbugs.gnu.org; 3 Jul 2021 06:29:20 +0000 Original-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 Original-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 Original-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 Original-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 In-Reply-To: <87y2ao53qb.5.fsf@jidanni.org> (message from =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson on Sat, 03 Jul 2021 14:08:28 +0800) 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:209348 Archived-At: > 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.