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: Thu, 13 Feb 2014 08:17:05 -0500 Message-ID: References: <87r47bi1e5.fsf@yandex.ru> <52F96284.50507@yandex.ru> <52FAE12B.6060101@yandex.ru> <52FAF761.2020801@yandex.ru> <52FB8EE3.2020905@yandex.ru> <52FC36C1.7070901@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392297450 1891 80.91.229.3 (13 Feb 2014 13:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 13:17:30 +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 14:17:38 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 1WDwAS-0007ny-AL for ged-emacs-devel@m.gmane.org; Thu, 13 Feb 2014 14:17:28 +0100 Original-Received: from localhost ([::1]:46283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwAP-0001wP-Pt for ged-emacs-devel@m.gmane.org; Thu, 13 Feb 2014 08:17:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwAF-0001wB-Hz for emacs-devel@gnu.org; Thu, 13 Feb 2014 08:17:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDwA7-0007HA-EJ for emacs-devel@gnu.org; Thu, 13 Feb 2014 08:17:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:27922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwA7-0007H3-Am for emacs-devel@gnu.org; Thu, 13 Feb 2014 08:17:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd+Gg/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJgcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFLd+Gg/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJgcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47521972" Original-Received: from 75-119-225-160.dsl.teksavvy.com (HELO pastel.home) ([75.119.225.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Feb 2014 08:17:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CEBD9600B8; Thu, 13 Feb 2014 08:17:05 -0500 (EST) In-Reply-To: <52FC36C1.7070901@yandex.ru> (Dmitry Gutov's message of "Thu, 13 Feb 2014 05:06:41 +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:169580 Archived-At: >> In many cases I'd expect the returned PPSS would be nil. > What would the nil value mean? Beginning of a new subregion? Yes, nil is the PPS state "outside of everything", e.g. at BoB. >>> 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. > Hm yes, that should work. Of course, only on positions before the current one, to avoid inf-looping. Stefan