From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.help Subject: Re: Swap two faces Date: Thu, 18 Jul 2013 21:53:57 +0100 Message-ID: References: <87y5958wab.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374180871 32163 80.91.229.3 (18 Jul 2013 20:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 20:54:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 22:54:32 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 1UzvDc-0000jp-2k for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jul 2013 22:54:32 +0200 Original-Received: from localhost ([::1]:39632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzvDb-0005qU-Fp for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jul 2013 16:54:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzvDQ-0005qF-My for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 16:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzvDP-0003fO-9S for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 16:54:20 -0400 Original-Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:46037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzvDP-0003fG-3R for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 16:54:19 -0400 Original-Received: by mail-pd0-f182.google.com with SMTP id r10so3500812pdi.41 for ; Thu, 18 Jul 2013 13:54:17 -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:content-transfer-encoding; bh=eJztTnEY7OuIVVk7t7Q3SGGXTqFZfItgI42iiFV62O8=; b=t5QkGMZYre22+L/cjqqRpoi1J/3WcdH9bwATYHKQLJRSTBH+nmX2JLuOvghjhiBUlA Abc8yntHaMfJSuxu1COU+pTxXtnrt4sxaPEBUU5BGejEg50rncoeejESgBQTP8qO2vNl RRvY7u7zBTR2ec/nD4QFqMOBTelVeBTdpvuS7TIC44F0M6tEPFP7uAbqrBNzTaWqimrf WcAAzpbwCOutGittSTWAkb0tdaku52wgDyJRrW/0hAZuSjr9343ZBc9y++aoZmos3JGS bSA9/Kmy5Mb/W6BckwMA5CcFkwdym7J2MKk7llxB9lCKreBCj/48IlH+bJbdkISfGKZ5 W/fA== X-Received: by 10.68.114.131 with SMTP id jg3mr10144274pbb.111.1374180857879; Thu, 18 Jul 2013 13:54:17 -0700 (PDT) Original-Received: by 10.68.235.38 with HTTP; Thu, 18 Jul 2013 13:53:57 -0700 (PDT) In-Reply-To: <87y5958wab.fsf@VLAN-3434.student.uu.se> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::236 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:92242 Archived-At: Thanks, I'll try it out. According to the docstring though, it seems this function shouldn't won't swap the customization options. But maybe combined with my plist-swapping code it will, I'll try it out. Bye, Joao On Wed, Jul 17, 2013 at 8:45 AM, Emanuel Berg wrot= e: > Mr. T=E1vora writes: > >> Does anyone know a good way to swap the attribute values of two >> Emacs faces? > > Check out this function: > > (copy-face OLD-FACE NEW-FACE &optional FRAME NEW-FRAME) > > Perhaps you need a temporary face to make the switch, as well. > > -- > Emanuel Berg - programmer (hire me! CV below) > computer projects: http://user.it.uu.se/~embe8573 > internet activity: http://home.student.uu.se/embe8573 --=20 Jo=E3o T=E1vora