From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.devel Subject: Re: Questioning the new behavior of `open-line'. Date: Thu, 12 Nov 2015 15:52:10 +0100 Message-ID: <87d1vfl17p.fsf@gmx.us> References: <87vb98csu1.fsf@red-bean.com> <87h9kscqig.fsf@red-bean.com> <83vb98jqwp.fsf@gnu.org> <87k2poba1s.fsf@red-bean.com> <83si4cjnyw.fsf@gnu.org> <87twosp5ke.fsf@fencepost.gnu.org> <87fv0cm64g.fsf@gmx.us> <87si4bsktk.fsf@red-bean.com> <87wptnlbl6.fsf@gmx.us> <87pozfl2ut.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447339965 13589 80.91.229.3 (12 Nov 2015 14:52:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 14:52:45 +0000 (UTC) Cc: bruce.connor.am@gmail.com, emacs-devel@gnu.org To: yuri.v.khan@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 15:52:36 2015 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 1ZwtEp-000495-GP for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 15:52:35 +0100 Original-Received: from localhost ([::1]:47113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwtEo-00072Z-Vr for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 09:52:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwtEW-000723-2Z for emacs-devel@gnu.org; Thu, 12 Nov 2015 09:52:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwtER-0003tB-Ug for emacs-devel@gnu.org; Thu, 12 Nov 2015 09:52:15 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:49569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwtER-0003t6-Kt for emacs-devel@gnu.org; Thu, 12 Nov 2015 09:52:11 -0500 Original-Received: from W530 ([62.80.108.15]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M7m0a-1aIpvW2Fhw-00vOyv; Thu, 12 Nov 2015 15:52:10 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUvLy91dXVUVFSRkZGs rKzQ0NCgYj8zAAACUUlEQVQ4y2XTXZKbMAwAYONeAEn03RJ7gAiZ9ya235sG3/8qFbBkd1oNM5nx F/1YDOEdUUDC/xHBlNTpH4ymYOACsMX0DchAgcDI2uPx7XzYz00NaessGObxKmRGpkWxtQfjOJer kAI1bQvCdvdOAsu7EE39Y4uaoLUXAbwTtKzPducUIgGDJoZxTyBbresLJTAmAQA2DR5s9PrZOfe+ Fe/mD5+1QFddnx99AzOVPVjTsQxYoY+Mnqvc+mYo8ZgJ9MmKAmbL3D2qzntC+gHTAsF7kg59j4JH BxkIOEURQPzZe+v9BemYaVBEAD+n2+qD+YMHDIKSOLCQ/drB8obHCiOyAQZhstvUu6UIJwzC++TM cMB9nyccECUFBgQqt9o7Sojp7DFIFAYgssVb8J/A59IjSHIgpbzDimH+84YkDlYfza99j9MznHGA qeX9HkV5fX0Bk4HV24ePe4f6BYGpgOXxR+8ZJG/neXQAulPN4+yvCjn376C5rH7BWpLUnk6IDqbF m081q0DMnyBfYAUHQvnsfUKu+UZkKIDXUFEOKHkk0iQSLhAH1bU2gQlE+Hm18JpkVLctggFKkfAF s1ltfyIZyLxckE7o/RbYkCco10JGDNFy75wiKVh7nT1Y0Oebc3+Keor/436CCLK/x/YShsUl3/EC 8Z0MJkILLUHAp79gGMOsDoakIfr51WMeYzaUbAr0O15frESkNGfVyZeigNHeACC5bVZrMc+Jt/AG +ah1K1RrLgV4/ASMMNRWt1qglloVbm/AyY+9jlL2H3yc1/gLV++FkXU0IfkAAAAASUVORK5CYII= In-Reply-To: (Yuri Khan's message of "Thu, 12 Nov 2015 20:44:09 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:9rbhRhetlXdBRQ+X3foHvDHfYLb1ynpqRjaDcokxiQ48NyRTZZ4 WHMkOhoQJGgqAbsXTB9B2SHqqpqKhj0xx8yVdgJUI8pytdz5zG5haD1rn4awmSArcFJ59kx vTeOFXCZTfZPuBecHo3xBRtx0V9SKyLkkuZV10x2239FUNtY7+/Be79iTA45a/PmLvrPTNL gL4ZXMthpVpC7cbXUg3+Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:54ZN4vilWG0=:qJalsky64xfR7c9vQs7JlD C9GXTApp8s20m6gfam4oIe9B2RK5MUj2yV5uJgZRJxy4V6bSSz4PN//EyLPkB2rKQSzX3nEDj pgegG1LBCo511j90XGmXuSyoOcDX+qxRlegBC3RE9oeU2LlEfRg4v7C+j/VbLjJjKYzqahdwu iLQN/r/Sa+RxRUP4UyzrWThyoFlzOdohWFFUvDH07HwLnnvjGZlRmqDSSeHe2po47bVARdtLB Q0qXYE9gRIyToxxZQcSwd4lxuj2noylbpSiB4AD8fW/8aYzlMBN0NqU8ynnaIxjnoH3sxMgaU OGBTwHjGRM25Pydr4qrQBJ4Us1TLzlI4k85Vca4hCweaeeYRKRZvFrfwWZCSZiJmyUyA8vZae tfDThIOORWBHYC8CYVl0XN5FZjy3aZzmg/FG8CbGioCsB9tzGIvACNft0hD0nmxZXRB6RsACk bO/WFHqsC7zaXSJ2Atj9pIf2W+1/7sD34SCWeK64FGAx0ldu90qZ2oRMbzGyjGu7+2VkLAzwF /hvf9WykqCT+w9tJHk2ZZXucsFaQTFkq37fmApPdnEzpIfoRuh69lLdh5LkJtJ7EPvk8sFMER hJfyHwY4HTDS0tVNmnnSlEUHlVd+H1IC4z0PRniNXE9Qk0D4Ss5w4ArqGrCV1Qw1r5kk8b5+n zyxz3FKDyj0YXedHL+afi40uncp3n93nVHR2LX+Lz5nIQIPJWIQVAYjzMfW1BxpzFCRoqh0FX VgX7ZGWv78aNxDi4kkfYcgVTnTfhl+HLgHTFDFe7gXsmSgytTYVI4lrhThAljuIyVa75AS4M X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:194230 Archived-At: Yuri Khan writes: > On Thu, Nov 12, 2015 at 8:16 PM, Rasmus wrote: > >> Picture 1 >> >> var svg =3D div.append("svg")| >> >> .attr("width", box_plot.w) >> .attr("height", box_plot.h); >> >> Picture 2 >> >> var svg =3D div.append("svg")| >> .classed("myclass", true) >> .attr("width", box_plot.w) >> .attr("height", box_plot.h); > > Both cases demonstrate a bug caused by the lack of a suitable > Javascript indentation heuristic. Something along the lines of =E2=80=9C_= if_ > the line starts with a dot _and_ the previous line ends with \(a > dot\), followed by an identifier, followed by balanced parentheses, > _and_ the previous line=E2=80=99s indentation does not contain any tab > characters, _then_ align to the position of \1=E2=80=9D. Indeed, your observation corresponds to the disclaimer made when the example was first raised. > Arguably, they should be solved by adding that heuristic, not by > breaking open-line and/or newline-and-indent. Perhaps, until such a fix exists, to this and any similar problem, Emacs can afford to offer "dumb" keys alongside indenting keys. Rasmus --=20 Warning: Everything saved will be lost