From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gavin Haynes Newsgroups: gmane.emacs.bugs Subject: bug#29798: 24.3; Javascript: Too much indentation with + and - Date: Wed, 20 Dec 2017 23:53:37 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043d76d06e504d0560d4ffa2" X-Trace: blaine.gmane.org 1513842981 7089 195.159.176.226 (21 Dec 2017 07:56:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 07:56:21 +0000 (UTC) To: 29798@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 21 08:56:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRviC-0001RM-SW for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 08:56:17 +0100 Original-Received: from localhost ([::1]:37887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRvk9-0004rm-J5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 02:58:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRvjz-0004q1-G9 for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:58:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRvjv-00044x-01 for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRvju-00044q-Rs for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRvju-0003it-Kl for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gavin Haynes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Dec 2017 07:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151384303714251 (code B ref -1); Thu, 21 Dec 2017 07:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2017 07:57:17 +0000 Original-Received: from localhost ([127.0.0.1]:45139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRvjA-0003hm-Ia for submit@debbugs.gnu.org; Thu, 21 Dec 2017 02:57:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRvfq-0003cQ-Ht for submit@debbugs.gnu.org; Thu, 21 Dec 2017 02:53:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRvfj-0000pv-5e for submit@debbugs.gnu.org; Thu, 21 Dec 2017 02:53:44 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRvfj-0000pr-2g for submit@debbugs.gnu.org; Thu, 21 Dec 2017 02:53:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRvfh-00031t-5P for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:53:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRvff-0000oN-KK for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:53:41 -0500 Original-Received: from mail-yb0-x236.google.com ([2607:f8b0:4002:c09::236]:46089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRvff-0000o0-Df for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 02:53:39 -0500 Original-Received: by mail-yb0-x236.google.com with SMTP id g15so16437347ybc.13 for ; Wed, 20 Dec 2017 23:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=T6Me92n3VHUI2bD3BgqxpSspzaCgPsvp2ozVo1wafag=; b=jJ/0o80nDB/JDb0dVhuOb76tU17EXMNxxLkRLyYRsHAVbJzaMqTeqKI3fCN75HhqZw rhXf/ON36dOC62Rre033HuqorZyXCxzT0uuB93cYPzI52Mjg1BlgwepUPNjVb/tG++1L MMTFDBtWytMNmxLt6gBgdP6kfgloSE0fgCr8U9Cuogl6k5eSjNmwlRyZdT0ujAluIh6u kmk/E2QSmi4ZOc5V2EYzz795kVHy+kr+dgqANDXsCYeYgq7oplCvvqp7N5gcIGSz2Dhb wb6Vv/AzQ7Zhwbjhy/cFCR4gEw3d88SLmI+cbBbb2nH7cN/g1EyisRvphm94R/KUr6FT 0f9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=T6Me92n3VHUI2bD3BgqxpSspzaCgPsvp2ozVo1wafag=; b=n/GLh7FzFDGYzqAwueBGEMOIdVHq4Y/H5SXmqqbMtpf7CAmeUOBxCsqC7IP1Q4d5+z o2VzKP0s33debeJ/xBet8TU0QZTe2ssRwN0oh6IQUQ2sP/3QCQOm9ANxKZPGKd8DpEqg w65vjArttxaWx/JEK5DWTG2fc7FpAQmutaK2hpYAHKb2a0BvaUHbkBv+f8hymaI5+m2P q0pvxb+6ODycfY0eOkKE0qAI4OAmCOW99fdum/Fs3WbvkaC/NEsU/U0/JCNLoLwhTtAc r4PgWIWzqLvd9Tr+YTmJK/VhStNRWLle29CpUahUbLcE/mV7MCffTKATQ8jMDpmFfLrs VcfA== X-Gm-Message-State: AKGB3mJ3TNThrHdAOhulA6WdVhgH0rGWFIK/uBwhvov+qUuDKtTjtu4e rKt4Lyu7HZCqxc1IywGU8uoa7H7IOVhurfs54cPQJg== X-Google-Smtp-Source: ACJfBosjkIulpaONtxJjY9P787BDXFkg38YR8Iof/vRhlT519HcJQfBzfrgiosNmoHGtS0l5aQI4+Wuv4mvMOQfCkTo= X-Received: by 10.37.187.75 with SMTP id b11mr6930768ybk.167.1513842818304; Wed, 20 Dec 2017 23:53:38 -0800 (PST) Original-Received: by 10.37.91.130 with HTTP; Wed, 20 Dec 2017 23:53:37 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 21 Dec 2017 02:57:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141323 Archived-At: --f403043d76d06e504d0560d4ffa2 Content-Type: text/plain; charset="UTF-8" Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Write the following in a .js file: { -2, 2, +2 } Then, put your cursor over each line and press tab to indent it. The lines having -2 and +2 get twice as much indentation as expected. The line having just 2 has the correct indentation. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2017-09-19 on lcy01-35, modified by Debian System Description: Ubuntu 14.04.5 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Javascript Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 3 4 0 9 ; 0 c C-n C-n C-e RET - 2 , TAB RET 3 TAB C-x C-s C-p C-p RET TAB d e l e t e SPC 2 TAB , TAB TAB C-n TAB C-p TAB C-b C-b C-b C-b C-b C-b C-b DEL TAB C-e C-n RET + 1 , TAB RET ~ 4 TAB , TAB RET ! 0 TAB , TAB C-p C-p C-n C-n RET - 2 TAB DEL DEL DEL DEL C-a C-k C-p C-e ESC x r e p o r t - e m a c s - b u g RET Recent messages: Loading /etc/emacs/site-start.d/50erlang-mode.el (source)...done Loading /etc/emacs/site-start.d/50festival.el (source)...done Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done Loading /etc/emacs/site-start.d/50mdk.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /tmp/a.js... Wrote /tmp/a.js Auto-saving...done Auto-saving...done Load-path shadows: /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils js json imenu thingatpt cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-date byte-opt warnings bytecomp byte-compile cconv advice help-fns cl-lib advice-preload tide-autoloads flycheck-autoloads seq-autoloads let-alist-autoloads pkg-info-autoloads epl-autoloads finder-inf s-autoloads dash-autoloads typescript-mode-autoloads package erlang-start devhelp tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --f403043d76d06e504d0560d4ffa2 Content-Type: text/html; charset="UTF-8"
Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Write the following in a .js file: { -2, 2, +2 } Then, put your cursor over each line and press tab to indent it. The lines having -2 and +2 get twice as much indentation as expected. The line having just 2 has the correct indentation. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2017-09-19 on lcy01-35, modified by Debian System Description: Ubuntu 14.04.5 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Javascript Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 3 4 0 9 ; 0 c C-n C-n C-e RET - 2 , TAB RET 3 TAB C-x C-s C-p C-p RET TAB d e l e t e SPC 2 TAB , TAB TAB C-n TAB C-p TAB C-b C-b C-b C-b C-b C-b C-b DEL TAB C-e C-n RET + 1 , TAB RET ~ 4 TAB , TAB RET ! 0 TAB , TAB C-p C-p C-n C-n RET - 2 TAB DEL DEL DEL DEL C-a C-k C-p C-e ESC x r e p o r t - e m a c s - b u g RET Recent messages: Loading /etc/emacs/site-start.d/50erlang-mode.el (source)...done Loading /etc/emacs/site-start.d/50festival.el (source)...done Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done Loading /etc/emacs/site-start.d/50mdk.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /tmp/a.js... Wrote /tmp/a.js Auto-saving...done Auto-saving...done Load-path shadows: /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils js json imenu thingatpt cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-date byte-opt warnings bytecomp byte-compile cconv advice help-fns cl-lib advice-preload tide-autoloads flycheck-autoloads seq-autoloads let-alist-autoloads pkg-info-autoloads epl-autoloads finder-inf s-autoloads dash-autoloads typescript-mode-autoloads package erlang-start devhelp tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

--f403043d76d06e504d0560d4ffa2--