From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.bugs Subject: bug#17050: 24.3.50; [ruby-mode] Indentation bugs Date: Thu, 20 Mar 2014 16:56:15 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395327437 16312 80.91.229.3 (20 Mar 2014 14:57:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 14:57:17 +0000 (UTC) To: 17050@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 15:57:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQePN-0002tO-04 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 15:57:25 +0100 Original-Received: from localhost ([::1]:47449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQePM-0003Sw-H2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 10:57:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQePA-0003Sl-Do for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:57:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQeP0-0007zD-SW for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:57:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeP0-0007z6-Ov for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQeP0-0008Kh-BA for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Mar 2014 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17050 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.139532741932020 (code B ref -1); Thu, 20 Mar 2014 14:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2014 14:56:59 +0000 Original-Received: from localhost ([127.0.0.1]:42405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQeOw-0008KK-8E for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:56:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47352) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQeOt-0008KB-Kd for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:56:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQeOj-0007vp-QF for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:56:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeOj-0007vl-Nc for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:56:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeOc-0002nZ-7W for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:56:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQeOU-0007sA-Og for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:56:38 -0400 Original-Received: from mail-bk0-f43.google.com ([209.85.214.43]:62894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeOU-0007s1-E8 for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:56:30 -0400 Original-Received: by mail-bk0-f43.google.com with SMTP id v15so80491bkz.16 for ; Thu, 20 Mar 2014 07:56:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=rfn/2vj3tI+qwSYLw3qZBroU1PR0wT+8PFLgVBR68IM=; b=mkH+XcqR2vz8+JoZCsKeo9eipnRlamhkP8EvtssqxOOnbLGn21WyasXbiy2K6OoshZ KQrPCOBb3Nc5C8EfTVEU5+11UBnDM0ejQE9Ghj8G/Ld1NGuWgcd4XIm9dLEYJdR7AtgK tpNph8lb9FTIqsYOarWcEW0cbVKS+bDZDbg+sxDzR355SnXzmP4qzN9GwV//xl/u/SOg eYn8OOZZ5lRHAK8uCC8NqfjxCl+ofM25LurjAwoidGN1dxVyThtK1J6myZ/ZZt6x/b1t BB13v7Z0DJJZvvDlrcidAcjSIzPhw+fxO4//mUmOoZcmloeCzMLwe0p2866LQVXsXu+O k52Q== X-Gm-Message-State: ALoCoQnURkCXZuwkHDiNpQAKL/Da0mgagYFTTTTolb/ycd3jo5CYzh1aFYh10bueHGoWFjKW6CFL X-Received: by 10.204.243.67 with SMTP id ll3mr357254bkb.61.1395327388777; Thu, 20 Mar 2014 07:56:28 -0700 (PDT) Original-Received: from Bozhidars-MacBook-Pro.local ([95.87.231.111]) by mx.google.com with ESMTPSA id ci7sm2443530bkc.0.2014.03.20.07.56.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 07:56:27 -0700 (PDT) Original-Received: by Bozhidars-MacBook-Pro.local (Postfix, from userid 501) id A6A0287C9ED5; Thu, 20 Mar 2014 16:56:15 +0200 (EET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87025 Archived-At: The following code: return render json: { errors: { base: [message] }, copying: copying }, status: 400 is indented like this: return render json: { errors: { base: [message] }, copying: copying }, status: 400 Not totally sure what the best indentation would be, but this certainly seems wrong. Same goes for the simpler case: render json: { errors: { base: [message] }, copying: copying }, status: 400 Personally I think `}` should be aligned to the `json` param in such cases. The addition of () seems to correct the indentation: render(json: { errors: { base: [message] }, copying: copying }, status: 400) There's also this problem: top test( some, top, test) It should be indented like this: top test( some, top, test) In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2014-03-01 on Bozhidars-MacBook-Pro.local Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --prefix=/usr/local/Cellar/emacs/HEAD --without-dbus --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/HEAD/share/info/emacs --without-gnutls --with-ns --disable-ns-self-contained' Important settings: locale-coding-system: utf-8-unix Major mode: Ruby Minor modes in effect: subword-mode: t ruby-tools-mode: t inf-ruby-minor-mode: t magit-auto-revert-mode: t diff-auto-refine-mode: t guru-mode: t erc-truncate-mode: t erc-spelling-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t global-flycheck-mode: t flycheck-mode: t which-function-mode: t flx-ido-mode: t ido-ubiquitous-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t whitespace-mode: t global-anzu-mode: t anzu-mode: t projectile-global-mode: t projectile-mode: t flyspell-mode: t shell-dirtrack-mode: t volatile-highlights-mode: t global-hl-line-mode: t recentf-mode: t savehist-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-mode: t global-auto-revert-mode: t delete-selection-mode: t prelude-global-mode: t prelude-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: N e w SPC c o p SPC E m p t y I n t e r p o l a t i o n C-c C-c P P l l q l l q C-x g F F s-f C-g s-f d e f a u l t M-< C-s r e d u c e C-l s-f s i g n a l e x M-> M-< C-c p t M-> M-< s-f c o p y 8 i n i n g s c o n t r C-g C-x b c o n t r o C-g s-f t e s t C-g s-p u i a p c o p y i n g _ c o n t r o C-/ C-/ C-/ C-/ C-/ C-p C-a C-a C-SPC C-n C-n C-n C-n C-n C-n C-e M-w C-/ C-x b t e s t C-e C-y C-p C-p C-p C-p C-p C-p C-a C-d C-d C-d C-d C-d C-d C-d C-M-\ C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-a C-SPC C-n C-n C-n C-n C-n C-n C-n M-w M-x s e n d b u g r e p o r t b u g Recent messages: An error occurred while StringConversionInInterpolation cop was inspecting /var/folders/32/92h89tr96rs0s79j4ckhhm_r0000gn/T/flycheck42087B-Z/test.rb. Errors are usually caused by RuboCop bugs. Please, report your problems to RuboCop's issue tracker. Mention the following information in the issue report: 0.19.1 (using Parser 2.1.7, running on ruby 2.0.0 x86_64-darwin12.4.0) Checker definition probably flawed. Indenting region...done Indented buffer. Mark activated Load-path shadows: /Users/bozhidar/.emacs.d/elpa/tabulated-list-20120406.2251/tabulated-list hides /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/emacs-lisp/tabulated-list Features: (shadow sort emacsbug make-mode ielm lisp-mnt clojure-test-mode cider-scratch network-stream starttls tls slime-fancy slime-fontifying-fu slime-package-fu slime-references slime-scratch slime-presentations slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl elp slime hyperspec ace-jump-mode hippie-exp browse-url cus-edit cus-start cus-load slim-mode mail-extr eieio-opt speedbar sb-image ezimage dframe rst yaml-mode superword subword ruby-tools inf-ruby ruby-mode-expansions smartparens-ruby ruby-mode smie cider coffee-mode js-mode-expansions js json cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs web-mode-expansions web-mode disp-table nxml-uchnm rng-xsd xsd-regexp rng-cmpct cider-mode cider-repl cider-eldoc cider-interaction arc-mode archive-mode cider-client nrepl-client cider-util ewoc clojure-mode-expansions clojure-mode inf-lisp find-dired vc-annotate vc vc-dispatcher misearch multi-isearch gitignore-mode conf-mode ibuf-ext ibuffer ffap url-parse url-vars mule-util executable magit-key-mode magit view epa derived epg epg-config diff-mode git-rebase-mode git-commit-mode server log-edit message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log vc-git markdown-mode noutline outline rainbow-mode color rainbow-delimiters elisp-slime-nav guru-mode prelude-key-chord key-chord prelude-xml nxml-mode-expansions html-mode-expansions sgml-mode smartparens-html rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok prelude-web prelude-scss prelude-scheme prelude-ruby prelude-perl prelude-org prelude-js prelude-erc erc-truncate erc-autoaway erc-spelling erc-notify erc-log erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat prelude-emacs-lisp prelude-css prelude-common-lisp slime-autoloads prelude-clojure prelude-lisp prelude-c prelude-programming flycheck help-mode rx f which-func imenu prelude-ido smex flx-ido flx ido-ubiquitous warnings ido prelude-osx exec-path-from-shell prelude-global-keybindings prelude-editor winner undo-tree diff esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util re-builder whitespace browse-kill-ring midnight ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff dired-x dired anzu projectile pkg-info find-func grep compile s bookmark pp expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom flyspell ispell tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color format-spec etags ring volatile-highlights hl-line windmove recentf tree-widget wid-edit savehist saveplace diminish smartparens-config smartparens autorevert filenotify delsel prelude-mode easy-mmode edmacro kmacro prelude-core epl advice help-fns dash thingatpt prelude-ui zenburn-theme prelude-packages finder-inf ack-and-a-half-autoloads diminish-autoloads erlang-autoloads flx-ido-autoloads eieio byte-opt bytecomp byte-compile cconv eieio-core grizzl-autoloads key-chord-autoloads logito-autoloads info easymenu cl-macs gv pkg-info-autoloads rainbow-delimiters-autoloads rubocop-autoloads volatile-highlights-autoloads yaml-mode-autoloads package cl cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice 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 cocoa ns multi-tty emacs)