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: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch Date: Wed, 12 Feb 2014 19:13:35 -0500 Message-ID: References: <87r47bi1e5.fsf@yandex.ru> <52F96284.50507@yandex.ru> <52FAE12B.6060101@yandex.ru> <52FAF761.2020801@yandex.ru> <52FB8EE3.2020905@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392250434 16847 80.91.229.3 (13 Feb 2014 00:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 00:13:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 13 01:14:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDjwG-0005rL-PS for ged-emacs-devel@m.gmane.org; Thu, 13 Feb 2014 01:14:00 +0100 Original-Received: from localhost ([::1]:42234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDjwG-0004jK-B0 for ged-emacs-devel@m.gmane.org; Wed, 12 Feb 2014 19:14:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDjvz-0004Zq-WF for emacs-devel@gnu.org; Wed, 12 Feb 2014 19:13:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDjvs-000812-MR for emacs-devel@gnu.org; Wed, 12 Feb 2014 19:13:43 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:53119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDjvs-00080y-J4 for emacs-devel@gnu.org; Wed, 12 Feb 2014 19:13:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpaAU/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYHCxQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFFpaAU/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYHCxQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47484143" Original-Received: from 69-165-160-20.dsl.teksavvy.com (HELO pastel.home) ([69.165.160.20]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Feb 2014 19:13:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5D0EC605CB; Wed, 12 Feb 2014 19:13:35 -0500 (EST) In-Reply-To: <52FB8EE3.2020905@yandex.ru> (Dmitry Gutov's message of "Wed, 12 Feb 2014 17:10:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169572 Archived-At: >> I don't understand the problem. Of course your hook would return >> a completely different PPSS to use along with the new buffer position >> from where to start parsing. > How would it calculate the returned PPSS? In many cases I'd expect the returned PPSS would be nil. > And the hook won't have access to earlier cached values. I don't see any reason why the hook wouldn't be able to call syntax-ppss recursively. Stefan