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: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch Date: Fri, 14 Feb 2014 16:34:45 +0200 Message-ID: <52FE2985.4070703@yandex.ru> References: <87r47bi1e5.fsf@yandex.ru> <52F96284.50507@yandex.ru> <52FAE12B.6060101@yandex.ru> <52FC3BEE.60604@yandex.ru> <52FCD2B4.5080006@yandex.ru> <52FD9F1D.50205@yandex.ru> <83mwhucg1h.fsf@gnu.org> <878ute589i.fsf@fencepost.gnu.org> <83d2iqc84m.fsf@gnu.org> <87wqgxkcr9.fsf@yandex.ru> <834n41db0d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392388533 10580 80.91.229.3 (14 Feb 2014 14:35:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 14:35:33 +0000 (UTC) Cc: dak@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 14 15:35:41 2014 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 1WEJrg-0001Md-6l for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 15:35:40 +0100 Original-Received: from localhost ([::1]:52087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJrf-0007gx-F9 for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 09:35:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJrN-0007RD-BE for emacs-devel@gnu.org; Fri, 14 Feb 2014 09:35:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEJrE-0005Tn-Px for emacs-devel@gnu.org; Fri, 14 Feb 2014 09:35:21 -0500 Original-Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:38992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJqx-0005Cd-8M; Fri, 14 Feb 2014 09:34:55 -0500 Original-Received: by mail-ee0-f50.google.com with SMTP id d17so5674299eek.23 for ; Fri, 14 Feb 2014 06:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/jtvgEOWISyAj5FAgjmi33TWMOOCyT8TRw7iOhxwDmc=; b=rYH4V5sOjDtsnwdoBv0OEuCnqWMRtsKQ8a35pT1hkpntbDWt3/Q72td1tMpgDcXmmh TPOdzTw5a8vdK8CRhQwcIkh802La9JARmgmroTVueDXxCPaxcUWe4VyLSo+osmjhXOul qO/uT47mgEPxA9aOTc3GMmZb4shX+VbM4Oyt9txhddLH4TO3UoxesDEGAsJMyOVuVG/f +t1SZgXrqCy4zbt4jGaOE/6pHAXv/25EqZbeOPBHUJidtcoJ/7o4TSDPiRu1niuQ40Ge iZ/i8ajWvPDGUvfxUDAxrU1/PTUjNPSsoL3ry/PmnkPKVzSB46AWBXFovMCcRTKBGS46 9+gQ== X-Received: by 10.14.8.7 with SMTP id 7mr3017659eeq.56.1392388494173; Fri, 14 Feb 2014 06:34:54 -0800 (PST) Original-Received: from [192.168.0.94] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id j41sm20436908eeg.10.2014.02.14.06.34.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 06:34:52 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <834n41db0d.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::232 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:169609 Archived-At: On 14.02.2014 16:28, Eli Zaretskii wrote: > Sorry, I'm not sure I understand the questions. What do you mean by > "adaptation of `syntax-ppss'"? The introduction of a new hook Stefan suggested earlier. > Information of region boundaries should surely come from the > application level, but I wasn't talking about that. I was talking > about how this information is _used_. > >> I guess adapting the default font-lock-fontify-region function and >> syntax-propertize to be aware of them would be good > > To be aware of what? Of chunk boundaries. > I never said the region(s) must be contiguous. (Btw, explanation of > why a given chunk needs to be aware of the previous chunk would be > appreciated.) Consider this ERB snippet:
foofoofoo
The class value string has to continue after the ruby chunk. > My point is that we should come up with a list of the requirements, > and then design and implement the infrastructure which will support > them, instead of implementing multi-mode buffers by piggybacking > existing infrastructure, which was never designed to support such > features. The need to "come up, design and implement" these things has been there for many years now. Unless things start moving in that direction step-by-step, I'm not confident anything "proper" will happen at all.