From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-locking and inhibit-field-text-motion Date: Tue, 27 Feb 2007 22:05:44 -0500 Message-ID: References: <45E480AD.5080800@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172631969 939 80.91.229.12 (28 Feb 2007 03:06:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 03:06:09 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 28 04:06:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMF8i-0000ch-8s for ged-emacs-devel@m.gmane.org; Wed, 28 Feb 2007 04:06:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMF8i-0005mB-Da for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2007 22:06:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMF8X-0005m6-VY for emacs-devel@gnu.org; Tue, 27 Feb 2007 22:05:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMF8U-0005lq-A2 for emacs-devel@gnu.org; Tue, 27 Feb 2007 22:05:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMF8U-0005ln-8H for emacs-devel@gnu.org; Tue, 27 Feb 2007 22:05:46 -0500 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMF8T-0000vp-O8 for emacs-devel@gnu.org; Tue, 27 Feb 2007 22:05:45 -0500 Original-Received: from pastel.home ([74.12.210.227]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070228030544.XWAA1646.tomts43-srv.bellnexxia.net@pastel.home> for ; Tue, 27 Feb 2007 22:05:44 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A5A176C68D; Tue, 27 Feb 2007 22:05:44 -0500 (EST) In-Reply-To: <45E480AD.5080800@gmx.at> (martin rudalics's message of "Tue\, 27 Feb 2007 20\:04\:13 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66989 Archived-At: > 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