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: Problems with syntax-ppss Date: Fri, 04 Apr 2008 16:24:10 -0400 Message-ID: References: <20080404172627.GB4804@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207340671 20235 80.91.229.12 (4 Apr 2008 20:24:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 20:24:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 22:25:03 2008 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 1JhsT1-0001J6-Kh for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 22:24:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhsSO-0000da-NG for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 16:24:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhsSL-0000dJ-P2 for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:24:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhsSJ-0000cA-Pg for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:24:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhsSJ-0000bw-GU for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:24:11 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhsSJ-0005Gg-9A for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:24:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgCALcr9kfO+J/WdGdsb2JhbACBWo9zASqaFQ X-IronPort-AV: E=Sophos;i="4.25,606,1199682000"; d="scan'208";a="17843003" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 04 Apr 2008 16:24:10 -0400 Original-Received: from pastel.home ([206.248.159.214]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id KYC87910; Fri, 04 Apr 2008 16:24:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8EF3A872B; Fri, 4 Apr 2008 16:24:10 -0400 (EDT) In-Reply-To: <20080404172627.GB4804@muc.de> (Alan Mackenzie's message of "Fri, 4 Apr 2008 17:26:27 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:94374 Archived-At: > But if I widen the buffer first, what happens to syntax-ppss's cache? > Is this just discarded, or are perhaps two caches maintained (one from > BOB, the other from the current (or most recent) (point-min)? > Advice, please! I strongly recommend to always call syntax-ppss in a widened buffer. Stefan PS: Except of course for buffers like RMAIL or Info which are really a combination of sub-documents.