[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-locking and inhibit-field-text-motion
From: |
Stefan Monnier |
Subject: |
Re: font-locking and inhibit-field-text-motion |
Date: |
Tue, 27 Feb 2007 22:05:44 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) |
> I noticed that neither font-lock's `save-buffer-state' nor jit-lock's
> `with-buffer-prepared-for-jit-lock' bind `inhibit-field-text-motion'.
> Yet both, font-lock and jit-lock, use `line-beginning-position'.
> Just a casual, probably paranoid observation. I don't use fields.
I don't think it's a problem. The use of line-beginning-position in that
code is only a heuristic. It may lead to surprising results in some cases,
but nothing terrible (and it may also be a feature sometimes).
Maybe we should rethink it after Emacs-22, but for now it's OK.
Stefan