X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Rasmus <rasmus@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 11:47:02 +0000 Resent-Message-ID: <handler.20915.B.143549198019612 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20915 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.143549198019612 (code B ref -1); Sun, 28 Jun 2015 11:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2015 11:46:20 +0000 Received: from localhost ([127.0.0.1]:59747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9B2R-00056F-SW for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 07:46:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42346) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rasmus@HIDDEN>) id 1Z9B2P-000561-F8 for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 07:46:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rasmus@HIDDEN>) id 1Z9B2J-0000me-EK for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 07:46:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rasmus@HIDDEN>) id 1Z9B2J-0000mY-BY for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 07:46:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rasmus@HIDDEN>) id 1Z9B2I-0003mj-C9 for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 07:46:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rasmus@HIDDEN>) id 1Z9B2F-0000l9-5r for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 07:46:10 -0400 Received: from mout.gmx.net ([212.227.15.18]:50422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rasmus@HIDDEN>) id 1Z9B2E-0000jo-Sw for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 07:46:07 -0400 Received: from x200s ([90.163.164.75]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MEXHd-1ZJuWj2qxl-00FmQb for <bug-gnu-emacs@HIDDEN>; Sun, 28 Jun 2015 13:46:05 +0200 From: Rasmus <rasmus@HIDDEN> Date: Sun, 28 Jun 2015 13:46:02 +0200 Message-ID: <87oak0njid.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:ADx5kLqRLFUp5crfZXMnwXJbrL69rYGfW7642L/pyr1FxOphjRp AIkBt3bp/1dKfAIFXJqYQ3ulP/9lDJemD2DOQx2bil/+ftGqEBJuFubL+1WOC56oG/rsoV2 CxE7d14zfxB9kdzvlAFgaWMLMH0Yt/NQb+Y+6RhfaIdBB6sC+5fYHHWJNFqGPccrq8nkvaX 5aH6A5e4gWASctEbJOEAA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Lj8uW5jlevo=:FL5a8eKl+7+HZb4OXtqPsN fDjBnZ67Fe1Xj9tdRFA0AIsmk0ySzr5SyCmZJ/BxXhhhLcI4uryF5gUP74nY0nbvVZur66T86 eKRKkb0SY1zjUAfDcWgGhQ/86bxjGZbKD7EBptg05G3tJI2HNgu8o2km9zcGV9GKDAlBDgkkx slMaJC4DLr6wFccuYPMNEJgrStsdBQiOfHcfAcdDJWCTTWIchOgxypxyoaYFON+MDNoJbzMdO UCaxt863+nfHtl2U6CdIxJRqTtX+ToWd/dgv1nADIvIaHqFGs3xnlL6fSUpyQxWt9tw5v4XT6 QVwp9El+veQBZrgRcefW0zwEl7tlJ9fE0mMlxKGGtOWzYjih7rmfVATru7he42tYEP8Z6SP/1 LCgybkxTAAs9JGEqbtRBJ6cnE2kZ2so8nTm6NcF623Ul5mNoj7VAs7q4Drmnb21rt/nZU4oBg QxUy05/wH4uh6qWOkjt7J9fAsXaqBL6PtnMv9BpyufhfG3n7UGCO3D2UM9q4npgGYvnEfVqrN 5r3Q+MXti9OZ1450UNKZcZcR03uexz0HP9/Hkjb89FXgO189vBX6pxsdyHYBtw1STYdtpvcdY v/TLaDNfNsXsihFVO7eo8XOFzIkz374wU7yqr2cYzLLZPNVax0VGj0udE5X/OvTVtfWhrdwXz zHgxjebzHwrUgbiUc6Mhf7kD4rK1m11li0kP7djfQm4SltTpV7PJLnT3CZJp3PEi1m3U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.1 (----) Hi, Electric layout doesn't always quite work to my liking in js-mode. Start with Emacs -q and try the following example. x.map(function(d) {return f(x);}); When electric layout mode is on this is typed as x.map(function(d){ return f(d); }; Which IMO looks bad for an inline, anonymous function which should just be inlined. If electric indentation mode is on, the following characters are bound by default. (mapcar 'char-to-string electric-indent-chars) => ("{" "}" "(" ")" ":" ";" "," " ") I think that might be a bit too many.... Consider if I'm using my own indentation style (e.g. chain syntax as used with d3.js), my manual indentation is is ruined when I type in basically any function. Consider: var plot = {}; var plot.scale = {}; plot.scale.y = d3.scale.ordinal() .domain(bar.ybins) .rangeRoundBands([plot.height, 0], 0.1); Typing the *third line*, I get something like (with electric indent and electric layout): plot.scale.y = d3.scale.ordinal() .domain(bar.ybins) .rangeRoundBands([plot.height, 0 ], 0.1); I don't know if it is even possible for electric indent mode to somehow guess that things are indented to an unknown style.... Thanks, Rasmus In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.4) of 2015-06-21 on x200s Repository revision: 821a3633564f36857968c7fe2b8bb6681a895905 Windowing system distributor `The X.Org Foundation', version 11.0.11702000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --pdfdir=/usr/share/doc/emacs/pdf --with-sound=alsa --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' -- One thing that is clear: it's all down hill from here
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Rasmus <rasmus@HIDDEN> Subject: bug#20915: Acknowledgement (25.0.50; [js-mode] electric annoyances) Message-ID: <handler.20915.B.143549198019612.ack <at> debbugs.gnu.org> References: <87oak0njid.fsf@HIDDEN> X-Gnu-PR-Message: ack 20915 X-Gnu-PR-Package: emacs Reply-To: 20915 <at> debbugs.gnu.org Date: Sun, 28 Jun 2015 11:47:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 20915 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 20915: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20915 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 14:42:02 +0000 Resent-Message-ID: <handler.20915.B20915.14355025183035 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rasmus <rasmus@HIDDEN> Cc: 20915 <at> debbugs.gnu.org Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.14355025183035 (code B ref 20915); Sun, 28 Jun 2015 14:42:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 14:41:58 +0000 Received: from localhost ([127.0.0.1]:60502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9DmP-0000mt-SY for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:41:58 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:54977) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1Z9DmO-0000mg-4g for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:41:57 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQN00F00STGD100@HIDDEN> for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 17:41:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQN00FVPSTP4M50@HIDDEN>; Sun, 28 Jun 2015 17:41:49 +0300 (IDT) Date: Sun, 28 Jun 2015 17:41:49 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <87oak0njid.fsf@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83y4j36gk2.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > From: Rasmus <rasmus@HIDDEN> > Date: Sun, 28 Jun 2015 13:46:02 +0200 > > Electric layout doesn't always quite work to my liking in js-mode. The "Emacsy" solution to that is to allow users to define the style she likes. That way, what you like and what I like doesn't have to be put into the same procrustean framework. Since js-mode already supports styles, why wouldn't it be possible to solve this problem in the framework of the styles? (Apologies if what I say makes no sense: I don't use js-mode.)
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances In-Reply-To: <87oak0njid.fsf@HIDDEN> Resent-From: Rasmus <rasmus@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 14:52:01 +0000 Resent-Message-ID: <handler.20915.B.14355030633844 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20915 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.14355030633844 (code B ref -1); Sun, 28 Jun 2015 14:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2015 14:51:03 +0000 Received: from localhost ([127.0.0.1]:60506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9DvB-0000zo-8h for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:51:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54961) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Dv8-0000zb-FS for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Dv1-0004o3-VX for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:50:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=4.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Dv1-0004nr-PV for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:50:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Dv0-0000oh-HF for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 10:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Duv-0004iz-E7 for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 10:50:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:39607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Duv-0004i3-7n for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 10:50:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Duq-0002R2-QA for bug-gnu-emacs@HIDDEN; Sun, 28 Jun 2015 16:50:40 +0200 Received: from 90.163.164.75 ([90.163.164.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <bug-gnu-emacs@HIDDEN>; Sun, 28 Jun 2015 16:50:40 +0200 Received: from rasmus by 90.163.164.75 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <bug-gnu-emacs@HIDDEN>; Sun, 28 Jun 2015 16:50:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Rasmus <rasmus@HIDDEN> Date: Sun, 28 Jun 2015 16:50:23 +0200 Lines: 26 Message-ID: <877fqnopjk.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@HIDDEN X-Gmane-NNTP-Posting-Host: 90.163.164.75 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:/iuiBEB+Fy+JWhV0McALcjqytPA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.2 (---) Hi, Eli Zaretskii <eliz@HIDDEN> writes: >> Electric layout doesn't always quite work to my liking in js-mode. > > The "Emacsy" solution to that is to allow users to define the style > she likes. That way, what you like and what I like doesn't have to be > put into the same procrustean framework. > > Since js-mode already supports styles, why wouldn't it be possible to > solve this problem in the framework of the styles? > > (Apologies if what I say makes no sense: I don't use js-mode.) It is possible, I think, you can e.g. remove the active electricity chars. I'm talking about the default here... Something like js-default-style (like in cc) would perhaps be nice. I don't know what it would take to adapt such a scheme or how involved it is to add styles. Rasmus -- If you can mix business and politics wonderful things can happen!
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 14:57:02 +0000 Resent-Message-ID: <handler.20915.B20915.14355034174374 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rasmus <rasmus@HIDDEN> Cc: 20915 <at> debbugs.gnu.org Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.14355034174374 (code B ref 20915); Sun, 28 Jun 2015 14:57:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 14:56:57 +0000 Received: from localhost ([127.0.0.1]:60510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9E0v-00018R-2M for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:56:57 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:46615) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1Z9E0s-00018D-Rt for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 10:56:55 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NQN00I00T89GW00@HIDDEN> for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 17:52:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQN009X9TBMA080@HIDDEN>; Sun, 28 Jun 2015 17:52:34 +0300 (IDT) Date: Sun, 28 Jun 2015 17:56:48 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <877fqnopjk.fsf@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83si9b6fv3.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <877fqnopjk.fsf@HIDDEN> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > From: Rasmus <rasmus@HIDDEN> > Date: Sun, 28 Jun 2015 16:50:23 +0200 > > >> Electric layout doesn't always quite work to my liking in js-mode. > > > > The "Emacsy" solution to that is to allow users to define the style > > she likes. That way, what you like and what I like doesn't have to be > > put into the same procrustean framework. > > > > Since js-mode already supports styles, why wouldn't it be possible to > > solve this problem in the framework of the styles? > > > > (Apologies if what I say makes no sense: I don't use js-mode.) > > It is possible, I think, you can e.g. remove the active electricity chars. > I'm talking about the default here... Why should the default behave according to your liking? ;-)
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 17:52:01 +0000 Resent-Message-ID: <handler.20915.B20915.143551386820110 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN>, Rasmus <rasmus@HIDDEN> Cc: 20915 <at> debbugs.gnu.org Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143551386820110 (code B ref 20915); Sun, 28 Jun 2015 17:52:01 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 17:51:08 +0000 Received: from localhost ([127.0.0.1]:60582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9GjU-0005EH-3J for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 13:51:08 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35508) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9GjS-0005Dn-76 for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 13:51:06 -0400 Received: by wgjx7 with SMTP id x7so50773042wgj.2 for <20915 <at> debbugs.gnu.org>; Sun, 28 Jun 2015 10:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=rHwtLSfWkEJgM1UzrTfxxeLzNaNVG88Ug5vw2CRxM4o=; b=cRPW86+q1/WraBaBHm87XY+ozAsz/HvGfGkRpeXtiZT57j5w+fNCRbpGUvBRa/CXgg BeC3R6YGBTC1k95VZbFe1xBGlzptLtAHTcUvrAhlkGuxf5KcvYHRf8uCgXmXLIrcyJbp Ld5Sj738/NupD29siIvxI3crHlxUJ2IQsXi70eEmvCJiONfrpB2IlefEcNwjfeJOJyYm GvDXFf7deEvOu80UxHyV5kVRtbq4kpWtFcQAmtZiRhHqXzs0AVDMrrWYE/iLsW1ZvmrH oR+rrQ65QHDWln2NcBDp8GsbUUpR4A0vcIi2PxFo0eFIJ2x2allVNShuEmsiLDtMpFR0 P1WA== X-Received: by 10.194.77.97 with SMTP id r1mr20457741wjw.98.1435513860401; Sun, 28 Jun 2015 10:51:00 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id jy6sm55221087wjc.4.2015.06.28.10.50.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 10:51:00 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <559033FF.6060909@HIDDEN> Date: Sun, 28 Jun 2015 20:50:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <83y4j36gk2.fsf@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/28/2015 05:41 PM, Eli Zaretskii wrote: > Since js-mode already supports styles, For indentation? Does it really?
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 18:00:05 +0000 Resent-Message-ID: <handler.20915.B20915.143551436220859 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov <dgutov@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143551436220859 (code B ref 20915); Sun, 28 Jun 2015 18:00:05 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 17:59:22 +0000 Received: from localhost ([127.0.0.1]:60588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9GrR-0005QM-Ck for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 13:59:21 -0400 Received: from mtaout26.012.net.il ([80.179.55.182]:51578) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1Z9GrO-0005Q8-PM for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 13:59:19 -0400 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NQO002001M6HT00@HIDDEN> for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:01:54 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQO00OMC236R350@HIDDEN>; Sun, 28 Jun 2015 21:01:54 +0300 (IDT) Date: Sun, 28 Jun 2015 20:59:13 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <559033FF.6060909@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83lhf367f2.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <559033FF.6060909@HIDDEN> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > Cc: 20915 <at> debbugs.gnu.org > From: Dmitry Gutov <dgutov@HIDDEN> > Date: Sun, 28 Jun 2015 20:50:55 +0300 > > On 06/28/2015 05:41 PM, Eli Zaretskii wrote: > > > Since js-mode already supports styles, > > For indentation? How should I know? And why does it matter, for the issue at hand?
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 18:13:02 +0000 Resent-Message-ID: <handler.20915.B20915.143551514822077 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143551514822077 (code B ref 20915); Sun, 28 Jun 2015 18:13:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 18:12:28 +0000 Received: from localhost ([127.0.0.1]:60595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9H48-0005k1-Fv for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:12:28 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:36832) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9H47-0005jm-2r for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:12:27 -0400 Received: by wguu7 with SMTP id u7so124286117wgu.3 for <20915 <at> debbugs.gnu.org>; Sun, 28 Jun 2015 11:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=L5NhjxGIvg0brR6EQ94jLOkxCEcDggZl20EQRbD63ao=; b=HBgziGM18EvBZK0tJOtSd9XyNJ8RiEEnLc++YF8ADGMqem1GX8gnFJa1SYz983fPfF BTdblzrvuBZ2gyXWkOP/AKMCWIDifTegP9JNtKjJKBYl6HlNV8cNuPOiNgXOGl8sM8iy hTqgyxnSof93ScgwVxGPU+UGS83ZLiHtKohnjjYyzOE8prEePDWYimlx38Tl0avmQdAL jIDZacHDBMRxqpr0QtBAMoIhOKTl4x2ALLobeQcROqcalAg62NlnD2KkJY90f48dHpte UFRuEQOylS1mKdEEKA/kR6bCk6kgdRr5meUuLhzpT8IC0q71zKUAZFNuOF/GPk3Zw1g4 N5qg== X-Received: by 10.194.120.198 with SMTP id le6mr21894061wjb.133.1435515141663; Sun, 28 Jun 2015 11:12:21 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id fq7sm8407078wic.5.2015.06.28.11.12.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 11:12:21 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <559033FF.6060909@HIDDEN> <83lhf367f2.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <55903900.3070203@HIDDEN> Date: Sun, 28 Jun 2015 21:12:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <83lhf367f2.fsf@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/28/2015 08:59 PM, Eli Zaretskii wrote: > And why does it matter, for the issue at hand? Most of the complaint was about indentation. You've quoted the part about electric layout, though, but anyway, js--class-styles is not a suitable vehicle for this.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 18:26:02 +0000 Resent-Message-ID: <handler.20915.B20915.143551590323194 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov <dgutov@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143551590323194 (code B ref 20915); Sun, 28 Jun 2015 18:26:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 18:25:03 +0000 Received: from localhost ([127.0.0.1]:60600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9HGI-00061y-2j for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:25:02 -0400 Received: from mtaout26.012.net.il ([80.179.55.182]:33682) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1Z9HGF-00061c-6s for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:25:00 -0400 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NQO008002MCAG00@HIDDEN> for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:27:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQO00AOI39YTZ00@HIDDEN>; Sun, 28 Jun 2015 21:27:34 +0300 (IDT) Date: Sun, 28 Jun 2015 21:24:53 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <55903900.3070203@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83k2un668a.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <559033FF.6060909@HIDDEN> <83lhf367f2.fsf@HIDDEN> <55903900.3070203@HIDDEN> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN > From: Dmitry Gutov <dgutov@HIDDEN> > Date: Sun, 28 Jun 2015 21:12:16 +0300 > > On 06/28/2015 08:59 PM, Eli Zaretskii wrote: > > > And why does it matter, for the issue at hand? > > Most of the complaint was about indentation. You've quoted the part > about electric layout, though, but anyway, js--class-styles is not a > suitable vehicle for this. Then let's introduce another vehicle. The main point is that personal stylistic preferences should be handled as stylistic preferences, not as something that everyone else need to have to live with.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 18:56:02 +0000 Resent-Message-ID: <handler.20915.B20915.143551770325863 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143551770325863 (code B ref 20915); Sun, 28 Jun 2015 18:56:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 18:55:03 +0000 Received: from localhost ([127.0.0.1]:60605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9HjJ-0006j1-DG for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:55:02 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33117) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9HjG-0006ie-BY for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 14:54:58 -0400 Received: by wiwl6 with SMTP id l6so82056003wiw.0 for <20915 <at> debbugs.gnu.org>; Sun, 28 Jun 2015 11:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=IsEB9bGuSSxVJWJwsLSkDNpUEFTIOdBnDfjWdLb4oc0=; b=b1sTSlaIXtJEnMdG5enY95xMi49DP+uRrhdPrfpiU7anGdPsVk8SIoeAqqHoNAngXG OYbKVQGvHsxWYckAxInutHAC5SHh8kz4hbI4NiEzynRqe3Y/AkmRHkB+2GfVc0ecwUSo OIzS65WWl3qHzVyBnLfK74qAHvSS0SnzPGjdj+77+PwBBYbEnUaE8CPSuSNVvDeXUziy 0ycELMtxx9sTxHZR+50S5UJIG7Cov2aguXwBsC3UcTABW2V13MQfV0RiQC72tcLZe7WD nL/10N3iYwlh/hW00GOUpSRSTeECfBOzpew5kygEtkAQnzURQlIzzcYX/DuAQ/LFHDFU hD2A== X-Received: by 10.180.198.10 with SMTP id iy10mr15727492wic.46.1435517692636; Sun, 28 Jun 2015 11:54:52 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id nb9sm8515041wic.10.2015.06.28.11.54.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 11:54:52 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <559033FF.6060909@HIDDEN> <83lhf367f2.fsf@HIDDEN> <55903900.3070203@HIDDEN> <83k2un668a.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <559042F7.7040004@HIDDEN> Date: Sun, 28 Jun 2015 21:54:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <83k2un668a.fsf@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/28/2015 09:24 PM, Eli Zaretskii wrote: > Then let's introduce another vehicle. Sure. > The main point is that personal stylistic preferences should be > handled as stylistic preferences, not as something that everyone else > need to have to live with. Sometimes it's good to update the defaults, though.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jun 2015 20:17:02 +0000 Resent-Message-ID: <handler.20915.B20915.1435522582807 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov <dgutov@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.1435522582807 (code B ref 20915); Sun, 28 Jun 2015 20:17:02 +0000 Received: (at 20915) by debbugs.gnu.org; 28 Jun 2015 20:16:22 +0000 Received: from localhost ([127.0.0.1]:60619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9J01-0000Cv-DT for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 16:16:21 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:43469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1Z9Izx-0000Cg-MC for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 16:16:19 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NQO004007OL7800@HIDDEN> for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 23:15:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQO0007Z8A3VN60@HIDDEN>; Sun, 28 Jun 2015 23:15:40 +0300 (IDT) Date: Sun, 28 Jun 2015 23:16:10 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <559042F7.7040004@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83ioa7612t.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <83y4j36gk2.fsf@HIDDEN> <559033FF.6060909@HIDDEN> <83lhf367f2.fsf@HIDDEN> <55903900.3070203@HIDDEN> <83k2un668a.fsf@HIDDEN> <559042F7.7040004@HIDDEN> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > Cc: 20915 <at> debbugs.gnu.org, rasmus@HIDDEN > From: Dmitry Gutov <dgutov@HIDDEN> > Date: Sun, 28 Jun 2015 21:54:47 +0300 > > Sometimes it's good to update the defaults, though. Sure, when many users complain about the old ones.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 01:13:03 +0000 Resent-Message-ID: <handler.20915.B20915.14355403437748 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rasmus <rasmus@HIDDEN> Cc: 20915 <at> debbugs.gnu.org Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.14355403437748 (code B ref 20915); Mon, 29 Jun 2015 01:13:03 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 01:12:23 +0000 Received: from localhost ([127.0.0.1]:60669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9NcV-00020u-EO for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:12:23 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:7777) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <monnier@HIDDEN>) id 1Z9NcT-00020h-Il for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:12:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0FtQQjgWaCLiKCeAEBAQ X-IPAS-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0FtQQjgWaCLiKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128741611" Received: from 157-52-6-103.cpe.teksavvy.com (HELO pastel.home) ([157.52.6.103]) by ironport2-out.teksavvy.com with ESMTP; 28 Jun 2015 21:12:16 -0400 Received: by pastel.home (Postfix, from userid 20848) id 003E0614BA; Sun, 28 Jun 2015 21:12:15 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> References: <87oak0njid.fsf@HIDDEN> Date: Sun, 28 Jun 2015 21:12:15 -0400 In-Reply-To: <87oak0njid.fsf@HIDDEN> (rasmus@HIDDEN's message of "Sun, 28 Jun 2015 13:46:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.3 (/) > Electric layout doesn't always quite work to my liking in js-mode. > > Start with Emacs -q and try the following example. > > x.map(function(d) {return f(x);}); > > When electric layout mode is on this is typed as > > x.map(function(d){ > return f(d); > }; I can't think of any way Emacs could guess that you want to keep this as a single line. Any idea? > Typing the *third line*, I get something like (with electric indent and > electric layout): > > plot.scale.y = d3.scale.ordinal() > .domain(bar.ybins) > .rangeRoundBands([plot.height, 0 > ], 0.1); electric-indent-mode presumes indentation works correctly. In this case, I think we clearly have an indentation bug (can someone imagine a sane programmer who'd want the above indentation?), so the thing to do is to fix the indentation code. > I don't know if it is even possible for electric indent mode to somehow > guess that things are indented to an unknown style.... I can't imagine how. You can tell Emacs, tho, by disabling electric-indent-(local-)mode. Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Rasmus <rasmus@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 01:27:02 +0000 Resent-Message-ID: <handler.20915.B20915.14355411828966 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: monnier@HIDDEN Cc: 20915 <at> debbugs.gnu.org Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.14355411828966 (code B ref 20915); Mon, 29 Jun 2015 01:27:02 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 01:26:22 +0000 Received: from localhost ([127.0.0.1]:60673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9Nq1-0002KW-2c for submit <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:26:21 -0400 Received: from mout.gmx.net ([212.227.17.20]:49739) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rasmus@HIDDEN>) id 1Z9Npy-0002KJ-8i for 20915 <at> debbugs.gnu.org; Sun, 28 Jun 2015 21:26:19 -0400 Received: from W530 ([46.166.190.199]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MJSuF-1ZCOmA2GFv-0031lc; Mon, 29 Jun 2015 03:26:09 +0200 From: Rasmus <rasmus@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> Date: Mon, 29 Jun 2015 03:26:07 +0200 In-Reply-To: <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's message of "Sun, 28 Jun 2015 21:12:15 -0400") Message-ID: <87bnfzwbio.fsf@HIDDEN> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:xSVXyLNTfBj1IkvmzDL2ND+FkO1hiYeE/JeDmsw25WppC7kdcIJ nMC7nSZPa39i0l5rlpqJAJA9hhU77O4+SaljN6dLk0aSn2E85Z0KXvwfkmUeNtG2WKrHC/e p7JAyfv3ROcmGr89WWwsUSi/Od7LRwUK7ioERK7nnzsltoYZZmiuVp9b7nZHXrahkyDUgkj hV/p7HMeYhTbzrUf2ta1g== X-UI-Out-Filterresults: notjunk:1;V01:K0:3jlerhj5A1s=:+idXR2nj7x7tKTn7J5Ipvm +fCgSJaSS3a+6NpCxKV4AnVBiYGWcKqPDjzjhrJMo5J/DwJYs+FB9uhEI7ntWOlC2rlg6CECw AeiOpRwLsTPGsGeoFt7wTUIMaKRiOeH2Q19dtWGeuEnLlyU7l1iiGyhSHP0AnwSPvOyvkdAbe 0c9WsmRdfs9QE+OR+qH8dm3Mg2DEpzQTvdGgmo3oDVoubiOsXnuBDVQHqeUMWDRo6OkW3ug8y QfsjZ2Y42+UsNJTCbDR2RufLQLdWtJiq+WRWs8oZowraQ8h9lBbJH6E9Bq89kRDXizrdn7PJY 9pUZBlkUVMshf7mvGbxal9+nYJq26QwpSHrOPntDKMZjrVovUsmLWVMP+ocyc9uVQS9yVBhJJ HbcmlmqWIvteXPcr6EI5HpcHUk7BNwZzl0DklYt48PRvX0PlmPsQIHGN1ZaTrefzofIjAlaMH RNKraHL1HS+egN7tx+/yZ/tEc1k6owiL5BsIuHDvCY2Npp5aawSMkpOwHAhS1D7wMubHfpL0K ftrMGsPMzmVSog2wp5sp8nPy0lkjFrJ3Oe5bG3Znx5vW4Oqb6jMFOqiCrPEa4/vVMTEsNVw+O 1aiRov4dh2Nx3GfbMcftlx7zTPT0hbfT/cinjepqXaPvp77zFT6DUBxnoNXN0QqPWmKrbeGPT LbaHto6LHwIH06OZRBaeymSzlO9L6bueTPInNt3QCQji0RKeUOcAs5aMr0MD4QSb2vHY= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) Hi, Stefan Monnier <monnier@HIDDEN> writes: >> Electric layout doesn't always quite work to my liking in js-mode. >> > >> Start with Emacs -q and try the following example. >> >> x.map(function(d) {return f(x);}); >> >> When electric layout mode is on this is typed as >> >> x.map(function(d){ >> return f(d); >> }; > > I can't think of any way Emacs could guess that you want to keep this as > a single line. Any idea? I don't know if this is possible. Perhaps via js2 since it knows more about semantics. What about differentiating between functions saved to a var or an object slot: var foo = function(a,b){...}; baz.f = function(a,b){...}; Versus functions that are not saved. [1,2,3].map(function(d){...}); Is that identifiable and desirable? I'm expect Dmitry has a better understanding of this issue. >> Typing the *third line*, I get something like (with electric indent and >> electric layout): >> >> plot.scale.y = d3.scale.ordinal() >> .domain(bar.ybins) >> .rangeRoundBands([plot.height, 0 >> ], 0.1); > > electric-indent-mode presumes indentation works correctly. In this > case, I think we clearly have an indentation bug (can someone imagine > a sane programmer who'd want the above indentation?), so the thing to do > is to fix the indentation code. And you would not consider the lonely "]" an stylistic annoyance? That, I guess, is the work of electric layout. >> I don't know if it is even possible for electric indent mode to somehow >> guess that things are indented to an unknown style.... > > I can't imagine how. You can tell Emacs, tho, by disabling > electric-indent-(local-)mode. Of course. I can also remove some of the most unpleasant characters in electric-indent-chars... Rasmus -- C is for Cookie
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 08:35:03 +0000 Resent-Message-ID: <handler.20915.B20915.143556684215829 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN>, Rasmus <rasmus@HIDDEN> Cc: 20915 <at> debbugs.gnu.org Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143556684215829 (code B ref 20915); Mon, 29 Jun 2015 08:35:03 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 08:34:02 +0000 Received: from localhost ([127.0.0.1]:60871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9UVt-00046y-62 for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 04:34:01 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33216) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9UVr-00046h-EY for 20915 <at> debbugs.gnu.org; Mon, 29 Jun 2015 04:33:59 -0400 Received: by wiwl6 with SMTP id l6so92225191wiw.0 for <20915 <at> debbugs.gnu.org>; Mon, 29 Jun 2015 01:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=ABTa1bsyvqueoxuaASi9nY2yihpJjF3qXnM8jCvTPyk=; b=1FZ9t049Dzm9xApRcUYXPvYf1DXsWB1hJOJAFlUKNEJwOIQ3SK/eNfwNo2/HKWr5Rf zJXNv68SjkPY0oNcUOqfmdby9lkCAF3kvX9Y/0UPsvebGQaKb68CXa++Qy8FgvIGrIN1 CSoNs6y7Xxa9ulS8i9muLCVlcEJr54NiMbgHmb/C9cpZs7+tIUYL3ti69u3l0bCY1GdQ Wb8woHvs+d/tw+pCIX5INK2V4Jf0qqSycPPS5tiBn0kIJ4PsgrTFtlcivFUpVJDgzNp+ 2xX3VkgryMg2kNQPUE7KDeqMm+DzmvSeWVrLkhycTZiVKu3gmIgU06WIN3VWzY5sfgut 1T8g== X-Received: by 10.180.99.168 with SMTP id er8mr19997344wib.86.1435566833629; Mon, 29 Jun 2015 01:33:53 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id lf4sm62992532wjb.42.2015.06.29.01.33.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 01:33:53 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <559102EC.5020308@HIDDEN> Date: Mon, 29 Jun 2015 11:33:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/29/2015 04:12 AM, Stefan Monnier wrote: >> plot.scale.y = d3.scale.ordinal() >> .domain(bar.ybins) >> .rangeRoundBands([plot.height, 0 >> ], 0.1); > > electric-indent-mode presumes indentation works correctly. In this > case, I think we clearly have an indentation bug (can someone imagine > a sane programmer who'd want the above indentation?), so the thing to do > is to fix the indentation code. Not an indentation bug. The user manually indented the second line, hence the misalignment.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 08:51:02 +0000 Resent-Message-ID: <handler.20915.B20915.143556781317320 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rasmus <rasmus@HIDDEN>, monnier@HIDDEN Cc: 20915 <at> debbugs.gnu.org Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143556781317320 (code B ref 20915); Mon, 29 Jun 2015 08:51:02 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 08:50:13 +0000 Received: from localhost ([127.0.0.1]:60884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9UlX-0004VH-QY for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 04:50:12 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:36903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9UlT-0004Uj-Gx for 20915 <at> debbugs.gnu.org; Mon, 29 Jun 2015 04:50:08 -0400 Received: by wicgi11 with SMTP id gi11so65459651wic.0 for <20915 <at> debbugs.gnu.org>; Mon, 29 Jun 2015 01:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=EOV2kprwqmHCNFXKF9+LLflPHkZwjlaBHApNsCMcfTo=; b=g6UuUWSNO3oQfBsJld7/Wzdc7TVXrOR9gpYS9JIk9urRyHimNcvomB72yh6AzUVYC6 T2f4dyF4aWEKOaZ4Os+SaPN2qSnOfv5jueqYz0peu8ABe2JIoMvvxljiVz7b3V86BZOe 03HVIlq0yZSfu6OZvuGZYrt2FOgn8yXCLeRCT/rU8mjsEGbVylgmfre/Vkr6WAbxfuIh alh/3f5gRV++yWa9Y70oP1mTqyyM+DzQlxmKQLgMH+Aq10f+AwnYf4M9A/dg8WCrpK+9 UpCIsEZamYZk20ij9cIMbi/7O9NjxzL+UegGgjqG5dhMrstOl4zBioJh0H1mNChSl5RV 2GzQ== X-Received: by 10.180.13.10 with SMTP id d10mr20083176wic.57.1435567801620; Mon, 29 Jun 2015 01:50:01 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id p2sm11056996wix.11.2015.06.29.01.50.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 01:50:01 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> <87bnfzwbio.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <559106B4.1020104@HIDDEN> Date: Mon, 29 Jun 2015 11:49:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <87bnfzwbio.fsf@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/29/2015 04:26 AM, Rasmus wrote: > What about differentiating between functions saved to a var or an object > slot: > > var foo = function(a,b){...}; > baz.f = function(a,b){...}; > > Versus functions that are not saved. > > [1,2,3].map(function(d){...}); > > Is that identifiable and desirable? > > I'm expect Dmitry has a better understanding of this issue. Looks doable: you skip to the current "function" keyword and see if it's preceded by an assignment operator. An electric-layout-rules element can be a function, so that's not a problem. > And you would not consider the lonely "]" an stylistic annoyance? That, I > guess, is the work of electric layout. I'm not sure it is. Before we start guessing, why don't you write down the minimal configuration needed to reproduce this? Start with 'emacs -Q'.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances In-Reply-To: <87oak0njid.fsf@HIDDEN> Resent-From: Rasmus <rasmus@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 11:03:02 +0000 Resent-Message-ID: <handler.20915.B.14355757642826 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20915 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.14355757642826 (code B ref -1); Mon, 29 Jun 2015 11:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jun 2015 11:02:44 +0000 Received: from localhost ([127.0.0.1]:60934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9Wpn-0000jS-1H for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 07:02:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Wpi-0000jC-Uq for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 07:02:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Wpc-0007Qt-MR for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 07:02:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=4.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Wpc-0007Qp-JY for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 07:02:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9Wpb-0001hZ-KW for bug-gnu-emacs@HIDDEN; Mon, 29 Jun 2015 07:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9WpX-0007Lh-NU for bug-gnu-emacs@HIDDEN; Mon, 29 Jun 2015 07:02:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:46107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9WpX-0007L9-Gy for bug-gnu-emacs@HIDDEN; Mon, 29 Jun 2015 07:02:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1Z9WpV-00019S-Un for bug-gnu-emacs@HIDDEN; Mon, 29 Jun 2015 13:02:26 +0200 Received: from 46.166.138.162 ([46.166.138.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <bug-gnu-emacs@HIDDEN>; Mon, 29 Jun 2015 13:02:25 +0200 Received: from rasmus by 46.166.138.162 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <bug-gnu-emacs@HIDDEN>; Mon, 29 Jun 2015 13:02:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Rasmus <rasmus@HIDDEN> Date: Mon, 29 Jun 2015 13:02:18 +0200 Lines: 59 Message-ID: <87d20eydz9.fsf@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> <87bnfzwbio.fsf@HIDDEN> <559106B4.1020104@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@HIDDEN X-Gmane-NNTP-Posting-Host: 46.166.138.162 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:hL6nu8AHcZV3uf4rGDJnWeVi47A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.2 (---) Dmitry Gutov <dgutov@HIDDEN> writes: > On 06/29/2015 04:26 AM, Rasmus wrote: > >> What about differentiating between functions saved to a var or an object >> slot: >> >> var foo = function(a,b){...}; >> baz.f = function(a,b){...}; >> >> Versus functions that are not saved. >> >> [1,2,3].map(function(d){...}); >> >> Is that identifiable and desirable? >> >> I'm expect Dmitry has a better understanding of this issue. > > Looks doable: you skip to the current "function" keyword and see if > it's preceded by an assignment operator. Right. >> And you would not consider the lonely "]" an stylistic annoyance? That, I >> guess, is the work of electric layout. > > I'm not sure it is. Before we start guessing, why don't you write down > the minimal configuration needed to reproduce this? Start with 'emacs > -Q'. In fact I am now unable to reproduce that indentation example again, though the original was created with emacs -q. So ignore it for now. Dmitry Gutov <dgutov@HIDDEN> writes: > On 06/29/2015 04:12 AM, Stefan Monnier wrote: > >>> plot.scale.y = d3.scale.ordinal() >>> .domain(bar.ybins) >>> .rangeRoundBands([plot.height, 0 >>> ], 0.1); >> >> electric-indent-mode presumes indentation works correctly. In this >> case, I think we clearly have an indentation bug (can someone imagine >> a sane programmer who'd want the above indentation?), so the thing to do >> is to fix the indentation code. > > Not an indentation bug. The user manually indented the second line, > hence the misalignment. Indeed. The points was whether electric could guess if something is indented and not try to apply indentation. Which is not possible. Thanks, Rasmus -- What will be next?
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 13:19:02 +0000 Resent-Message-ID: <handler.20915.B20915.143558389120447 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov <dgutov@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, Rasmus <rasmus@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143558389120447 (code B ref 20915); Mon, 29 Jun 2015 13:19:02 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 13:18:11 +0000 Received: from localhost ([127.0.0.1]:60994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9Ywt-0005Jj-82 for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 09:18:11 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:25793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <monnier@HIDDEN>) id 1Z9Ywr-0005JW-Dg for 20915 <at> debbugs.gnu.org; Mon, 29 Jun 2015 09:18:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBAQEEAQEBAR6LOoUFB4QtBbUEI4Fmgi4igngBAQE X-IPAS-Result: A0A2FgA731xV/2cGNJ1cgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBAQEEAQEBAR6LOoUFB4QtBbUEI4Fmgi4igngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128775303" Received: from 157-52-6-103.cpe.teksavvy.com (HELO pastel.home) ([157.52.6.103]) by ironport2-out.teksavvy.com with ESMTP; 29 Jun 2015 09:18:03 -0400 Received: by pastel.home (Postfix, from userid 20848) id B866F5F788; Mon, 29 Jun 2015 09:18:03 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvbnfy1wtq.fsf-monnier+emacsbugs@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> <559102EC.5020308@HIDDEN> Date: Mon, 29 Jun 2015 09:18:03 -0400 In-Reply-To: <559102EC.5020308@HIDDEN> (Dmitry Gutov's message of "Mon, 29 Jun 2015 11:33:48 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.3 (/) >> plot.scale.y = d3.scale.ordinal() >> .domain(bar.ybins) >> .rangeRoundBands([plot.height, 0 >> ], 0.1); > Not an indentation bug. The user manually indented the second line, hence > the misalignment. FWIW, given the first two lines, the third line's indentation is wrong. Whether the first two lines where auto-indented or manually indented does not matter in this regard (IMNSHO). Stefan PS: Actually, I think that the indentation code should probably be able to decide how to indent by only looking at the immediately preceding line, in this case.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Dmitry Gutov <dgutov@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jun 2015 14:07:02 +0000 Resent-Message-ID: <handler.20915.B20915.143558676524706 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, Rasmus <rasmus@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143558676524706 (code B ref 20915); Mon, 29 Jun 2015 14:07:02 +0000 Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 14:06:05 +0000 Received: from localhost ([127.0.0.1]:33037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9ZhE-0006QP-J8 for submit <at> debbugs.gnu.org; Mon, 29 Jun 2015 10:06:05 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:35062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1Z9ZhB-0006Pu-M3 for 20915 <at> debbugs.gnu.org; Mon, 29 Jun 2015 10:06:02 -0400 Received: by wiga1 with SMTP id a1so72391197wig.0 for <20915 <at> debbugs.gnu.org>; Mon, 29 Jun 2015 07:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=AfFkdIGnBM1m4LTlHuKTxkFICPjs4F3arLDQWmOJHJU=; b=kXOBGKPONJxAmXGrW07KjhKRS4i1PpIYXzupVcT2vqFkbWMjBFlHmMMSciKU9aZFWu xM2pCbbtB9ld9STdZdzyPibX3HlVqjn8tt6cbn4T9RbTsO3HphskuTyFwn9woaEqS0Le s3w75PM3sPzK5BkpXZvYDPjynVYIJJSK2r9IywOGrHZRS/F4GNOdUFUdTU4ta+iz8Wdu HOGqVY9VTo94PoU25r0MxLLE6Lk9AcU9UqmKY8Wg3dzvPVRIkaDczdlRJNpKFhp3YqOZ 2vejiDOlGoKOeWE7PnKSSWD2MfThydUBsEcjmdxd6agiv6TxrTWsQjNBfyEVGhPJPc8j ArOg== X-Received: by 10.180.95.101 with SMTP id dj5mr22951601wib.16.1435586756046; Mon, 29 Jun 2015 07:05:56 -0700 (PDT) Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id jy6sm59214786wjc.4.2015.06.29.07.05.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 07:05:55 -0700 (PDT) References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> <559102EC.5020308@HIDDEN> <jwvbnfy1wtq.fsf-monnier+emacsbugs@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <559150C1.7080504@HIDDEN> Date: Mon, 29 Jun 2015 17:05:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <jwvbnfy1wtq.fsf-monnier+emacsbugs@HIDDEN> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On 06/29/2015 04:18 PM, Stefan Monnier wrote: > FWIW, given the first two lines, the third line's indentation is wrong. > Whether the first two lines where auto-indented or manually indented > does not matter in this regard (IMNSHO). Not according to the current algorithm (which is based on (nth 1 parse-status)). Fixing that might require a rewrite on top of e.g. SMIE. Although that might be the point you're making.
X-Loop: help-debbugs@HIDDEN Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 30 Jun 2015 14:09:02 +0000 Resent-Message-ID: <handler.20915.B20915.143567328417131 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov <dgutov@HIDDEN> Cc: 20915 <at> debbugs.gnu.org, Rasmus <rasmus@HIDDEN> Received: via spool by 20915-submit <at> debbugs.gnu.org id=B20915.143567328417131 (code B ref 20915); Tue, 30 Jun 2015 14:09:02 +0000 Received: (at 20915) by debbugs.gnu.org; 30 Jun 2015 14:08:04 +0000 Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9wCi-0004SF-9S for submit <at> debbugs.gnu.org; Tue, 30 Jun 2015 10:08:04 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:36638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <monnier@HIDDEN>) id 1Z9wCf-0004Ro-UC for 20915 <at> debbugs.gnu.org; Tue, 30 Jun 2015 10:08:02 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t5UE7xkU010841; Tue, 30 Jun 2015 10:07:59 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 96B55660ED; Tue, 30 Jun 2015 10:07:59 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvioa5pa0r.fsf-monnier+emacsbugs@HIDDEN> References: <87oak0njid.fsf@HIDDEN> <jwvsi9b1fve.fsf-monnier+emacsbugs@HIDDEN> <559102EC.5020308@HIDDEN> <jwvbnfy1wtq.fsf-monnier+emacsbugs@HIDDEN> <559150C1.7080504@HIDDEN> Date: Tue, 30 Jun 2015 10:07:59 -0400 In-Reply-To: <559150C1.7080504@HIDDEN> (Dmitry Gutov's message of "Mon, 29 Jun 2015 17:05:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5353=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5353> : inlines <3303> : streams <1463977> : uri <1973004> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.9 (-) >> FWIW, given the first two lines, the third line's indentation is wrong. >> Whether the first two lines where auto-indented or manually indented >> does not matter in this regard (IMNSHO). > Not according to the current algorithm (which is based on (nth > 1 parse-status)). I'm not talking about the current code, but about the behavior we should strive for. > Fixing that might require a rewrite on top of e.g. SMIE. Although that might > be the point you're making. Kind of: I haven't actually looked at the code, so I have no idea how easy/hard it would be to make it behave like we want (and AFAIK, using SMIE for C-style syntaxes is still an open problem, the first hurdle being the choice of using either "{...}" or "...;" for the branches of "if"). Stefan
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.