From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.devel Subject: Re: set-text-properties and jit-lock-mode Date: Mon, 22 Feb 2016 08:38:12 +0100 Message-ID: References: <83d1rpn6vs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1456126735 23704 80.91.229.3 (22 Feb 2016 07:38:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 07:38:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 22 08:38:44 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 1aXl4t-0003sH-AR for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2016 08:38:43 +0100 Original-Received: from localhost ([::1]:47468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXl4p-0006LF-Ic for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2016 02:38:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXl4a-0006K3-T6 for emacs-devel@gnu.org; Mon, 22 Feb 2016 02:38:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXl4V-0002Zl-UQ for emacs-devel@gnu.org; Mon, 22 Feb 2016 02:38:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXl4V-0002YV-Nj for emacs-devel@gnu.org; Mon, 22 Feb 2016 02:38:19 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aXl4T-0003ZJ-Fj for emacs-devel@gnu.org; Mon, 22 Feb 2016 08:38:17 +0100 Original-Received: from charm-ecran.irisa.fr ([131.254.101.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Feb 2016 08:38:17 +0100 Original-Received: from alan.schmitt by charm-ecran.irisa.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Feb 2016 08:38:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: charm-ecran.irisa.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:msP2YZmAGzu5SOG3YayPbhhgVpQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:200442 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Eli, On 2016-02-21 21:30, Eli Zaretskii writes: >> As `set-text-properties' is a function in C, I don't know how to look at >> its source (any pointers on how to do this would be great). > > You don't need to look at its source. The documentation clearly says > that it completely replaces the property list of the specified region > with the properties you specify as its arguments. Yes, I read that. But as I was not seeing this happen, I wanted to understand why. I was wrongly assuming set-text-properties was not changing them, but if I understand your message it does change them, but they are changed back because of font-lock. >> Is it supposed not to work for faces when jit-lock is on? > > Yes. Font-lock overwrites the 'face' text properties with its own, > because it uses set-text-properties. 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. Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82 (2016-01, Mauna Loa Obs.): 402.52 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWyrrkAAoJEAQNCjtO0uXHlYgH/i9uDcLFpfX20r9+huTrHHpR qmkZJKPyuyBAw5a02GEdxOeSgFDt3pNRPTtFsklG8dDn2ert1IqX/ajuo6c8RwjI A3iDtpc+SmE+qFtA70bwihD5BWPFG3Ta3p7iFrOLRRMV+OaKqEn4FXaFevnja2IZ nODIbCV+wRjoMopW2Isdf6NeAir1QligwL2L6AiAwCbL+uuQa9C06aARE+m5cfiA R4UzFmTfNi8mvGcqXbDlx4iPzNiPoIAz/jOpNfCzybQYJ05X0QsO9pPEsmpNknbm UzfrWIrVvuxYZ1cpOBMrkPVndbmqyUJD/nUd6GR4Df++geJoJM4G3L3u0QYY/s0= =nSIn -----END PGP SIGNATURE----- --=-=-=--