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: set-text-properties and jit-lock-mode Date: Sun, 21 Feb 2016 19:02:31 +0100 Message-ID: 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 1456077785 21089 80.91.229.3 (21 Feb 2016 18:03:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 18:03:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 21 19:02:56 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 1aXYLP-00010z-Va for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 19:02:56 +0100 Original-Received: from localhost ([::1]:42955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXYLP-0001oO-5i for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 13:02:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXYLL-0001kq-7w for emacs-devel@gnu.org; Sun, 21 Feb 2016 13:02:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXYLI-0003ou-2q for emacs-devel@gnu.org; Sun, 21 Feb 2016 13:02:51 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXYLH-0003oR-SF for emacs-devel@gnu.org; Sun, 21 Feb 2016 13:02:48 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aXYLF-0000r0-4F for emacs-devel@gnu.org; Sun, 21 Feb 2016 19:02:45 +0100 Original-Received: from cbg35-2-78-242-14-140.fbx.proxad.net ([78.242.14.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2016 19:02:45 +0100 Original-Received: from alan.schmitt by cbg35-2-78-242-14-140.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2016 19:02:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cbg35-2-78-242-14-140.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:4f7rBC8hE82UZ+kp79oj4DLwwTg= 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:200393 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm tracking down a bug in ledger-mode and I'm now at the point where I think I need some help about some emacs core code. The problem: if jit-lock-mode it t, then using set-text-properties to change the face does not work. To reproduce: start emacs with -Q. In the scratch buffer, type "foo". Then evaluate: (set-text-properties 192 195 (list 'face 'italic)) Nothing changes, and when I do a `describe-char' on one letter of "foo" I don't see the face. If I then evaluate (setq jit-lock-mode nil) (set-text-properties 192 195 (list 'face 'italic)) then I see the face change to italic, confirmed by `describe-char'. 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). Is it supposed not to work for faces when jit-lock is on? 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 iQEcBAEBCgAGBQJWyfu4AAoJEAQNCjtO0uXHjLMIAKUgznHkjJ0Ef8SKACa/FInU U5MrxVVeiq09m3zGrTRAg1vpYNWEDAmqHc0QzQA+Bug/dlXj7Katlnr6VpfAW6B2 Cb7WROD4743JePb5krz6g5W+4rfHucox+LbTovOufiL7guOnUFgxaJ4ouaVgLQN9 cFDIcyqdEQ0LIIaszgxG7cDv0AxJ/uTgpWzVEdGQCeVxiKgY6Yk79N4etCXTA+ws i+ayx1ZC3q1WFNVUMQ+8fkd3wktaqYpRLo/+GQzHUGpwRUum5GTPqoK069yoYt1R vnVvwoSbn9uiqDlWPjziqviciuGvK1/dNQI9QXpWnfqltWQx6HHHM8zZpAR7XJE= =L/sz -----END PGP SIGNATURE----- --=-=-=--