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: [Emacs-diffs] master 8dafacd: * lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var Date: Tue, 19 Jan 2016 04:25:27 +0300 Message-ID: <569D9087.2060803@yandex.ru> References: <20160116200607.22534.62936@vcs.savannah.gnu.org> <569B734D.2030202@yandex.ru> <569D4EDE.6080605@yandex.ru> 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 1453166743 21899 80.91.229.3 (19 Jan 2016 01:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 01:25:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 19 02:25:39 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 1aLL3C-00064N-38 for ged-emacs-devel@m.gmane.org; Tue, 19 Jan 2016 02:25:38 +0100 Original-Received: from localhost ([::1]:34419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLL3B-0001tA-FE for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2016 20:25:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLL37-0001q5-5S for emacs-devel@gnu.org; Mon, 18 Jan 2016 20:25:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLL33-0003hv-UC for emacs-devel@gnu.org; Mon, 18 Jan 2016 20:25:33 -0500 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:35700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLL33-0003ho-Kt for emacs-devel@gnu.org; Mon, 18 Jan 2016 20:25:29 -0500 Original-Received: by mail-lb0-x233.google.com with SMTP id bc4so354489501lbc.2 for ; Mon, 18 Jan 2016 17:25:29 -0800 (PST) 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-type:content-transfer-encoding; bh=6ILYchVAX79jpTEsA81W7aNB1js5jxzOrFDzmJ5U87Q=; b=isLJ3Zg0itRmPvLQ4zsE27QFAaMBJ/m1h52xoP8B2/aOFogKz88rUif4vpJgY5Xs6C 1pCcD3dcCf1JAS31GehVqYgp8yB2rUK4ViPv08NebtZn24zu2sewWfrWcv1PpYtZwe8s Dp5KagC8smy3SFnDXH8XrCEiXZ+3CT+yT/GmNl8GG20pduk1SdU09YqqL0OitxvKpNrl dee+Gy/BS1hJfAawO8cp1PxTru4IwU2xth+nlL/m6qZ1fxbE/0r/WQ071zRV96DYNU/q DB/1Q60qFtHbdKxEJ+N71zA/Q12KuTFVNdw9L7WRcm4+YwO7wHxxXK15pTYkEficqCao 1LOw== 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-type :content-transfer-encoding; bh=6ILYchVAX79jpTEsA81W7aNB1js5jxzOrFDzmJ5U87Q=; b=QnYVjJFohxvmLvm5dz35LBMqxtfLHbo+YNC1wWy1oupVSmkeQu83YTyJsSLSGBYt+a l8Mb5oLUWVGpiOINO79i6Vh2gl47saI/Aic4+UHlsc2Co/78TzFsISidKZeNPtoX3lJ9 OOh6+8UOFPlxdtxZ3yscSxaKVroSRpq1t7EkIMFttiol1WA9V37Emi8/tFxgg/eAZvZQ t2XZoolydpxm5L8X6F+9HBWi2X+i9I3I6JOv8eTJRpilLboKWhixKFfclEvJLa+SBDkl MKfOOpj06n2sPW41/wTyOJHNYxU5D4WVT0jf4QVxX/JM5UA2LtQCV/9+7WryNyoOhu6T QrPw== X-Gm-Message-State: ALoCoQnQsX6CgQ7UYBgojyoueMN5saQQXnBfvmXBYW/A9uml+sOQ4+01cAcmqDzNFcPGufHFoRpXb0r10IEUHL1PtAWmO+gt3w== X-Received: by 10.112.141.97 with SMTP id rn1mr9993236lbb.80.1453166728907; Mon, 18 Jan 2016 17:25:28 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id r202sm3616434lfr.43.2016.01.18.17.25.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 17:25:27 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Thunderbird/43.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::233 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:198325 Archived-At: On 01/19/2016 01:12 AM, Stefan Monnier wrote: >> Doesn't paren-matching code call syntax-ppss anyway? > > Not that I know, no. electric-pair-syntax-info calls syntax-ppss. blink-matching-open calls (forward-sexp -1). > Yes, this whole area is rather murky. The font-lock syntax-table should > mostly disappear (90% of the uses were to turn "_" syntax into "w" > syntax so as to be able to use \< and \>, but this has been made > obsolete by the new \_< and \_>), I think. font-lock-syntax-table should go away, yes. But it's still there. Are current-syntax-table and syntax-ppss-table allowed to differ more than that? > E.g. in TeX and HTML, we want to match parentheses even though the formal > syntax does not give any special rule to parentheses. Similar thing for > matching parens when the open and close parens are both inside comments, > but not inside the same one. Multiple major modes strike again! Or multiple syntactic regions, anyway. I'm not sure if having a different value of syntax-table (any variable) between different comments will help us any. >> But up-list uses the return value of syntax-ppss, so it will be affected by >> syntax-ppss-table? > > syntax-ppss is indeed used, but only to decide if we're strings or > comments, so it should be OK. Never for its 9th element? >> It doesn't seem easy to reason about. > > Indeed, it's not. So, I'm wondering if we could postpone introducing a new variable, and implement the same thing in nxml-mode somehow in a different way. But you've probably already considered that.