From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Indentation level in Javascript Date: Sun, 09 Sep 2012 06:08:49 +0400 Message-ID: <504BFA31.4020400@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347156536 31571 80.91.229.3 (9 Sep 2012 02:08:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2012 02:08:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: sdl.web@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 09 04:08:59 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAWxH-0006nJ-2y for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2012 04:08:59 +0200 Original-Received: from localhost ([::1]:49768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWxD-0004ZN-Ia for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2012 22:08:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWxB-0004ZI-9i for emacs-devel@gnu.org; Sat, 08 Sep 2012 22:08:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAWx9-0004CD-CJ for emacs-devel@gnu.org; Sat, 08 Sep 2012 22:08:53 -0400 Original-Received: from forward15.mail.yandex.net ([95.108.130.119]:59700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWx9-00049b-04 for emacs-devel@gnu.org; Sat, 08 Sep 2012 22:08:51 -0400 Original-Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward15.mail.yandex.net (Yandex) with ESMTP id 4691E9E12A4; Sun, 9 Sep 2012 06:08:49 +0400 (MSK) Original-Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 221FC7E021A; Sun, 9 Sep 2012 06:08:49 +0400 (MSK) Original-Received: from 5x166x246x245.dynamic.spb.ertelecom.ru (5x166x246x245.dynamic.spb.ertelecom.ru [5.166.246.245]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8m9WVAor-8m9KRsK2; Sun, 9 Sep 2012 06:08:48 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1347156529; bh=4lpwKXe2p1PegXO4L7ia9C6fxy8iDE1jXzb0B4eU304=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=TKW0gflXaOaaIyUxohxaF48T41sra5iAgVLjGKeEHu/BkNY3INBaZejVaVxULH8BR XixOpeT4XkVCKXY6G3BghAossD7LO9E5e/3IZ74zc796GWv6SkeWAFLOLqHNMfrsXw 5d8UEFwMK2NeA8r0ggTxWXhnYVh8xmsqsumpboy4= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 95.108.130.119 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153189 Archived-At: Leo writes: > On 2012-09-09 02:14 +0800, Lars Ingebrigtsen wrote: >> According to >> >> http://atroche.org/post/30994290348/javascript-indentation >> >> the most widely used (and recommended) indentation in Javascript is two >> spaces. >> >> `js-indent-level' defaults to 4. Would it make sense to change this? > > Quite a few programmers dislike 2 as basic offset; see > http://news.ycombinator.com/item?id=4492532 for some good points. Different people have different preferences, true. How does that make using the most popular value as default a bad idea?