From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: my-calculate-indent function Date: Fri, 20 Apr 2007 12:21:54 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <874pnbzsxp.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177036561 13438 80.91.229.12 (20 Apr 2007 02:36:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 02:36:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 04:35:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HeiyY-0002Hb-O1 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 04:35:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hej3Z-0002I2-24 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 22:41:05 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-03!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:xR9v56Ypj19rzQI9tIoRrFWW8RE= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 20 Original-Xref: shelby.stanford.edu gnu.emacs.help:147241 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42845 Archived-At: Stefan Monnier writes: > > PS: In Emacs<22, parse-partial-sexp can give you that info instead of > syntax-ppss. As I understand it syntax-ppss parses the whole file (but uses a caching system to improve performance). Am I right in assuming parse-partial-sexp under emacs 22 would achieve a similar result, but more efficiently and without the caching stuff as it only parses a part of the file? Just interested as a new mode I've been working on is using syntax-ppss, which seems find given my hardware and size of the files I'm typically working on, but at the time of writing, I did have a small concern regarding how well the approach would work on large input files. Tim -- tcross (at) rapttech dot com dot au