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/trunkr101338:*lisp/emacs-lisp/syntax.el(syntax-ppss): More sanitycheck to catchcatch Date: Tue, 18 Feb 2014 06:54:45 +0000 Message-ID: <87ppmk7vwq.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> <834n41db0d.fsf@gnu.org> <87k3cw53d1.fsf@maru2.md5i.com> <83lhxcbzs2.fsf@gnu.org> <87r4717l6c.fsf@gmail.com> <87vbwdskyo.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392706498 22967 80.91.229.3 (18 Feb 2014 06:54:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2014 06:54:58 +0000 (UTC) Cc: Michael Welsh Duggan , Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 18 07:55:05 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 1WFea7-0005zg-KF for ged-emacs-devel@m.gmane.org; Tue, 18 Feb 2014 07:55:03 +0100 Original-Received: from localhost ([::1]:46711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFea7-0004jm-3H for ged-emacs-devel@m.gmane.org; Tue, 18 Feb 2014 01:55:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFeZy-0004hl-8Z for emacs-devel@gnu.org; Tue, 18 Feb 2014 01:55:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFeZs-00009W-Eu for emacs-devel@gnu.org; Tue, 18 Feb 2014 01:54:54 -0500 Original-Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:65405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFeZs-00009O-7k; Tue, 18 Feb 2014 01:54:48 -0500 Original-Received: by mail-wi0-f171.google.com with SMTP id cc10so3126647wib.10 for ; Mon, 17 Feb 2014 22:54:47 -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=YwKtYHI09ezVWLVHRfp5r+9Plah9xG0jTgU1ZjrqHkw=; b=EKkuSccMbOREVLuSvWg7z+a1yoQpMD7zOtZH8mTHalrMo9NHii8e0fcbt3a84b+CST 5buSoUfJMhNi8+GTlP0Y7R4PGVTz020vUI773WcaoElE3RhN6g8vI5/XUPHOuCXYgsRe Nm8JADaQamKXc8NoQJlJScG+MdAbSZiRwa9qleenXBSD+3HnlPo3hYlD6v40MUvWJ0QM qU9iZuqA9KJyi2pAOBW2WtW7X4p70eSLQxl3xqOIqMP1BwAB4IRz5MMHGclLgay4P7Cl AdiK0XzLUgGHt1s4Rc7vJZBZFSCTL9QZVIykSGSSeKXeNHBYtKCqXu1KszgYC2Zyt5+l cGYw== X-Received: by 10.180.19.35 with SMTP id b3mr16396692wie.20.1392706487189; Mon, 17 Feb 2014 22:54:47 -0800 (PST) Original-Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id cm5sm39225669wid.5.2014.02.17.22.54.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 17 Feb 2014 22:54:46 -0800 (PST) User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.4 In-reply-to: <87vbwdskyo.fsf@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22b 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:169736 Archived-At: Dmitry Gutov writes: > E Sabof writes: > >> Might the effect be the same, if each chunk increased or decreased the depth? > > Some chunks create a "temporary" outdent: > > <% if foo %> >

woo

> <% else %> >

wah wah

> <% end %> The depth is meant to be treated as a "baseline", not a rule. Closing "things", are usually indented at (1- (nth 0 (syntax-ppss (line-beginning-position)))) That this is the "correct" way to indent might be subject to dispute, but here is an example where the depth is ignored altogether. (incf depth) (incf depth) (decf depth) (decf depth) (decf depth) Evgeni