From unknown Sat Jun 21 05:10:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7205: 24.0.50; Font customizations not being applied properly at startup Resent-From: Tim Van Holder Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Oct 2010 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7205@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128697094510707 (code B ref -1); Wed, 13 Oct 2010 11:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2010 11:55:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P5zvt-0002me-GA for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:55:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P5zvq-0002mY-UQ for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5zz9-0002VK-1Z for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:59:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:48343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5zz8-0002V7-PC for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:59:06 -0400 Received: from [140.186.70.92] (port=50207 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5zz3-0002wf-Lb for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 07:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5xhY-0006VP-JP for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 05:32:49 -0400 Received: from crm.anubex.com ([194.78.75.179]:56002 helo=mail.anubex.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5xhY-0006Uw-Cs for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 05:32:48 -0400 Received: from localhost (kraatos.anubex.internal [127.0.0.1]) by mail.anubex.com (Postfix) with ESMTP id 21376EBF66A; Wed, 13 Oct 2010 11:32:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at anubex.com Received: from mail.anubex.com ([127.0.0.1]) by localhost (mail.anubex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qEvy2J5RASnp; Wed, 13 Oct 2010 11:32:35 +0200 (CEST) Received: from leeloo.anubex.internal (leeloo.anubex.internal [192.168.14.202]) by mail.anubex.com (Postfix) with ESMTPS id 5BD37EBC9E5; Wed, 13 Oct 2010 11:32:35 +0200 (CEST) Received: from tim by leeloo.anubex.internal with local (Exim 4.63) (envelope-from ) id 1P5xhL-0004Qj-6V; Wed, 13 Oct 2010 11:32:35 +0200 From: Tim Van Holder Date: Wed, 13 Oct 2010 11:32:35 +0200 Message-ID: <874ocqe8uk.fsf@leeloo.anubex.internal> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) This can't be reproduced with 'emacs -Q'. I have custom-file customized as "~/.custom.el". My .emacs has (setq custom-file "~/.custom.el") (load custom-file) at the top to ensure that it gets loaded. In current bzr (r101947) this is not loading all face customizations anymore. Ediff faces in particular seem to be affected. After startup, list-faces-display shows the diff-xxx faces as their defaults, not the customized version. Eval'ing the custom-set-faces in .custom.el does update the customized colors, but values not explictly overridden remain (e.g. on diff-header, my customized version has no background color set, but the default background color is retained after the eval). Hitting [enter] in the face list for these faces takes me to a customization buffer that declares that the face is set as STANDARD. In fact, this seems to be the case for all faces, even those that do get loaded "correctly". So I tried (re)customizing a face (show-paren-match) and after saving that, .custom.el lost all the previous face customizations, replacing them with a single one: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(show-paren-match ((t (:background "Navy" :foreground "Wheat" :weight bold))))) In the original file, the entry was: '(show-paren-match ((((class color)) (:bold t :foreground "Wheat" :background "Navy")))) (both examples reformatted to fit on a mail line). So it looks like custom might not like its old format anymore, causing it to mishandle existing customizations (and even worse, completely discard them when a new customization is saved). In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2010-10-13 on leeloo Windowing system distributor `The Cygwin/X Project', version 11.0.10503000 configured using `configure '--with-x'' From unknown Sat Jun 21 05:10:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7205: 24.0.50; Font customizations not being applied properly at startup Resent-From: Tim Van Holder Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Oct 2010 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7205@debbugs.gnu.org Received: via spool by 7205-submit@debbugs.gnu.org id=B7205.128697290911765 (code B ref 7205); Wed, 13 Oct 2010 12:29:01 +0000 Received: (at 7205) by debbugs.gnu.org; 13 Oct 2010 12:28:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P60RZ-00033i-Df for submit@debbugs.gnu.org; Wed, 13 Oct 2010 08:28:29 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P60RY-00033b-4a for 7205@debbugs.gnu.org; Wed, 13 Oct 2010 08:28:28 -0400 Received: by wwb17 with SMTP id 17so1042751wwb.15 for <7205@debbugs.gnu.org>; Wed, 13 Oct 2010 05:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=wEwnCLFokmmL8f8+501Rz/jjUv+u3/DBXytk4Pg8nAk=; b=FUghAzatS0wYPuzYtJfhlTLJrbCJ3msVoym3G/uMCW792GCX06txRTg9S5+YeeSegj xASDVXx2yQt7zWlmMZbO+YqnCbavSvbL/4Kk+ZHreEnHKWNk7lTdIaHx23iog2UHXz25 ocj61jDlamltX3BCuJ/cAELxj8KCskhB8H+uM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IHn5d/yTdv0eSApYVwvcI0YCZQ8wOjbHg9EY6ZOwTP+o35A4bjAinTQPsIUkslHGc6 6aJ8UbRUjT5QIIJfaYzkjMQCsA/rLav8ernSLRV51W/rsUkbPkz+QVSihoGl5J9/l+BW kxhrMh8dgHQJHPAP9937/Jfs6doLTjIv+LuTE= MIME-Version: 1.0 Received: by 10.216.165.77 with SMTP id d55mr8278876wel.23.1286973117177; Wed, 13 Oct 2010 05:31:57 -0700 (PDT) Received: by 10.216.163.65 with HTTP; Wed, 13 Oct 2010 05:31:57 -0700 (PDT) In-Reply-To: <874ocqe8uk.fsf@leeloo.anubex.internal> References: <874ocqe8uk.fsf@leeloo.anubex.internal> Date: Wed, 13 Oct 2010 14:31:57 +0200 Message-ID: From: Tim Van Holder Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 13 October 2010 11:32, Tim Van Holder wrote: > This can't be reproduced with 'emacs -Q'. Actually, it turns out customized faces keep on being lost - it's not just my old ones. This means I have a recipe with "emacs -Q" as well: 1) emacs -Q 2) eval (setq custom-file "~/bug7205.el") 3) customize font-lock-comment-face, changing the color to "HotPink", save for future sessions 3) customize font-lock-function-name-face, changing the color to "Goldenrod", save for future sessions 4) Exit emacs At this point bug7205.el contains: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(font-lock-comment-face ((t (:foreground "HotPink")))) '(font-lock-function-name-face ((t (:foreground "Goldenrod"))))) 5) emacs -Q 6) eval (setq custom-file "~/bug7205.el") 7) eval (load-file custom-file) 8) customize font-lock-comment-face: color is HotPink, but state is STANDARD 9) customize font-lock-function-name-face: color is Goldenrod, but state is STANDARD 10) save for future sessions on font-lock-function-name-face 11) Exit emacs At this point, bug7205.el contains just the stubs - at the point of the save, Custom did not see any faces as customized, so it did not emit anything: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) From unknown Sat Jun 21 05:10:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tim Van Holder Subject: bug#7205: closed (Re: 24.0.50; Font customizations not being applied properly at startup) Message-ID: References: <874ocqe8uk.fsf@leeloo.anubex.internal> X-Gnu-PR-Message: they-closed 7205 X-Gnu-PR-Package: emacs Reply-To: 7205@debbugs.gnu.org Date: Thu, 14 Oct 2010 08:24:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1287044642-17482-1" This is a multi-part message in MIME format... ------------=_1287044642-17482-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7205: 24.0.50; Font customizations not being applied properly at startup which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7205@debbugs.gnu.org. --=20 7205: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7205 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1287044642-17482-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7205-done) by debbugs.gnu.org; 14 Oct 2010 08:23:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6J5m-0004Xg-D5 for submit@debbugs.gnu.org; Thu, 14 Oct 2010 04:23:14 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6J5k-0004Xa-3r for 7205-done@debbugs.gnu.org; Thu, 14 Oct 2010 04:23:12 -0400 Received: by wyb29 with SMTP id 29so3266116wyb.3 for <7205-done@debbugs.gnu.org>; Thu, 14 Oct 2010 01:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=wa5OPwyAEbyBv9216LiEjNhbJ335z5teFIX8x6A1tEI=; b=JXhK18+u9uNSstxQqmaWlPp8fcu38Gxat6GhChQuGHcd5HJ/lG0Dlz5gYFwwOS5ups xEebZ/3TbchQ15RQxyR7qBLcdxWhG18Fu5K/Kn2QSxkc1q55X5nPD94/iI7sw60+6Z+I Q6d/mCjVxViE8f/YTGQQy8VnZ6YYI+riQZ16I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Lf8hCbHsfgTvr9g7jOvCviJhegqPTUL/HftQrGDq4yNnsvdoH6XojrTnWxbobWSIj0 HETOW9GpnjATFuUyCIi4OsroWFvxFjcqkIyn/tqKne6xqXKaL1hcYFg8TaysEhHlunDc tstS8CPSk58kWNVyxVVR9FDkixUNMGzq2gnZw= MIME-Version: 1.0 Received: by 10.227.128.68 with SMTP id j4mr9672680wbs.52.1287044803750; Thu, 14 Oct 2010 01:26:43 -0700 (PDT) Received: by 10.216.163.65 with HTTP; Thu, 14 Oct 2010 01:26:43 -0700 (PDT) In-Reply-To: References: <874ocqe8uk.fsf@leeloo.anubex.internal> Date: Thu, 14 Oct 2010 10:26:43 +0200 Message-ID: Subject: Re: 24.0.50; Font customizations not being applied properly at startup From: Tim Van Holder To: 7205-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 7205-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Looks like this was fixed by 101960: Chong Yidong 2010-10-14 Fix 2010-10-12 change to custom-theme-set-faces. Faces are no longer lost when saving customizations, and they show up as "SAVED and set" again. ------------=_1287044642-17482-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Oct 2010 11:55:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P5zvt-0002me-GA for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:55:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P5zvq-0002mY-UQ for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5zz9-0002VK-1Z for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:59:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:48343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5zz8-0002V7-PC for submit@debbugs.gnu.org; Wed, 13 Oct 2010 07:59:06 -0400 Received: from [140.186.70.92] (port=50207 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5zz3-0002wf-Lb for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 07:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5xhY-0006VP-JP for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 05:32:49 -0400 Received: from crm.anubex.com ([194.78.75.179]:56002 helo=mail.anubex.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5xhY-0006Uw-Cs for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 05:32:48 -0400 Received: from localhost (kraatos.anubex.internal [127.0.0.1]) by mail.anubex.com (Postfix) with ESMTP id 21376EBF66A; Wed, 13 Oct 2010 11:32:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at anubex.com Received: from mail.anubex.com ([127.0.0.1]) by localhost (mail.anubex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qEvy2J5RASnp; Wed, 13 Oct 2010 11:32:35 +0200 (CEST) Received: from leeloo.anubex.internal (leeloo.anubex.internal [192.168.14.202]) by mail.anubex.com (Postfix) with ESMTPS id 5BD37EBC9E5; Wed, 13 Oct 2010 11:32:35 +0200 (CEST) Received: from tim by leeloo.anubex.internal with local (Exim 4.63) (envelope-from ) id 1P5xhL-0004Qj-6V; Wed, 13 Oct 2010 11:32:35 +0200 From: Tim Van Holder To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Font customizations not being applied properly at startup Date: Wed, 13 Oct 2010 11:32:35 +0200 Message-ID: <874ocqe8uk.fsf@leeloo.anubex.internal> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) This can't be reproduced with 'emacs -Q'. I have custom-file customized as "~/.custom.el". My .emacs has (setq custom-file "~/.custom.el") (load custom-file) at the top to ensure that it gets loaded. In current bzr (r101947) this is not loading all face customizations anymore. Ediff faces in particular seem to be affected. After startup, list-faces-display shows the diff-xxx faces as their defaults, not the customized version. Eval'ing the custom-set-faces in .custom.el does update the customized colors, but values not explictly overridden remain (e.g. on diff-header, my customized version has no background color set, but the default background color is retained after the eval). Hitting [enter] in the face list for these faces takes me to a customization buffer that declares that the face is set as STANDARD. In fact, this seems to be the case for all faces, even those that do get loaded "correctly". So I tried (re)customizing a face (show-paren-match) and after saving that, .custom.el lost all the previous face customizations, replacing them with a single one: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(show-paren-match ((t (:background "Navy" :foreground "Wheat" :weight bold))))) In the original file, the entry was: '(show-paren-match ((((class color)) (:bold t :foreground "Wheat" :background "Navy")))) (both examples reformatted to fit on a mail line). So it looks like custom might not like its old format anymore, causing it to mishandle existing customizations (and even worse, completely discard them when a new customization is saved). In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2010-10-13 on leeloo Windowing system distributor `The Cygwin/X Project', version 11.0.10503000 configured using `configure '--with-x'' ------------=_1287044642-17482-1--