From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: generic buffer parsing cache data Date: Sun, 1 Jul 2007 23:44:09 +0300 Message-ID: <200707012344.10255.pogonyshev@gmx.net> References: <200707010038.23072.pogonyshev@gmx.net> <200707011649.32728.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183321822 4938 80.91.229.12 (1 Jul 2007 20:30:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2007 20:30:22 +0000 (UTC) Cc: martin rudalics , Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 22:30:21 2007 connect(): Connection refused 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 1I563h-0000Lp-E3 for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 22:30:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I563g-0002zq-Gz for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 16:30:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I563b-0002wS-Dr for emacs-devel@gnu.org; Sun, 01 Jul 2007 16:30:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I563Z-0002uK-4K for emacs-devel@gnu.org; Sun, 01 Jul 2007 16:30:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I563Z-0002uH-08 for emacs-devel@gnu.org; Sun, 01 Jul 2007 16:30:05 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I563Y-0003zW-HH for emacs-devel@gnu.org; Sun, 01 Jul 2007 16:30:04 -0400 Original-Received: (qmail invoked by alias); 01 Jul 2007 20:30:03 -0000 Original-Received: from unknown (EHLO [80.94.234.57]) [80.94.234.57] by mail.gmx.net (mp019) with SMTP; 01 Jul 2007 22:30:03 +0200 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX18yGSQHZrEyKTsiIhdEM27mtrCyHhSeXQ9awQJe34 RfaqbvqlA6KhNS User-Agent: KMail/1.7.2 In-Reply-To: Content-Disposition: inline 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:74142 Archived-At: Stefan Monnier wrote: > IIUC you're not proposing a standard generic cache, but a generic library to > manage one's own cache. So the caching policy (at what kind of interval to > keep records of it, etc...) can be chosen freely, and also so that it can be > used indifferently by major modes, minor modes, etc... More or less. What is `standard' about it is that invalidation should be done in efficient manner by Emacs core. Is there any way to easily check where `parse-partial-sexp' caches its data? Just to easily see if it is already suitable for what modes would need. Paul