From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof 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 17:48:04 +0000 Message-ID: <87k3cvq78r.fsf@gmail.com> 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> <530019C4.7010501@yandex.ru> <87wqgv9w3z.fsf@gmail.com> <87zjlrgg98.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392572897 16950 80.91.229.3 (16 Feb 2014 17:48:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 17:48:17 +0000 (UTC) Cc: Eli Zaretskii , David Kastrup , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 16 18:48:24 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 1WF5pH-00066H-QV for ged-emacs-devel@m.gmane.org; Sun, 16 Feb 2014 18:48:23 +0100 Original-Received: from localhost ([::1]:34409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5pH-00082i-Gd for ged-emacs-devel@m.gmane.org; Sun, 16 Feb 2014 12:48:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5p8-0007vO-FC for emacs-devel@gnu.org; Sun, 16 Feb 2014 12:48:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WF5p2-0000ca-83 for emacs-devel@gnu.org; Sun, 16 Feb 2014 12:48:14 -0500 Original-Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:52086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5p2-0000cV-1J; Sun, 16 Feb 2014 12:48:08 -0500 Original-Received: by mail-we0-f177.google.com with SMTP id t61so9671806wes.8 for ; Sun, 16 Feb 2014 09:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=+Lf9FP2VZptHOpihnw0q4rXKplZpJvxj2bVSzGtJhVs=; b=vG5Y2aTED4ueu32jZrvN9tXt7yrExkYAhJjvq5gHHdY/ysMOEwoi2EH6rTu2oMk3js nFJ37suUKDSsyDB0oeFKsoJwcSgfjqiHbiXGfTNgMOKvJOlLv3fm+LYu6ZiAbRRLCrV+ EUlx4F/IB8RpWOzDz6m0K4gkI9KfCp56xOIJBCxZuctCyhdZWMg+RM8NBnsx5DhrFYlW 3B1NTDUlLlFHq5oYyh44A7S7FkTgLxYrvX9d2n3fXAUlAJRsSCNF9EBICeHCHJ403OuV KnF3O9t7N4wXIMtekshSl1asiBoln6liRWi1PzO3RzjvamEsz0bQ/F+90izR1zplH+d7 jutg== X-Received: by 10.180.37.162 with SMTP id z2mr9681801wij.51.1392572886773; Sun, 16 Feb 2014 09:48:06 -0800 (PST) Original-Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id de3sm30067443wjb.8.2014.02.16.09.48.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 16 Feb 2014 09:48:06 -0800 (PST) User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.4 In-reply-to: <87zjlrgg98.fsf@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::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:169652 Archived-At: Dmitry Gutov writes: > Until you define what such a function would do, it's hard for things to > go wrong. I should probably get re-acquainted with mmm. It might contain useful functionality that I haven't considered. >From personal experience of dealing with multi-lingual files, I'd say I'd like fontification, language-sensitive navigation and indentation. I suppose some keys might change as well, but I'not convinced that the benefits outweigh the additional complexity. It might be possible to achieve consistent navigation by making functions such as beginning-of-defun consult a region property before consulting the buffer-local beginning-of-defun-function. I might also like error-checking, but it's conceivable to move this responsibility to flymake. > > But let's just look at things in motion. What would make a major mode > call this function? It would have to know about a set of template > delimiters, right? And somehow translate them into `set-region-mode' > calls? > > Are BEGINNING and END buffer positions? What happens if the user inserts > some text in the buffer? Will all regions below suddenly become invalid? > > Okay, let's make them markers. What happens when the user removes a > region? Or just one delimiter? Or adds a new delimiter, or region? This requires a parsing loop, which I'd guess is how mmm handles it. Evgeni