all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Suboptimal documentation of and handling of the 'fontified text property.
Date: Mon, 20 Mar 2006 01:45:29 -0500	[thread overview]
Message-ID: <87veu9ipor.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <Pine.LNX.3.96.1060316113003.351A-100000@acm.acm> (Alan Mackenzie's message of "Thu, 16 Mar 2006 12:34:08 +0000 (GMT)")

> It Would Be Nice for random.el to be able to test this property to see
> whether the font-locking is up to date.

I disagree.  Actuallt I suspect that what is needed instead is a new
function `font-lock-ensure-fontified'.  It could be based on:

(defun ps-print-ensure-fontified (start end)
  (cond ((and (boundp 'jit-lock-mode) (symbol-value 'jit-lock-mode))
	 (ps-jitify start end))
	((and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode))
	 (ps-lazify start end))))

> (iii) State that 'fontified is meaningful at all times, and set and clear
> it when no support-mode is enabled, and clear it totally when font-lock
> is disabled.

I'd rather keep this property as something used internally in jit-lock and
that nobody else should use or look at (unless they're reimplementing some
kind of alternative to jit-lock).


        Stefan

      parent reply	other threads:[~2006-03-20  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-16 12:34 Suboptimal documentation of and handling of the 'fontified text property Alan Mackenzie
2006-03-17  6:33 ` Richard Stallman
2006-03-20  6:45 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87veu9ipor.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.