From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Sat, 14 Jul 2007 18:32:58 -0400 Message-ID: References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1184452340 12924 80.91.229.12 (14 Jul 2007 22:32:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2007 22:32:20 +0000 (UTC) Cc: david.reitter@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 15 00:32:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I9q9y-0002eg-QX for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 00:32:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9q9y-0006F0-8V for ged-emacs-devel@m.gmane.org; Sat, 14 Jul 2007 18:32:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I9q9u-0006Ep-P1 for emacs-devel@gnu.org; Sat, 14 Jul 2007 18:32:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I9q9u-0006Eb-BL for emacs-devel@gnu.org; Sat, 14 Jul 2007 18:32:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9q9u-0006EX-4t for emacs-devel@gnu.org; Sat, 14 Jul 2007 18:32:14 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I9q9t-0001H3-Rf for emacs-devel@gnu.org; Sat, 14 Jul 2007 18:32:13 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I9qAc-0006YL-FX; Sat, 14 Jul 2007 18:32:58 -0400 In-reply-to: (message from Stefan Monnier on Fri, 13 Jul 2007 21:21:46 -0400) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74789 Archived-At: > I think it has to be done when the frame is created > because there is no chance to do it later. How 'bout doing it earlier: i.e. share faces between all similar frames? If there were no such thing as the functions set-face-XYZ, that would work. Those functions can be used to specify face attributes in a single frame. If you copy the faces from another similar frame, then you'd get the wrong results if those functions were previously used to change certain faces in that frame. It could be that those functions are not a very useful feature and should be eliminated. We can ask whether any Lisp packages outside Emacs really use them. Another problem case is where you reevaluate an edited defface. What was right on a similar frame now is not going to be right in the future. I am sure it is possible to take account of these things in implementing new face initialization code. The current code checks every possible X resource setting for every face. Why not list the resources instead and interpret them? That is true, but you still face the issues listed above if you want to copy face attributes from another frame.