From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aneesh Kumar K. V" Newsgroups: gmane.emacs.devel Subject: Re: customize-face with default and diff-added Date: Wed, 13 Oct 2010 22:11:36 +0530 Message-ID: References: <87aamijcts.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286988773 14399 80.91.229.12 (13 Oct 2010 16:52:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 16:52:53 +0000 (UTC) Cc: Emacs development discussions To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 13 18:52:51 2010 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.69) (envelope-from ) id 1P64ZK-00087B-Tt for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 18:52:47 +0200 Original-Received: from localhost ([127.0.0.1]:53315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P64ZK-0001qt-4I for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 12:52:46 -0400 Original-Received: from [140.186.70.92] (port=58927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P64Og-0002qg-Tx for emacs-devel@gnu.org; Wed, 13 Oct 2010 12:41:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P64Of-00055q-Q6 for emacs-devel@gnu.org; Wed, 13 Oct 2010 12:41:46 -0400 Original-Received: from e23smtp03.au.ibm.com ([202.81.31.145]:55450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P64Of-000553-9t for emacs-devel@gnu.org; Wed, 13 Oct 2010 12:41:45 -0400 Original-Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id o9DGbfOw025623 for ; Thu, 14 Oct 2010 03:37:41 +1100 Original-Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9DGffkd2023506 for ; Thu, 14 Oct 2010 03:41:41 +1100 Original-Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9DGfevP016654 for ; Thu, 14 Oct 2010 03:41:40 +1100 Original-Received: from skywalker.linux.vnet.ibm.com ([9.77.194.148]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o9DGfbCw016631; Thu, 14 Oct 2010 03:41:38 +1100 In-Reply-To: <87aamijcts.fsf@stupidchicken.com> User-Agent: Notmuch/0.3.1-90-g8071c5c (http://notmuchmail.org) Emacs/24.0.50.3 (i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/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:131678 Archived-At: On Wed, 13 Oct 2010 12:07:43 -0400, Chong Yidong wrote: > aneesh.kumar@linux.vnet.ibm.com (Aneesh Kumar K.V) writes: > > > So i have default face set and when i try to set a custom face for > > diff-added the default face details get removed. The default value is > > set via set default font. > > Could you be more specific about the exact steps you took? (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. '(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 128 :width normal :foundry "unknown" :family "Inconsolata"))))) I started with the above .emacs and enabled diff-mode and changed the diff-added face. That result in the default face details to be removed from the custom-set-faces above. The resulting .emacs was (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. '(diff-added ((t (:inherit diff-changed :foreground "red"))))) -aneesh