From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: forward-comment and syntax-ppss Date: Sat, 17 Dec 2016 10:38:23 -0500 Message-ID: References: <83fd1db0-7362-6117-c5cd-715398c0dea4@gmail.com> <20161207220447.GA4503@acm.fritz.box> <20161208201517.GB3120@acm.fritz.box> <20161209190747.GC2203@acm.fritz.box> <5a70902f-882e-f616-74b2-df6eb81fc70c@yandex.ru> <20161211101715.GA14084@acm.fritz.box> <51c0554f-40d0-37a5-b134-17058343aa3f@yandex.ru> <20161216200630.GB3858@acm.fritz.box> <83r3576lxs.fsf@gnu.org> <838tre7gqt.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481989127 21175 195.159.176.226 (17 Dec 2016 15:38:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2016 15:38:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 17 16:38:43 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIH4K-0004Lr-9c for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2016 16:38:40 +0100 Original-Received: from localhost ([::1]:37052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIH4O-0003NL-OW for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2016 10:38:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIH4I-0003Hw-Ks for emacs-devel@gnu.org; Sat, 17 Dec 2016 10:38:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIH4F-0002Gj-Hd for emacs-devel@gnu.org; Sat, 17 Dec 2016 10:38:38 -0500 Original-Received: from [195.159.176.226] (port=57676 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cIH4F-0002GE-9p for emacs-devel@gnu.org; Sat, 17 Dec 2016 10:38:35 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cIH47-0002Ka-JN for emacs-devel@gnu.org; Sat, 17 Dec 2016 16:38:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:MtocRgcoMLGpKngkCiWYypuEcmU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:210587 Archived-At: > Also, just when would widening or narrowing be "not permissible"? Good question. AFAIK this question (and other similar) is the fundamental issue w.r.t when should syntax-ppss (or any replacement there of) use point-min and when it should use something else. My tentative answer is simply "when the code that installed this narrowing said so". This said, another option is to declare that such are misuses of narrowing (like Lars suggests) and then use some other way to indicate which "buffer start" position to use in syntax-ppss. As a matter of fact that's consistent with what I advocated back in the "indentation-context" discussion (and was then implemented and later removed). Stefan