From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: generic buffer parsing cache data Date: Sun, 01 Jul 2007 14:38:24 +0200 Message-ID: <4687A040.8030808@gmx.at> References: <200707010038.23072.pogonyshev@gmx.net> <468794AB.20401@gmx.at> <200707011516.31959.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183293466 24026 80.91.229.12 (1 Jul 2007 12:37:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2007 12:37:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 14:37:43 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 1I4ygQ-0004OB-H3 for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 14:37:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4ygP-0001Aa-Sv for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 08:37:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4ygM-00017R-AM for emacs-devel@gnu.org; Sun, 01 Jul 2007 08:37:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4ygK-00015O-Nw for emacs-devel@gnu.org; Sun, 01 Jul 2007 08:37:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4ygK-00015G-Ht for emacs-devel@gnu.org; Sun, 01 Jul 2007 08:37:36 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I4ygJ-0000sR-Me for emacs-devel@gnu.org; Sun, 01 Jul 2007 08:37:36 -0400 Original-Received: (qmail invoked by alias); 01 Jul 2007 12:37:34 -0000 Original-Received: from N766P005.adsl.highway.telekom.at (EHLO [62.47.39.165]) [62.47.39.165] by mail.gmx.net (mp047) with SMTP; 01 Jul 2007 14:37:34 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19IhXI1xZlIRedSO2JV8KeXdN/rqvmwU/DhxXQlBn LXLpAqNM3cBbHK User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <200707011516.31959.pogonyshev@gmx.net> X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:74098 Archived-At: > I propose to add something generic. For instance, Python mode needs to > know indentation level of blocks. It seems that `syntax-ppss` doesn't > return it at all. And adding everything that might ever be needed by > some XYZ mode seems counter-productive and complicates an already complex > function and its return value. > > I just mean that major modes can have needs beyond that suited by > `syntax-ppss`. And as far as I can see, they can either parse half of > the buffer each time they need something, or invent some ad-hoc custom > code for caching such data. Like `c-state-cache'. Well, `syntax-ppss' can only do whatever `parse-partial-sexp' does. Occasionally, that's not even sufficient for the Elisp case (look how `lisp-font-lock-syntactic-face-function' strives for detecting doc-strings). I'd appreciate if you came up with something more "generic" (if you just could give a clear description of that term).