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: Bug #22983 (syntax-ppss returns wrong result) is still open. Could we fix it before the release, please. Date: Sun, 12 Jun 2016 00:06:56 -0400 Message-ID: References: <20160607220928.GA5155@acm.fritz.box> <20160611102419.GC2776@acm.fritz.box> <537229d1-1737-9774-1dae-77bcee915de3@yandex.ru> <20160611214427.GG2776@acm.fritz.box> <20160611221353.GH2776@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465704386 20728 80.91.229.3 (12 Jun 2016 04:06:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2016 04:06:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 06:06:18 2016 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 1bBwf8-0000G4-06 for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 06:06:14 +0200 Original-Received: from localhost ([::1]:49584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBwf7-0004yt-4i for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 00:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBwec-0004yo-BI for emacs-devel@gnu.org; Sun, 12 Jun 2016 00:05:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBweX-0001ER-86 for emacs-devel@gnu.org; Sun, 12 Jun 2016 00:05:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBweX-0001EN-14 for emacs-devel@gnu.org; Sun, 12 Jun 2016 00:05:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bBweT-0008Hi-0f for emacs-devel@gnu.org; Sun, 12 Jun 2016 06:05:33 +0200 Original-Received: from 45.72.244.67 ([45.72.244.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2016 06:05:32 +0200 Original-Received: from monnier by 45.72.244.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2016 06:05:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 45.72.244.67 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:ks/XubRo7yK+ROeFozOnW4P6uaw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:204302 Archived-At: >> We're talking about them because the cases where font-lock-dont-widen is >> needed are conceptually the same as those where syntax-ppss would need >> something else than 1, ..... > _Some_ of the use cases might exhibit this conceptual similarity. > Some won't. Can't think of any that won't. Some may not care (e.g. because they only use syntax-ppss and not font-lock), but I can't think of any where we'd need/want to specify different values for the various packages that could use such info. > That's entirely the Wrong Thing to do. We want syntax-ppss not to have > ugly couplings with other functions. I look at it from the exact opposite viewpoint: the packages that need to set those boundaries may not even need/want to use syntax-ppss (or font-lock) themselves, so it'd be completely wrong for them to have to set a syntax-ppss-* variable (or a font-lock-* variable). Stefan