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: Mon, 17 Feb 2014 04:57:47 +0200 Message-ID: <87bny6mono.fsf@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> <87k3cw53d1.fsf@maru2.md5i.com> <83lhxcbzs2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392605893 15764 80.91.229.3 (17 Feb 2014 02:58:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 02:58:13 +0000 (UTC) Cc: Michael Welsh Duggan , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 17 03:58:21 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 1WFEPU-0004zb-6Q for ged-emacs-devel@m.gmane.org; Mon, 17 Feb 2014 03:58:20 +0100 Original-Received: from localhost ([::1]:36827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFEPT-0003GM-SO for ged-emacs-devel@m.gmane.org; Sun, 16 Feb 2014 21:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFEPM-0003Fd-EP for emacs-devel@gnu.org; Sun, 16 Feb 2014 21:58:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFEPH-0007b1-31 for emacs-devel@gnu.org; Sun, 16 Feb 2014 21:58:12 -0500 Original-Received: from mail-ea0-x234.google.com ([2a00:1450:4013:c01::234]:46946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFEPG-0007ao-Rh; Sun, 16 Feb 2014 21:58:07 -0500 Original-Received: by mail-ea0-f180.google.com with SMTP id o10so6937398eaj.39 for ; Sun, 16 Feb 2014 18:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=i02nuDPccvg+RQ33wBD27APfM65QaYSiZkwDhkW2Bpo=; b=dbdMarP/0kbTRzI3Zgc1k40nmdBIUQqJl6MnMLckYa+8685J1N2kLa2fUJxuqD82R0 nIS3ruLOhV/V4mZKHjDtDGXkLVKEtzujIfk23Vqo5NF9xeFSNNTWx3UYWa9mWThhqAKT YD8m6+xBDPKkkZyGFfYlPeA9a1pEn0s29SlhYyKmujWPBKaYEzZmfik9NfXQnqzyN2QO k+XltWn+aIndGQAeaMPN7JM96n340zvp/MIHCpNxtM/TZvJJwQxVlx66VNsvQjno9ds9 vRqhKJ9nxvbbE3Jozzcpw5oKTrm5GkO47ml5fL85vlabVljwcZJH5j/EBrp+AhxC7NnK cDMg== X-Received: by 10.15.65.68 with SMTP id p44mr17670772eex.63.1392605885833; Sun, 16 Feb 2014 18:58:05 -0800 (PST) Original-Received: from axl ([93.109.195.252]) by mx.google.com with ESMTPSA id x2sm51797681eeo.8.2014.02.16.18.58.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 16 Feb 2014 18:58:04 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sun, 16 Feb 2014 21:40:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::234 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:169680 Archived-At: Stefan Monnier writes: > To me, the requirements look like: Looks fairly comprehensive to me. > - indentation is done according to the mode to which BOL belongs, I think. Yep. > - there can be nesting relationships between chunks, e.g. with two major > modes A and B, a sequence of chunks of "A1, B1, A2, B2, A3" could > represent "(A1 (B1) A2 (B2) A3)" or "(A1 (B1 (A2) B2) A3)", where > indentation of A3 could depend on A1 in the second case but on A2 in > the first. Indentation can depend on preceding nested chunks, too. See control structures in JSP, ERB, PHP, etc. > - navigation should ideally understand the overall structure of the > buffer, so forward-sexp knows how to jump over a "sub-chunk" written > in another mode. Do you think a mmm-mode-aware forward-sexp-function is the best way to support this?