all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* font-locking and inhibit-field-text-motion
@ 2007-02-27 19:04 martin rudalics
  2007-02-28  3:05 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2007-02-27 19:04 UTC (permalink / raw)
  To: emacs-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: font-locking and inhibit-field-text-motion
  2007-02-27 19:04 font-locking and inhibit-field-text-motion martin rudalics
@ 2007-02-28  3:05 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2007-02-28  3:05 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-devel

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-28  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-27 19:04 font-locking and inhibit-field-text-motion martin rudalics
2007-02-28  3:05 ` Stefan Monnier

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.