From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: set-text-properties and jit-lock-mode Date: Mon, 22 Feb 2016 09:51:44 +0100 Message-ID: References: <83d1rpn6vs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143dd183d9e19052c57f1c1 X-Trace: ger.gmane.org 1456131154 29072 80.91.229.3 (22 Feb 2016 08:52:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 08:52:34 +0000 (UTC) Cc: emacs-devel To: Alan Schmitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 22 09:52:33 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aXmDf-00073O-LW for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2016 09:51:51 +0100 Original-Received: from localhost ([::1]:47793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXmDf-0003C0-17 for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2016 03:51:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXmDa-0003Bu-Is for emacs-devel@gnu.org; Mon, 22 Feb 2016 03:51:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXmDZ-0000mQ-LY for emacs-devel@gnu.org; Mon, 22 Feb 2016 03:51:46 -0500 Original-Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:33265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXmDZ-0000mM-GV for emacs-devel@gnu.org; Mon, 22 Feb 2016 03:51:45 -0500 Original-Received: by mail-vk0-x233.google.com with SMTP id k196so124457749vka.0 for ; Mon, 22 Feb 2016 00:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WRoX0Gac7NvUKDDQMCXiqAlD3YyeqeTmtvMyJV+sUeI=; b=rIVKd/4JldZTrU7ByM70qry6sKqcKWJoSPXJ1IdwAJUVz/tXVAnNnVXbeBT7gkU/yP TVk5OhvRg+ZQ0vwbbz3agsLlkSAfoASXGE9dZJPVbDV4BMS3IFEvFs1LL9cGBn+R8Dx4 HiBCP7riJ4P+Pde2rXSkUaatNkfSuCF5lABBZ0f0RPVtb/K4/4g2M7RcZ/qtgz3YW48w sxjX5kyXEoJSuA1bcNjiUnVKa8vyj7wO5n8qDnyXvbFVyemwzC0dAJEdSMan7LGz2Q2V D2qGirguKF1fqVCJZM0Qg46COswFUZuGMYBnu2Haqqtwgt07FjfXOhlG8HEhko3Tbq5Q h+nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=WRoX0Gac7NvUKDDQMCXiqAlD3YyeqeTmtvMyJV+sUeI=; b=JJvyy7sTIXJjPaRTosAxHG4eEkMDuw4SdKM+HttPLDB5eJbqc8F5tvpapp7qut9pmN +GJYJ7isO/L21DQTM5OVjCz7ihRR60Zg6r/KkEOEqX7NVkIHq/VS8KRfyrihT3bWIh3U SHxtuLzksKOisxo0aVjWHAOoIcyr+6mglKQU+x4Rg9+VYSePCFnOepSnPPa4pWBDdMiT Xo/Sa8HOnLmOB1KH6Cd8z2yqmDqz4qGEDlBgjNqaNVg3q/2cQNn9dx4UcdfLamUJw+xt ihtgcMG8jhey8SlulpI0WCF+aMAqH86rhwHMI87kDztXIEw3r3My4wSNvT7NZHO3wHgz TIlQ== X-Gm-Message-State: AG10YOTwYxflFYzw/fvNHJLmSigrdYkwlgUyjmOAm0iEosIuwdgq0ifX9bJtodxbEG/qUKID0HuDHrO6SUEiDA== X-Received: by 10.31.138.73 with SMTP id m70mr22174618vkd.70.1456131104675; Mon, 22 Feb 2016 00:51:44 -0800 (PST) Original-Received: by 10.31.214.131 with HTTP; Mon, 22 Feb 2016 00:51:44 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200443 Archived-At: --001a1143dd183d9e19052c57f1c1 Content-Type: text/plain; charset=UTF-8 > > Is there a way to change the face that plays well with font-lock? I > tried `font-lock-append-text-property' but it did not work. > > You can set the text property `font-lock-face' instead of `face'. When `font-lock' is activated, it sets up this as a low-level alias to `face' but after that doesn't touch it. Effectively, it allows face properties defined by normal code and by font-lock to live side by side in the same buffer. -- Anders Lindgren --001a1143dd183d9e19052c57f1c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is there a way to change the face that plays wel= l with font-lock? I
tried `font-lock-append-text-property' but it did not work.

<= br>
You can set the text property `font-lock-face' instead of= `face'. When `font-lock' is activated, it sets up this as a low-le= vel alias to `face' but after that doesn't touch it. Effectively, i= t allows face properties defined by normal code and by font-lock to live si= de by side in the same buffer.

=C2=A0 =C2=A0 -- An= ders Lindgren

--001a1143dd183d9e19052c57f1c1--