From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov 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: Sat, 11 Jun 2016 19:29:54 +0300 Message-ID: <537229d1-1737-9774-1dae-77bcee915de3@yandex.ru> References: <20160607220928.GA5155@acm.fritz.box> <20160611102419.GC2776@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1465662620 13984 80.91.229.3 (11 Jun 2016 16:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2016 16:30:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 11 18:30:14 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 1bBlnZ-0004h7-4Q for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2016 18:30:13 +0200 Original-Received: from localhost ([::1]:47759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBlnY-0003ea-Bm for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2016 12:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBlnQ-0003by-FJ for emacs-devel@gnu.org; Sat, 11 Jun 2016 12:30:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBlnL-0004su-Ds for emacs-devel@gnu.org; Sat, 11 Jun 2016 12:30:03 -0400 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBlnL-0004sp-6S for emacs-devel@gnu.org; Sat, 11 Jun 2016 12:29:59 -0400 Original-Received: by mail-wm0-x230.google.com with SMTP id n184so27146862wmn.1 for ; Sat, 11 Jun 2016 09:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Eq8mWCxMU5R+XjlqT8AA+JSY9w4yAr73ZiPsar54XWI=; b=WtdZ/ZbOGwxgg3t4QW6SbL5MKB3U1Sc1KB+y+Jn9rYNKkDXPFW/GhgKonpL15V6oUl Z8pV1XLMtNZ/DvvnvtAIaAxRZmifRnh8tKPxj7TX88WcxHEt3scOz49l4y5JwJzXAHvZ 5+/2j1o7qDFA3J9qePcTZ5lSg4ChEdXkZ1viyXbAd6AdkS1XzYOKRYe3SoRbp+Lc9SCA sDMtvWE1IoDB/C4oT2sFlMQqVrqgjpRkksn+X4YvjFUmsQf+VhMs28/1Rs7jdSlURue/ +oMkbkxL6ERydZUwOpAHAn8mOzREjN2LucNf7vEjEsZQLx2M5jAvJi6VpC/Ko1ivx8mO VI+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Eq8mWCxMU5R+XjlqT8AA+JSY9w4yAr73ZiPsar54XWI=; b=lobfnSEeJQPwnYkuqnDBu6avOcCEuJW/wLD9N3Agcm8BpCCJ3tUbaNyD3GpU1O1WgK eieKAH/ztH3hXsY7ILgvORX2/FvOIi5rBw+xpEOJnVTe+dWnnnF8isMsC3EI7Zz9sKvH SW+fVdtmWFDUvpHPrMxCi2SChNBNTcZdMNaWrMducEH9QpaCdWi4csKZDaMY6Mx+AbgN vJvVWqCBOtSEETflpkJ35tojGochl5iUw7MDU+cOQxv6QtE1D4Ui2+DMmhYlmQf4V7EO ggNVYlA9oWxLTTOiok2ttPLJxsA+x0bXwJB9JHcoPCRdjaypWfsKuNyU89pnG5Ok/2zY g+ig== X-Gm-Message-State: ALyK8tIsb1ETJCi5YRo+odfMPBhYY9owKJs4U0GKMVrYLySKFGw3pE0FtvU1dWCyD248bA== X-Received: by 10.194.47.5 with SMTP id z5mr8020252wjm.41.1465662598312; Sat, 11 Jun 2016 09:29:58 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id c74sm3403072wme.1.2016.06.11.09.29.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jun 2016 09:29:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::230 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:204286 Archived-At: On 06/11/2016 06:00 PM, Stefan Monnier wrote: >> You mean, maybe something like `syntax-ppss-base' which, if non-nil, >> would be the "1". Various bits of software (mainly super modes) could >> then set or bind this to non-nil values. > > Yes, could be something like that. If we follow this path, and not hard-widen, the proposal must carefully consider the existing use cases for font-lock-dont-widen. Because if syntax-ppss always widens, even if it uses a different base for the state computation, it will undo the effect of font-lock-dont-widen (because font-lock-fontify-syntactically-region calls syntax-propertize, and that calls syntax-ppss), at least to some extent. Can we be sure that font-lock-fontify-keywords-region stays within the given limits without narrowing?