Debbugs Internal Request <help-debbugs@HIDDEN>
to internal_control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Debbugs Internal Request <help-debbugs@HIDDEN>
to internal_control <at> debbugs.gnu.org
.
Full text available.Received: (at 16996) by debbugs.gnu.org; 29 May 2021 18:25:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 29 14:25:31 2021 Received: from localhost ([127.0.0.1]:57709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ln3eN-0003ZY-Li for submit <at> debbugs.gnu.org; Sat, 29 May 2021 14:25:31 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:36821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raaahh@HIDDEN>) id 1ln3eM-0003ZM-VI for 16996 <at> debbugs.gnu.org; Sat, 29 May 2021 14:25:31 -0400 Received: by mail-wm1-f46.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so6343443wmk.1 for <16996 <at> debbugs.gnu.org>; Sat, 29 May 2021 11:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Q0r1D8NT+E5/prrT8hA/D4yRhJbRZOwCzM0RNUWSfLU=; b=XuYoLRI4WVgltV/Q5noslj9bbYUZfg02evrutdYc/fPr9IsVEv0QJnAxhVu/cvlzB/ s7nDlhOzj4hvmXN947X0EphCSPK76jjMvPXCO61nFmr/munLCX2RUmikuG0+GDrDJtT/ +A25FZJRkxNLMPDU8oPok75SqzeXjky+rl9uvVTMU4kLEnCJjTwXlapo4+1+MIZrEAgq 1xIf/Aafy0HZwXAZglukJw+162N3wiZXkARM9AM8x0EfcH13QX0CimvBXTLHlBsSEyJv 9V8XHnn7I9eVNNxnE3prfxcNGZWVeA/k+ZM/sXtsLnBP0WwI1gmCDwfzP8fJDRWNe85+ evcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q0r1D8NT+E5/prrT8hA/D4yRhJbRZOwCzM0RNUWSfLU=; b=Zfggr6zXEKoX8E7gbiYyKAMw+k2lCEVAmveZ0sEuVhFClOGFEED+Ze7iG8MZ8iljrr ux2pwaw0D0dMA0UCqybhEBQrcJbT1rREjTFpBAFX5wql20Q+ls9tUgBHnlWTGDyWJkR+ W3Pq8O1j6fOME5NOKk4nQ1qwcMgTZfqTDAtfyP88FZiKjWM2rJDQCnkRItg1d/ztk+nI QqkRTjiBsDOt7Tdfa6bAc4y6IRbDpcHuCJHl+rEgvj3XMUJuHDmWtPNSemjbPr+XiesP Td5NNYY2T81QCUETTRp9Uu5rkIK5M5cb6uvJdHhclnzEHv6udTYpv6ooO9J0EU2vEu4o DoZA== X-Gm-Message-State: AOAM530x+pNaWLoBU9NalixG1tJdelrgIHBMUnfg6VblFKZjE/CTNMHP HItr3L9o6T+TuJ8y9XYldb2HETGpuKE= X-Google-Smtp-Source: ABdhPJxJW1AevL/+ddQTENZfPQp8sSJIFsAxrZu0GGK87gwJi1H+8+39OivwRJVeP2eF8HeKgLa9+A== X-Received: by 2002:a05:600c:1910:: with SMTP id j16mr13503983wmq.39.1622312724921; Sat, 29 May 2021 11:25:24 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v15sm17990984wmj.39.2021.05.29.11.25.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 May 2021 11:25:24 -0700 (PDT) Subject: Re: bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments To: Lars Ingebrigtsen <larsi@HIDDEN> References: <0CEC46C2A06B4B8DB6502F39A05D5E45@HIDDEN> <87eh278mza.fsf@HIDDEN> <87zgwd7wd5.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> Message-ID: <f114fc71-7a70-ed78-4ec6-7fb333daf18e@HIDDEN> Date: Sat, 29 May 2021 21:25:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <87zgwd7wd5.fsf@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 16996 Cc: 16996 <at> debbugs.gnu.org, Bozhidar Batsov <bozhidar@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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.5 (/) On 29.05.2021 11:55, Lars Ingebrigtsen wrote: > The current indentation in Ruby here seems pretty natural to me, so I'm > closing this bug report. We should probably reopen it. It's not very urgent (as the bug creation date will confirm), but I wanted to get around to this someday. Bozhidar, could you confirm it's still needed (or good to have)? I wanted to find some style guide or other solid description of this style, but haven't managed to. Ruby Style Guide strategically avoids this example, and https://www.rubydoc.info/gems/rubocop/0.83.0/RuboCop/Cop/Layout/HashAlignment and https://www.rubydoc.info/gems/rubocop/0.83.0/RuboCop/Cop/Layout/ArgumentAlignment do that too. Despite that, I actually have to deal with this implicit recommendation on a regular basis at work, because when both cops are enabled, Rubocop will frown on top(1, :a => 1, :b => 2 and top 1, a: 1, b: 2 I do remember style like top(1, :a => 1, :b => 2) being popular back in the day, but AFAICT a lot of editors now (like Atom and VS Code) don't support it either.
bug-gnu-emacs@HIDDEN
:bug#16996
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 16996) by debbugs.gnu.org; 29 May 2021 08:55:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 29 04:55:17 2021 Received: from localhost ([127.0.0.1]:55978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lmukW-0007ZG-OM for submit <at> debbugs.gnu.org; Sat, 29 May 2021 04:55:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1lmukS-0007Yk-Qq for 16996 <at> debbugs.gnu.org; Sat, 29 May 2021 04:55:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=le3t4LtgCOa1Cb5jmdst9DMP3S3eOCAlwSVduDPYQBU=; b=APdwWTmBtKtGXdywqEAORr6mR2 qlTtHqi0LPRQ9HuMxi5wiQ0yiHAnkxFGXzmQpvBec3fmcqdYwaUwAaMSQMhXfB4QxdUM4K/KgAN8s ornHFRWgwmiSZ1HiVPJeNX3unUiEuGdFtGdAAaUKIsUYLJUXS6OS+/Y+3d//V0lybCh0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1lmukJ-0003lh-Ld; Sat, 29 May 2021 10:55:06 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Dmitry Gutov <dgutov@HIDDEN> Subject: Re: bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments References: <0CEC46C2A06B4B8DB6502F39A05D5E45@HIDDEN> <87eh278mza.fsf@HIDDEN> X-Now-Playing: Joni Mitchell's _Mingus_: "A Chair In The Sky" Date: Sat, 29 May 2021 10:55:02 +0200 In-Reply-To: <87eh278mza.fsf@HIDDEN> (Dmitry Gutov's message of "Wed, 12 Mar 2014 17:18:01 +0200") Message-ID: <87zgwd7wd5.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov <dgutov@HIDDEN> writes: > Bozhidar Batsov <bozhidar@HIDDEN> writes: > >> top(1, :a => 1, >> :b => 2) >> >> top(1, :a => 1, >> :b => 2) > > This looks like something that would be pretty gnarly to implement. I'm > not sur [...] Content analysis details: (-1.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: batsov.com] 1.0 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: batsov.com] X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 16996 Cc: 16996 <at> debbugs.gnu.org, Bozhidar Batsov <bozhidar@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) Dmitry Gutov <dgutov@HIDDEN> writes: > Bozhidar Batsov <bozhidar@HIDDEN> writes: > >> top(1, :a => 1, >> :b => 2) >> >> top(1, :a => 1, >> :b => 2) > > This looks like something that would be pretty gnarly to implement. I'm > not sure if we want to. Here's another example: > > top(1, { > :a => 1, > :b => 2 > }) > > If we remove the braces, would you still indent :a and :b like if the > braces were present? The current indentation in Ruby here seems pretty natural to me, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#16996
; Package emacs
.
Full text available.Received: (at 16996) by debbugs.gnu.org; 12 Mar 2014 15:18:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 11:18:16 2014 Received: from localhost ([127.0.0.1]:34778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WNkv9-0001rn-9M for submit <at> debbugs.gnu.org; Wed, 12 Mar 2014 11:18:15 -0400 Received: from mail-ea0-f175.google.com ([209.85.215.175]:44523) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <raaahh@HIDDEN>) id 1WNkv6-0001rd-Ml for 16996 <at> debbugs.gnu.org; Wed, 12 Mar 2014 11:18:13 -0400 Received: by mail-ea0-f175.google.com with SMTP id d10so4984609eaj.20 for <16996 <at> debbugs.gnu.org>; Wed, 12 Mar 2014 08:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=0unalGJWwTgMtuZjPy41813xBCaEhs9kaS5ppDStTeg=; b=YFX2T+pEoT4i9X+Hk+WcN+hzC7Qg3MY5r0HTWu/eYWlzYR34t3JU6D1dFhA67I6Zq/ BT0+mk7nl5zthaTdapwUPiC7XjRLWDUijL0Gh4dqcd/LK+Uh/vLziNI5QYgq3/bRHqle lsSZtq/N6lxjAbxbhIDsFBRZ6+ugmuFmFl8IThAWUywHcaFT+hGIdtIT++91LLI2aRyF P/Gs0O8/5xOPBkV2Nt9KtgKNj1pLs4kKN15KknN+lcEYQZ1qxZ4Sy/adcZih9Oz08vrK gIkvSBEt+z2V4nul3aQEWnxoFXKEgPvQ8nohUPseb4vg8ciP1c/6xO1736BKPmbM0nrG +e4g== X-Received: by 10.14.207.68 with SMTP id m44mr4434882eeo.79.1394637491810; Wed, 12 Mar 2014 08:18:11 -0700 (PDT) Received: from axl (83-12-07.netrunf.cytanet.com.cy. [83.168.12.7]) by mx.google.com with ESMTPSA id 43sm70960640eeh.13.2014.03.12.08.18.09 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 12 Mar 2014 08:18:10 -0700 (PDT) From: Dmitry Gutov <dgutov@HIDDEN> To: Bozhidar Batsov <bozhidar@HIDDEN> Subject: Re: bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments References: <0CEC46C2A06B4B8DB6502F39A05D5E45@HIDDEN> Date: Wed, 12 Mar 2014 17:18:01 +0200 In-Reply-To: <0CEC46C2A06B4B8DB6502F39A05D5E45@HIDDEN> (Bozhidar Batsov's message of "Wed, 12 Mar 2014 12:53:57 +0200") Message-ID: <87eh278mza.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16996 Cc: 16996 <at> debbugs.gnu.org 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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://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 (/) Bozhidar Batsov <bozhidar@HIDDEN> writes: > top(1, :a => 1, > :b => 2) > > top(1, :a => 1, > :b => 2) This looks like something that would be pretty gnarly to implement. I'm not sure if we want to. Here's another example: top(1, { :a => 1, :b => 2 }) If we remove the braces, would you still indent :a and :b like if the braces were present?
bug-gnu-emacs@HIDDEN
:bug#16996
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 12 Mar 2014 10:54:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 06:54:37 2014 Received: from localhost ([127.0.0.1]:33921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WNgnz-00080k-4m for submit <at> debbugs.gnu.org; Wed, 12 Mar 2014 06:54:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgns-00080J-23 for submit <at> debbugs.gnu.org; Wed, 12 Mar 2014 06:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgnj-00046N-1v for submit <at> debbugs.gnu.org; Wed, 12 Mar 2014 06:54:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgni-00046H-UQ for submit <at> debbugs.gnu.org; Wed, 12 Mar 2014 06:54:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgna-0006WL-82 for bug-gnu-emacs@HIDDEN; Wed, 12 Mar 2014 06:54:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgnQ-00043B-4R for bug-gnu-emacs@HIDDEN; Wed, 12 Mar 2014 06:54:10 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:33946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bozhidar.batsov@HIDDEN>) id 1WNgnP-00042k-Hr for bug-gnu-emacs@HIDDEN; Wed, 12 Mar 2014 06:54:00 -0400 Received: by mail-ea0-f170.google.com with SMTP id g15so4842277eak.15 for <bug-gnu-emacs@HIDDEN>; Wed, 12 Mar 2014 03:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:message-id:subject:mime-version:content-type; bh=70u6bcTnxLY4P0GVAWdL57veLZUisFvNPt7ywv19wlM=; b=Y2vuDiTEMmetCDKvNNruPg5zwxNH7OonMFMgiaSkeMjBTkgtt5GCMfPyEDgOLvxhY2 GwF6bnrhOwIz1Fq3EoWc434qdT6+J8wGY90QXa31fuDkKmkNfax5hS5reTUq67hjnH08 Smgj18aAvcovo+ARKdlGb1jNveTfKurbtTx12puyhVcLmMEA0GpH1Ox7eLwupd4kqTMv KL+MxHHsn3BR1D/F+Clv5ePZbUrdfKWBCFib+o908qaSjz6TFljr4jqemP0o/SIyTm7T HBZ2J3lCmOULddL2XQ0zDp90s+lb5CFeref/7pylxDEjD+7YrbGNpJ6qOm7pxOOYqfds HPOw== X-Received: by 10.15.53.135 with SMTP id r7mr2065795eew.102.1394621638151; Wed, 12 Mar 2014 03:53:58 -0700 (PDT) Received: from [10.0.1.2] (93-152-182-45.ddns.onlinedirect.bg. [93.152.182.45]) by mx.google.com with ESMTPSA id o5sm68563580eeg.8.2014.03.12.03.53.56 for <bug-gnu-emacs@HIDDEN> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Mar 2014 03:53:57 -0700 (PDT) Date: Wed, 12 Mar 2014 12:53:57 +0200 From: Bozhidar Batsov <bozhidar@HIDDEN> To: bug-gnu-emacs@HIDDEN Message-ID: <0CEC46C2A06B4B8DB6502F39A05D5E45@HIDDEN> Subject: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="53203cc5_3b0fd379_22b" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://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.0 (----) --53203cc5_3b0fd379_22b Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline The following code is indented properly: top(x, { a: 1, b: 2 }) Removing the hash literal curly braces, however, breaks the indentation: top(1, a: 1, b: 2) Ideally the code would be indented like this for consistency's sake: top(1, a: 1, b: 2) I'm not sure, however, that we can do this for the Ruby 1.9 syntax, because a and b might very well be keyword args. On the other hand there's no ambiguity when using =>: top(1, :a => 1, :b => 2) top(1, :a => 1, :b => 2) In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2014-03-04 on bozhidar-home.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 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: C-f C-f C-f C-f C-f C-f C-f C-k S t r i n g s-/ s-/ s-/ <backspace> C s-/ <return> <return> t o s <backspace> _ s SPC w i t h SPC a r g u m e n t s SPC s h o u l d SPC n o t SPC t r i g g e r SPC a n SPC o f e n <backspace> <backspace> f e n s e . SPC <backspace> C-a C-f C-f C-f C-f C-f C-e C-c C-c P P l l q <help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> <mouse-1> C-h C-a q s-r t e s t <return> C-n C-n C-n C-n C-a C-k C-k C-k C-k C-k C-k C-k <return> <return> t o p ( , <backspace> 1 , SPC 2 , SPC 3 , SPC : <backspace> : a <backspace> <backspace> b <backspace> : <backspace> a : SPC 1 , C-j <tab> : <backspace> b : SPC 2 <tab> C-e C-p C-p C-n C-e C-b C-b C-b C-b C-d SPC = > C-n C-b C-b C-b <backspace> SPC = > C-a <tab> C-p C-p C-n C-n <tab> C-p C-p C-n C-e C-b C-b C-b C-b C-b C-b C-b C-b C-f { C-d C-SPC SPC SPC C-n <tab> C-b SPC } <tab> C-p C-p C-n C-a C-f C-f C-f C-f C-f C-f C-f C-d C-d C-d C-d C-d C-d C-n <tab> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> <mouse-1> <return> C-y C-a C-SPC C-e M-w C-p C-p C-p C-b C-b C-b <backspace> <backspace> <backspace> <backspace> a <backspace> a : N <backspace> C-n C-f C-f C-f C-f <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> <backspace> b : SPC 2 <tab> C-e C-e <help-echo> <help-echo> <down-mouse-1> <drag-mouse-1> <down-mouse-1> <mouse-1> M-x r e p o r t e m a c s <return> Recent messages: Reverting buffer `cider/README.md'. [3 times] Saving file /Users/bozhidar/projects/test.rb... Wrote /Users/bozhidar/projects/test.rb Mark set Indenting region...done Mark activated Source files should end with a newline (\n). Auto-saving...done Saving file /Users/bozhidar/projects/test.rb... Wrote /Users/bozhidar/projects/test.rb Load-path shadows: /Users/bozhidar/.emacs.d/elpa/flycheck-20140107.305/.dir-locals hides /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/gnus/.dir-locals /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 mail-extr emacsbug sendmail hippie-exp superword subword ruby-tools inf-ruby ruby-mode-expansions smartparens-ruby ruby-mode smie jka-compr rst eieio-opt speedbar sb-image ezimage dframe yaml-mode ffap url-parse url-vars executable misearch multi-isearch mule-util magit-key-mode magit view epa derived epg epg-config diff-mode git-rebase-mode git-commit-mode server log-edit message 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 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-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-custom expand-region-core 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 ace-jump-mode-autoloads ack-and-a-half-autoloads diminish-autoloads elisp-slime-nav-autoloads flx-autoloads eieio byte-opt bytecomp byte-compile cconv eieio-core grizzl-autoloads ido-ubiquitous-autoloads key-chord-autoloads logito-autoloads info easymenu move-text-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads request-autoloads cl-macs gv caml-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) --53203cc5_3b0fd379_22b Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div><br></div><div>The following code is indented pr= operly:</div><div><br></div><div>top(x, =7B a: 1,</div><div> = b: 2 =7D)</div><div><br></div><div>Removing the hash= literal curly braces, however, breaks the indentation:</div><div><br></d= iv><div>top(1, a: 1,</div><div> b: 2)</div><div><br></div><d= iv>Ideally the code would be indented like this for consistency's sake:</= div><div><br></div><div>top(1, a: 1,</div><div>  = ;b: 2)</div><div><br></div><div>I'm not sure, however, that we can do thi= s for the Ruby 1.9 syntax,</div><div>because a and b might very well be k= eyword args. On the other hand</div><div>there's no ambiguity when using = =3D>:</div><div><br></div><div>top(1, :a =3D> 1,</div><div> &= nbsp; :b =3D> 2)</div><div><br></div><div>top(1, :a =3D> 1,</div><d= iv> :b =3D> 2)</div><div><br></div><div><br>= </div><div><br></div><div>In GNU Emacs 24.3.50.1 (x86=5F64-apple-darwin13= .0.0, NS apple-appkit-1265.00)</div><div> of 2014-03-04 on bozhidar-= home.local</div><div>Windowing system distributor =60Apple', version 10.3= .1265</div><div>Configured using:</div><div> =60configure --prefix=3D= /usr/local/Cellar/emacs/HEAD --without-dbus</div><div> --enable-loca= llisppath=3D/usr/local/share/emacs/site-lisp</div><div> --infodir=3D= /usr/local/Cellar/emacs/HEAD/share/info/emacs</div><div> --without-g= nutls --with-ns --disable-ns-self-contained'</div><div><br></div><div>Imp= ortant settings:</div><div> locale-coding-system: utf-8-unix</div><= div><br></div><div>Major mode: Ruby</div><div><br></div><div>Minor modes = in effect:</div><div> subword-mode: t</div><div> ruby-tools-m= ode: t</div><div> inf-ruby-minor-mode: t</div><div> diff-auto= -refine-mode: t</div><div> guru-mode: t</div><div> erc-trunca= te-mode: t</div><div> erc-spelling-mode: t</div><div> erc-lis= t-mode: t</div><div> erc-menu-mode: t</div><div> erc-autojoin= -mode: t</div><div> erc-ring-mode: t</div><div> erc-networks-= mode: t</div><div> erc-pcomplete-mode: t</div><div> erc-track= -mode: t</div><div> erc-match-mode: t</div><div> erc-button-m= ode: t</div><div> erc-fill-mode: t</div><div> erc-stamp-mode:= t</div><div> erc-netsplit-mode: t</div><div> erc-irccontrols= -mode: t</div><div> erc-noncommands-mode: t</div><div> erc-mo= ve-to-prompt-mode: t</div><div> erc-readonly-mode: t</div><div>&nbs= p; global-flycheck-mode: t</div><div> flycheck-mode: t</div><div>&n= bsp; which-function-mode: t</div><div> flx-ido-mode: t</div><div>&n= bsp; ido-ubiquitous-mode: t</div><div> winner-mode: t</div><div>&nb= sp; global-undo-tree-mode: t</div><div> undo-tree-mode: t</div><div= > whitespace-mode: t</div><div> global-anzu-mode: t</div><div= > anzu-mode: t</div><div> projectile-global-mode: t</div><div= > projectile-mode: t</div><div> flyspell-mode: t</div><div>&n= bsp; shell-dirtrack-mode: t</div><div> volatile-highlights-mode: t<= /div><div> global-hl-line-mode: t</div><div> recentf-mode: t<= /div><div> savehist-mode: t</div><div> show-smartparens-globa= l-mode: t</div><div> show-smartparens-mode: t</div><div> smar= tparens-mode: t</div><div> global-auto-revert-mode: t</div><div>&nb= sp; delete-selection-mode: t</div><div> prelude-global-mode: t</div= ><div> prelude-mode: t</div><div> tooltip-mode: t</div><div>&= nbsp; electric-indent-mode: t</div><div> mouse-wheel-mode: t</div><= div> menu-bar-mode: t</div><div> file-name-shadow-mode: t</di= v><div> global-font-lock-mode: t</div><div> font-lock-mode: t= </div><div> auto-composition-mode: t</div><div> auto-encrypti= on-mode: t</div><div> auto-compression-mode: t</div><div> siz= e-indication-mode: t</div><div> column-number-mode: t</div><div>&nb= sp; line-number-mode: t</div><div> transient-mark-mode: t</div><div= ><br></div><div>Recent input:</div><div>C-f C-f C-f C-f C-f C-f C-f C-k S= t r i n g s-/ s-/</div><div>s-/ <backspace> C s-/ <return> &= lt;return> t o s <backspace></div><div>=5F s SPC w i t h SPC a r= g u m e n t s SPC s h o u l</div><div>d SPC n o t SPC t r i g g e r SPC = a n SPC o f e n <backspace></div><div><backspace> f e n s e .= SPC <backspace> C-a C-f C-f</div><div>C-f C-f C-f C-e C-c C-c P P = l l q <help-echo> <help-echo></div><div><help-echo> <= ;help-echo> <down-mouse-1> <mouse-1> C-h</div><div>C-a q s= -r t e s t <return> C-n C-n C-n C-n C-a C-k</div><div>C-k C-k C-k C= -k C-k C-k <return> <return> t o p ( ,</div><div><backspac= e> 1 , SPC 2 , SPC 3 , SPC : <backspace> :</div><div>a <backs= pace> <backspace> b <backspace> : <backspace></div><= div>a : SPC 1 , C-j <tab> : <backspace> b : SPC 2 <tab>= </div><div>C-e C-p C-p C-n C-e C-b C-b C-b C-b C-d SPC =3D > C-n</div>= <div>C-b C-b C-b <backspace> SPC =3D > C-a <tab> C-p C-p C= -n</div><div>C-n <tab> C-p C-p C-n C-e C-b C-b C-b C-b C-b C-b C-b<= /div><div>C-b C-f =7B C-d C-SPC SPC SPC C-n <tab> C-b SPC =7D <t= ab></div><div>C-p C-p C-n C-a C-f C-f C-f C-f C-f C-f C-f C-d C-d</div= ><div>C-d C-d C-d C-d C-n <tab> <help-echo> <help-echo>= <help-echo></div><div><help-echo> <help-echo> <down= -mouse-1> <mouse-1> <return></div><div>C-y C-a C-SPC C-e M= -w C-p C-p C-p C-b C-b C-b <backspace></div><div><backspace> = <backspace> <backspace> a <backspace> a</div><div>: N &= lt;backspace> C-n C-f C-f C-f C-f <backspace> <backspace><= /div><div><backspace> <backspace> <backspace> <backs= pace> <backspace></div><div>b : SPC 2 <tab> C-e C-e <he= lp-echo> <help-echo> <down-mouse-1></div><div><drag-mou= se-1> <down-mouse-1> <mouse-1> M-x r e p o</div><div>r t e= m a c s <return></div><div><br></div><div>Recent messages:</div><d= iv>Reverting buffer =60cider/README.md'. =5B3 times=5D</div><div>Saving f= ile /Users/bozhidar/projects/test.rb...</div><div>Wrote /Users/bozhidar/p= rojects/test.rb</div><div>Mark set</div><div>Indenting region...done</div= ><div>Mark activated</div><div>Source files should end with a newline (=5C= n).</div><div>Auto-saving...done</div><div>Saving file /Users/bozhidar/pr= ojects/test.rb...</div><div>Wrote /Users/bozhidar/projects/test.rb</div><= div><br></div><div>Load-path shadows:</div><div>/Users/bozhidar/.emacs.d/= elpa/flycheck-20140107.305/.dir-locals hides /usr/local/Cellar/emacs/HEAD= /share/emacs/24.3.50/lisp/gnus/.dir-locals</div><div>/Users/bozhidar/.ema= cs.d/elpa/tabulated-list-20120406.2251/tabulated-list hides /usr/local/Ce= llar/emacs/HEAD/share/emacs/24.3.50/lisp/emacs-lisp/tabulated-list</div><= div><br></div><div>=46eatures:</div><div>(shadow sort mail-extr emacsbug = sendmail hippie-exp superword subword</div><div>ruby-tools inf-ruby ruby-= mode-expansions smartparens-ruby ruby-mode smie</div><div>jka-compr rst e= ieio-opt speedbar sb-image ezimage dframe yaml-mode ffap</div><div>url-pa= rse url-vars executable misearch multi-isearch mule-util</div><div>magit-= key-mode magit view epa derived epg epg-config diff-mode</div><div>git-re= base-mode git-commit-mode server log-edit message rfc822 mml</div><div>mm= l-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045</d= iv><div>ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util a= dd-log</div><div>vc-git markdown-mode noutline outline rainbow-mode color= </div><div>rainbow-delimiters elisp-slime-nav guru-mode prelude-key-chord= key-chord</div><div>prelude-xml nxml-mode-expansions html-mode-expansion= s smartparens-html</div><div>rng-nxml rng-valid rng-loc rng-uri rng-parse= nxml-parse rng-match rng-dt</div><div>rng-util rng-pttrn nxml-ns nxml-mo= de nxml-outln nxml-rap nxml-util</div><div>nxml-glyph nxml-enc xmltok pre= lude-scheme prelude-ruby prelude-perl</div><div>prelude-org prelude-js pr= elude-erc erc-truncate erc-autoaway</div><div>erc-spelling erc-notify erc= -log erc-list erc-menu erc-join erc-ring</div><div>erc-networks erc-pcomp= lete erc-track erc-match erc-button erc-fill</div><div>erc-stamp erc-nets= plit erc-goodies erc erc-backend erc-compat</div><div>prelude-emacs-lisp = prelude-css prelude-common-lisp slime-autoloads</div><div>prelude-clojure= prelude-lisp prelude-c prelude-programming flycheck</div><div>help-mode = rx f which-func imenu prelude-ido smex flx-ido flx</div><div>ido-ubiquito= us warnings ido prelude-osx exec-path-from-shell</div><div>prelude-global= -keybindings prelude-editor winner undo-tree diff esh-var</div><div>esh-i= o esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell</div><= div>esh-module esh-mode esh-util re-builder whitespace browse-kill-ring</= div><div>midnight ediff-merg ediff-wind ediff-diff ediff-mult ediff-help<= /div><div>ediff-init ediff-util ediff dired-x dired anzu projectile pkg-i= nfo</div><div>find-func grep compile s bookmark pp expand-region text-mod= e-expansions</div><div>er-basic-expansions expand-region-custom expand-re= gion-core flyspell</div><div>ispell tramp tramp-compat auth-source gnus-u= til mm-util mail-prsvr</div><div>password-cache tramp-loaddefs trampver s= hell pcomplete comint ansi-color</div><div>format-spec etags ring volatil= e-highlights hl-line windmove recentf</div><div>tree-widget wid-edit save= hist saveplace diminish smartparens-config</div><div>smartparens autoreve= rt filenotify delsel prelude-mode easy-mmode edmacro</div><div>kmacro pre= lude-core epl advice help-fns dash thingatpt prelude-ui</div><div>zenburn= -theme prelude-packages finder-inf ace-jump-mode-autoloads</div><div>ack-= and-a-half-autoloads diminish-autoloads elisp-slime-nav-autoloads</div><d= iv>flx-autoloads eieio byte-opt bytecomp byte-compile cconv eieio-core</d= iv><div>grizzl-autoloads ido-ubiquitous-autoloads key-chord-autoloads</di= v><div>logito-autoloads info easymenu move-text-autoloads</div><div>rainb= ow-delimiters-autoloads rainbow-mode-autoloads request-autoloads</div><di= v>cl-macs gv caml-autoloads volatile-highlights-autoloads</div><div>yaml-= mode-autoloads package cl cl-loaddefs cl-lib time-date tooltip</div><div>= electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win</div>= <div>tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomme= nt</div><div>lisp-mode prog-mode register page menu-bar rfn-eshadow timer= select</div><div>scroll-bar mouse jit-lock font-lock syntax facemenu fon= t-core frame cham</div><div>georgian utf-8-lang misc-lang vietnamese tibe= tan thai tai-viet lao</div><div>korean japanese hebrew greek romanian slo= vak czech european ethiopic</div><div>indian cyrillic chinese case-table = epa-hook jka-cmpr-hook help simple</div><div>abbrev minibuffer nadvice lo= addefs button faces cus-face macroexp files</div><div>text-properties ove= rlay sha1 md5 base64 format env code-pages mule</div><div>custom widget h= ashtable-print-readable backquote make-network-process</div><div>cocoa ns= multi-tty emacs)</div><div><br></div> --53203cc5_3b0fd379_22b--
Bozhidar Batsov <bozhidar@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#16996
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.