From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Advising in cc-awk.el and namespace Date: Thu, 17 Jul 2003 19:55:15 -0400 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: References: <200307111735.h6BHZaZO023544@rum.cs.yale.edu> <200307161528.h6GFSeVB025808@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1058486127 23590 80.91.224.249 (17 Jul 2003 23:55:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2003 23:55:27 +0000 (UTC) Cc: monnier+gnu/emacs/pretest@cs.yale.edu, acm@muc.de, bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Fri Jul 18 01:55:24 2003 Return-path: Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list2.sourceforge.net) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19dIaq-00068D-00 for ; Fri, 18 Jul 2003 01:55:24 +0200 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19dIc8-0006Fn-00; Thu, 17 Jul 2003 16:56:44 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19dIak-00049d-00 for ; Thu, 17 Jul 2003 16:55:19 -0700 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19dIah-0005Km-AN; Thu, 17 Jul 2003 19:55:15 -0400 Original-To: "Stefan Monnier" In-reply-to: <200307161528.h6GFSeVB025808@rum.cs.yale.edu> (monnier+gnu/emacs/pretest@cs.yale.edu) Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Unsubscribe: , List-Archive: X-Original-Date: Thu, 17 Jul 2003 19:55:15 -0400 Xref: main.gmane.org gmane.emacs.cc-mode.general:676 gmane.emacs.devel:15649 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15649 The only problem for is that we don't really have that info right now. The only thing that jit-lock knows is whether to do the "contextual refontification" or not. Font-lock and syntax.el know a little bit more, in that they know how to find the previous start-of-defun, but not the next one (although depending on the value of font-lock-beginning-of-syntax-function and/or syntax-begin-function, the next-start-of-defun can be inferred). It won't be hard to add a function for them to call to find the next start-of-defun. In most cases, pretty much the same code that finds te previous start-of-defun can be used to find the next one. If that's enough to make jit-lock much more efficient in most cases, how about doing it? ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0