From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: feature request: text property to prevent font-locking Date: Sat, 30 Aug 2014 23:34:28 +0200 Message-ID: <87wq9pirvf.fsf@zigzag.favinet> References: <20140830092701.GA3351@acm.acm> <34f3e246-bbfb-4864-83e9-4a0c81d4202e@default> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1409434273 24853 80.91.229.3 (30 Aug 2014 21:31:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 21:31:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 30 23:31:06 2014 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 1XNqEj-0004XC-4B for ged-emacs-devel@m.gmane.org; Sat, 30 Aug 2014 23:31:05 +0200 Original-Received: from localhost ([::1]:47816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNqEi-0003wg-Gp for ged-emacs-devel@m.gmane.org; Sat, 30 Aug 2014 17:31:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNqEa-0003vj-ST for emacs-devel@gnu.org; Sat, 30 Aug 2014 17:31:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNqEV-0003hP-8B for emacs-devel@gnu.org; Sat, 30 Aug 2014 17:30:56 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:63214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNqEU-0003hK-Tg for emacs-devel@gnu.org; Sat, 30 Aug 2014 17:30:51 -0400 Original-Received: from zigzag.favinet (82.58.5.108) by smtp209.alice.it (8.6.060.28) id 53CC42A1065D453E for emacs-devel@gnu.org; Sat, 30 Aug 2014 23:30:49 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1XNqIK-0004Zj-9p for emacs-devel@gnu.org; Sat, 30 Aug 2014 23:34:48 +0200 In-Reply-To: <34f3e246-bbfb-4864-83e9-4a0c81d4202e@default> (Drew Adams's message of "Sat, 30 Aug 2014 13:15:46 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.105 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:173914 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Drew Adams () Sat, 30 Aug 2014 13:15:46 -0700 (PDT) But since your reply is the only one so far, Alan, I conclude so far that there is no special interest in this -the problem or the proposed solution. Maybe it takes a while for answers to arrive. As you point out, font-lock must self-gate in some manner, especially to avoid doing useless re-work. Have you looked at the source? A brief dive shows me that =E2=80=98font-lock-mode=E2=80=99 docstring mentions =E2=80=98font-lock-fontify-buffer=E2=80=99 which calls =E2=80=98font-lock-fontify-buffer-function=E2=80=99 which has the value =E2=80=98jit-lock-refontify=E2=80=99 (for me), which calls =E2=80=98put-text-property=E2=80=99 w/ property name =E2=80=98fontified=E2=80=99 and property value =E2=80=98nil=E2=80=99 suggesting that property =E2=80=98fontified=E2=80=99 w/ non-=E2=80=98nil=E2= =80=99 value is what jit-lock must do as testimony of its work. Now, that took all of two minutes. The next twenty or two-hundred (if i were lucky enough to have them available) would be to understand what weirdness must mar this simple model. Maybe you can do that? Regardless, i like the straightforward =E2=80=98font-lock-ignore=E2=80=99 m= ethod you demo. It would be nice to have that level of friendliness in Emacs (and documented!). =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlQCQ24ACgkQZwMiJEyAdQJNOgCcD3flYTxky6A9/z9FGpFGrdWk M+IAn0G2aJXnuRApQTOLHtk3Vb2IADo1 =GBMv -----END PGP SIGNATURE----- --=-=-=--