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: Syntax tables for multiple modes [was: bug#22983: syntax-ppss returns wrong result.] Date: Mon, 21 Mar 2016 23:12:34 +0200 Message-ID: References: <87egb5cpmg.fsf@gmail.com> <87a8lsd4j3.fsf@gmail.com> <87twk0beuh.fsf@gmail.com> <877fgvgbr1.fsf@gmail.com> <87fuvjeq9g.fsf@gmail.com> <20160321203358.GB3641@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 1458594779 7003 80.91.229.3 (21 Mar 2016 21:12:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 21:12:59 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Alan Mackenzie , Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 22:12:58 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 1ai784-0006Hk-22 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 22:12:48 +0100 Original-Received: from localhost ([::1]:60526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai783-0003FD-8A for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 17:12:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai77x-0003Eu-W0 for emacs-devel@gnu.org; Mon, 21 Mar 2016 17:12:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai77t-0000po-UU for emacs-devel@gnu.org; Mon, 21 Mar 2016 17:12:41 -0400 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:36605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai77t-0000ph-NP for emacs-devel@gnu.org; Mon, 21 Mar 2016 17:12:37 -0400 Original-Received: by mail-wm0-x231.google.com with SMTP id r129so67368363wmr.1 for ; Mon, 21 Mar 2016 14:12:37 -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=cXGB2Psq6onN7vQ7/glUJ/ttch0S313SqeSYCP4A3xY=; b=BrTj2ngqiA5cW3VBDc4d0nsM0hOFDk76Bm59ua1gS7nFuzzMaOHFfodZPM8UE8TMDs I6cb2BKW1XYPssJFgd1d1GeiqMec7gc5sRb6/nuTviBzrNosZaCLajrvNwtFwugEr4bA 5rT05WbS5FwGCCyC3gwnYeOHlKh0ubUdAlfSPt/1UcqbPpsGs0188QmvOXSsynzH/ikW bAD9RmM8pKvCgIn/GkMT4fNfkm55Bx5X5c78T33pwF9BJgGZI9n4Xp3HzoDrt8Wx5u2a Y507/rbKyzhIHDMhEKdTmiqhkEXEavqHHTFlT6Bwnu0W49X7yfOkK7JKJwpjLX4nmx9K FVsw== 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=cXGB2Psq6onN7vQ7/glUJ/ttch0S313SqeSYCP4A3xY=; b=OYfmigD2zaCW0wb+WVyS4LR2iSTxQLNyO4QKJYPEWNNAOp7avDnDrTHs5fRIA/FaL2 O8kIRKYPXko73dQAAvPK/DDoJj/PAgqAHvlx7HkwRqc9PQHBGnCgLjxC913jorg+9URR Qhto0xsqAAJVxAJo6wXWpn6+KKymGWGxQZjyc9/ONeobJybBrn75ZQJCPR0MmaKqQ1lF ob4gqoYPzz5u7vt8yhiTZ2yxZSqtqR1cBsJjUjAa79413u1y+fsFG3l/WwjDsGIXHsfB sjTpTSowZoaE8QCqD4rIFW5WMRoH/1JatSJdgcY/+gVF3RUUyTW4NOXfahc4EaK4VxlY +/mA== X-Gm-Message-State: AD7BkJJL0i3Axor9ApZJ2DTFN/O4v6hwjCGuLdjdHDvlzuzOK/W6933hprrKCffG1ahZ5A== X-Received: by 10.194.120.99 with SMTP id lb3mr37475026wjb.59.1458594757107; Mon, 21 Mar 2016 14:12:37 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id v5sm14115310wmg.16.2016.03.21.14.12.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2016 14:12:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <20160321203358.GB3641@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::231 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:202037 Archived-At: Hi Alan, On 03/21/2016 10:33 PM, Alan Mackenzie wrote: >> MM engine narrows to span region for a lot of tasks, most importantly >> font-lock. If inner mode fortification functions misbehaves (ignoring >> font-lock-dont-widen for example) like c-mode does this leads to trouble. > > That's a misunderstanding of what `font-lock-dont-widen' is. It's > purely a signal to font-lock. Its doc string makes clear that it's > intended for use by major modes. It does not. The docstring gives examples of the modes where it can be useful. It does not say that the variable can only be set by a major mode.