From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexandre LAURENT Newsgroups: gmane.emacs.help Subject: Re: Overriding some face attributes without changing the default(s) one(s) Date: Sun, 8 Jun 2014 22:23:10 +0200 Message-ID: References: <871tv05z88.fsf@web.de> <87ppikgcq7.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1402259034 19096 80.91.229.3 (8 Jun 2014 20:23:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2014 20:23:54 +0000 (UTC) Cc: Michael Heerdegen , help-gnu-emacs@gnu.org To: Alex Kost Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 08 22:23:49 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wtjd3-00045O-HH for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2014 22:23:45 +0200 Original-Received: from localhost ([::1]:57955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtjd3-0002C2-0Z for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2014 16:23:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtjcq-0002Bl-Uo for help-gnu-emacs@gnu.org; Sun, 08 Jun 2014 16:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wtjcp-0004Mv-IW for help-gnu-emacs@gnu.org; Sun, 08 Jun 2014 16:23:32 -0400 Original-Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:53528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtjcp-0004Mm-Eo for help-gnu-emacs@gnu.org; Sun, 08 Jun 2014 16:23:31 -0400 Original-Received: by mail-qa0-f49.google.com with SMTP id w8so153946qac.8 for ; Sun, 08 Jun 2014 13:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WdL/S6wgoI6ZYAoJ2zCme4tkA5RmUTmx9ihy43STtdE=; b=Res9qN2sDx0Rlvi1/KHHmv5j/kGSHRviaCTXaHiuk0NrLtJPnBx1AF83v2xkgCZEgH DWwIy0tN9x2bw9H6AWULxkvNNSnvzN9F6K+VO7scloq5Y96hIXPFUiUhAT0YZPjGxs/1 cOfTfsNQK+YzZ51Rf/St1Pk3aaqnYxFMjbICeYzBAeqfyexmm5Gp4Nehb+2U8fxPsTec INZM1cMOx/nxq1UR2qqUDg8iDU0FSDz8T0RIJT0HFVYh5eSiL6cGUB3Cp2uxT9Ge1cr4 9mDwmhlzCPQad1FMBXHaWA+MKKppTI2zUE5eq0yC/jbwiOwhhA1F31nw/7p7jeyhx1p4 Srgg== X-Received: by 10.224.68.2 with SMTP id t2mr27305589qai.71.1402259010938; Sun, 08 Jun 2014 13:23:30 -0700 (PDT) Original-Received: by 10.140.107.131 with HTTP; Sun, 8 Jun 2014 13:23:10 -0700 (PDT) In-Reply-To: <87ppikgcq7.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98102 Archived-At: On Sun, Jun 8, 2014 at 8:02 AM, Alex Kost wrote: > > The problem is that in emacs 24.3.1 default face specifications are > merged with the face specifications defined by a theme, so what you see > is a "bold" defined by your theme and the bits from a default spec. In > emacs 24.4 (and in the current trunk) your theme would work as expected: > if a face is themed, then the default spec is ignored completely. > > If you want to make emacs 24.3.1 display only themed faces, you have to > override all the bits of the default spec in your theme (which sounds > horrible IMO), so for example the following should "free" your Yes it is horrible, I wanted to avoid that. > background: > > (custom-theme-set-faces > 'monokai-nox > ;; ... > '(whitespace-line ((t (:background unspecified :weight bold)))) Actually, setting the foreground to unspecified does not work either. I'm pretty sure it takes the "default" face and this face only, which is different from the multiple faces applied when opening a source file (no matter what that source file is). I also define this default face in both my themes. > ;; ... > ) > > If you are interested, I wrote something about that here: > > > Also there were some related bugs, for example: > > > I hope it was helpful. Yes it is! Since I definitely need emacs24.4 for some other features/fix (ex: the rectangular region to be visually highlighted), I'll just wait for the package to be available on my distro. Thank you. -- Alexandre LAURENT