From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Customizing perl array face [cperl-mode] Date: Mon, 10 Apr 2017 10:21:48 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491845001 26910 195.159.176.226 (10 Apr 2017 17:23:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Apr 2017 17:23:21 +0000 (UTC) Cc: khalil zakaria Zemmoura To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 10 19:23:16 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxd24-0006ug-Lz for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2017 19:23:16 +0200 Original-Received: from localhost ([::1]:35595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxd2A-0005WQ-Ku for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2017 13:23:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxd13-00058J-Og for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 13:22:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxd12-0001o4-IL for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 13:22:13 -0400 Original-Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxd12-0001ms-E2 for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 13:22:12 -0400 Original-Received: by mail-qk0-x235.google.com with SMTP id d131so6198841qkc.3 for ; Mon, 10 Apr 2017 10:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=a+xkHInIrs2EFAb1heMfYxtdUs+/Q9DZl72j+bwdbBc=; b=aIKcwrNHgm/QsOoPxMA/5vZb6ZeQOWUFZpB03/zzAjzN4fl9YNwwgJx+CsQduNW1Xs mmuu0Qp2irRxAsS/4o+lCGTVmDRD7QJUabpPCMWMepUhi6la/CCDYzdK6ZE5sU1MYs4m 7uUfOtVrou5yADc5x7HVS5dVSFirHZ5oAkYMK/cYRhFll44AZh1AIxyMizvtp4KGC5Lb BVABwKK4VgsGp44W+XR81mQECb4DXQpwkf37UqNUFsZQr9PeYrD+pEvdk7EPKhOdnxtG j1fy8VpUc3pG7KyLtXm2Ekv/o3y6cgai8lMiTXP80S26xotZQDxzrGhXYANLTnsfJgug SxEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=a+xkHInIrs2EFAb1heMfYxtdUs+/Q9DZl72j+bwdbBc=; b=W9Zny8GbYAOUDUfHNacRzi76IL6YbMc4eBo8NzIkY5sOR7AAruRHZF2lL6LEYOtkCO lc3yLB3bs/cr+Vg0y1qCQLEeHVuECh/uA5YOjrkf2m5hAL19QYL8augjObHiL1DF8oC0 gR3NYZsplBBi0u2r5MaMwdemK86KOjdqRI5eVzXlGSJ7QEkQwySAhS4MUSTOcmQ4YrpW U/T1cVK+nfMOh/zZUEm8bB/1zO+tBr67ZL7I0ZKpV2BSurKyq3MVJrkGo/QYppeAlWVB zA7CRn40Uey2mE315GoPaoD0IVO0cmIvT4kOxzfU50XvIU6mWLvTOBluFOSgcazWM8Hy 0UDg== X-Gm-Message-State: AFeK/H2jlADs9Jc9wmKfdFovAQovrNDV/JgJQf3f52E1urDh46U6MosTrbYCFbwA9mDgp+NgCqPZri6SyUcwLg== X-Received: by 10.55.221.8 with SMTP id n8mr44014650qki.76.1491844928842; Mon, 10 Apr 2017 10:22:08 -0700 (PDT) Original-Received: by 10.237.49.162 with HTTP; Mon, 10 Apr 2017 10:21:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112741 Archived-At: To: Subject: From: John Mastro --text follows this line-- khalil zakaria Zemmoura wrote: > I would like to get rid of the array highlight of the array in Cperl mode= , > Since i am a begginer in lisp i give you the code that customize the arra= y > face and what i did to solve my probl=C3=A8me tomporeraly: [snip] > when using the easy customization interface here what was added to my > init.el > > (custom-set-faces > '(cperl-array-face ((t (:foreground "yellow" :weight bold))))) > > when i copy this (cperl-array-face ((t (:foreground "yellow" :weight > bold)))) in my custominit.org and erase that cusom-set -face part, it don= 't > work. > I was wondering why this code works only under (custom-set-face)? `custom-set-faces' is a function that applies a list of face specs. And this: (cperl-array-face ((t (:foreground "yellow" :weight bold)))) is a face spec, where `cperl-array-face' is the name of the face and the rest specifies how that face will look. The face spec is data (a list), it doesn't do anything on its own. That's why it's quoted. > Witout using the easy customization interface, I ended setting the > cperl-dark-background to nil that way: > (cperl-dark-background nil) That doesn't seem right. The expression (cperl-dark-background nil) by itself would call a function `cperl-dark-background' with the argument nil, which won't work as there is no such function `cperl-dark-background'. It's a variable, so you would use something like (custom-set-variables '(cperl-dark-background nil)) or (setq cperl-dark-foreground nil). John