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: Thu, 08 Jul 2021 16:03:51 +0800 Message-ID: <87h7h56xlk.5.fsf@jidanni.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49330@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 08 14:34:38 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 1m1TEf-000AEJ-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jul 2021 14:34:37 +0200 Original-Received: from localhost ([::1]:53006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1TEe-00028q-SO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jul 2021 08:34:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1T9K-0001dl-A4 for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2021 08:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1T9K-0000Ve-2X for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2021 08:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1T9J-0005Np-Rd for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2021 08:29:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87y2aool7h.5.fsf@jidanni.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: Thu, 08 Jul 2021 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49330 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 49330-submit@debbugs.gnu.org id=B49330.162574733820684 (code B ref 49330); Thu, 08 Jul 2021 12:29:01 +0000 Original-Received: (at 49330) by debbugs.gnu.org; 8 Jul 2021 12:28:58 +0000 Original-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 Original-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 Original-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) Original-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 Original-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 Original-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= Original-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 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:209667 Archived-At: >>>>> "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.