From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Not To Miss Newsgroups: gmane.emacs.help Subject: Re: defface programmatically with less redundancy Date: Sun, 21 Jul 2013 23:50:25 -0600 Message-ID: References: <8d4dc110-b5e6-417c-bcd0-98d3974765ec@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1374472288 18058 80.91.229.3 (22 Jul 2013 05:51:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 05:51:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 07:51:30 2013 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 1V191n-0007bb-SS for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 07:51:23 +0200 Original-Received: from localhost ([::1]:49476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V191n-0008KY-Gb for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 01:51:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V191a-0008KT-VP for help-gnu-emacs@gnu.org; Mon, 22 Jul 2013 01:51:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V191X-0007X1-65 for help-gnu-emacs@gnu.org; Mon, 22 Jul 2013 01:51:10 -0400 Original-Received: from mail-vc0-x229.google.com ([2607:f8b0:400c:c03::229]:46694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V191X-0007Wx-0l for help-gnu-emacs@gnu.org; Mon, 22 Jul 2013 01:51:07 -0400 Original-Received: by mail-vc0-f169.google.com with SMTP id ib11so2793783vcb.0 for ; Sun, 21 Jul 2013 22:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=y+0a0UCblYyb7xcpqhumpZ3yZnPFveMvrQ+ELbL/Iso=; b=kt4aLYVam6EkGTbXMK+uLDljkohxfr/VyUI77aknXUVieZaXNBvkEgJxrbHa/cNYXO REYRKItwT47g/DpmJD4jkTkA5bGsEIS0/9w81ySbroHzoFCcb5fiNqAzm6/LnFxncqO8 6CGCsEF+EGdDgG3kJ7JPLstW/zSVtRWm9qV20UnUC3peTfsDfXAS9PH2f17mCcikF5Uc +0cZgkuMPZlRGI84wtOdbIo75Ki1KKjXcP+ahIpSHoc3+E1wzD+mquAXRJfZ0l5EFO0q Fu152HC+VzvR9lIFyPeDL0arzvMwHEqEZ/+tXfkRjQcY5eZvDz3S8qxJBJNRui/XJ0sO vZUw== X-Received: by 10.52.163.46 with SMTP id yf14mr7334690vdb.58.1374472265897; Sun, 21 Jul 2013 22:51:05 -0700 (PDT) Original-Received: by 10.220.237.10 with HTTP; Sun, 21 Jul 2013 22:50:25 -0700 (PDT) In-Reply-To: <8d4dc110-b5e6-417c-bcd0-98d3974765ec@default> X-Google-Sender-Auth: Mx8qi3BwVKFXzY2JpRw4cjWCvYQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:92306 Archived-At: Thanks, Drew. I saw you answers in stackoverflow too. For others' info, defmacro is sweet to use in this case - another answer in stackoverflow. On Sun, Jul 21, 2013 at 11:24 AM, Drew Adams wrote: > > http://stackoverflow.com/questions/17768561/defface-with-less-redundancy > > make-face is not at all deprecated, AFAICT. > > defface can make use of inheritance -- see face attribute :inherit. Dunno > whether that helps in your particular context. >