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 catchtch Date: Sun, 16 Feb 2014 03:52:04 +0200 Message-ID: <530019C4.7010501@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> <87fvnln2md.fsf@gmail.com> <87ob297m3c.fsf@yandex.ru> <87eh35n1ra.fsf@gmail.com> 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 1392515561 31729 80.91.229.3 (16 Feb 2014 01:52:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 01:52:41 +0000 (UTC) Cc: Eli Zaretskii , David Kastrup , emacs-devel@gnu.org To: E Sabof Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 16 02:52:49 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 1WEquW-0004bE-Ow for ged-emacs-devel@m.gmane.org; Sun, 16 Feb 2014 02:52:48 +0100 Original-Received: from localhost ([::1]:59252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEquW-000709-0D for ged-emacs-devel@m.gmane.org; Sat, 15 Feb 2014 20:52:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEquK-0006zq-NO for emacs-devel@gnu.org; Sat, 15 Feb 2014 20:52:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEquC-00065H-8z for emacs-devel@gnu.org; Sat, 15 Feb 2014 20:52:36 -0500 Original-Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]:49298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEqtu-00063P-KP; Sat, 15 Feb 2014 20:52:10 -0500 Original-Received: by mail-ea0-f176.google.com with SMTP id b10so2417938eae.35 for ; Sat, 15 Feb 2014 17:52:09 -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=BVWrdVp41xP5PPy0l85X43YOs+cYaiQ7IjsZFv9hASM=; b=OVliYpZ6nsA7RnT51NscXBdvreF60Na2AgzbV7eCJbcvcpuIq6fmRxVcl9zU9tVO7M YR8BL0uoX1gFLVsGI7mNSHCKgGfL//5ZV7P+jQy9omuFl0iWucRlpEOCj5gZVZUyllUa 1IYQG+hD+Q9IwuM7mcVQ0da9R78wqNoSTWkjHYUBFIHPhI2iSCQrMyEDHscL4qSQV97T 0/W0QHiv0LQezg9SsV1m028ftoyqu5cH+CuIumSHkG+B0luJtllEkEMBxkgmgpE5FPmk t3p6hXuehg9NJ6PN1t2Kj6gaTqm8VdSQ7Tkp+Xw+6WtV7lAXrMItDYyiC+HuCesPbWeK f7EA== X-Received: by 10.15.10.73 with SMTP id f49mr18723806eet.2.1392515529492; Sat, 15 Feb 2014 17:52:09 -0800 (PST) Original-Received: from [192.168.10.2] ([93.109.195.252]) by mx.google.com with ESMTPSA id o45sm38919670eeb.18.2014.02.15.17.52.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Feb 2014 17:52:08 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <87eh35n1ra.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::230 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:169640 Archived-At: On 14.02.2014 17:38, E Sabof wrote: >> For org-mode, org-babel would be the proper place to handle the chunk >> boundaries, I believe. > > Not sure how they handle it. But fontification is the only thing that is supported. They probably use a similar approach to mmm-mode and haml-mode: define a fontify-region-function that calls each subregion function's in turn. >> How would html-mode know about js and css? Or, more generally, how would >> Emacs know about *new* modes and their delimiters that need to be handled? > > The "parent" mode gives emacs a "child" region, and tells it which mode to use in it. In other words, the parent mode suddenly has to become multiple-mode aware. So html-mode, for example, wouldn't be suitable anymore. And if we want to make the multiple-mode functionality somehow reusable, extracting it to some common framework might be in order. You see where this is going.