From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.help Subject: Re: Indentation in emacs 21.2.1 Date: 30 Aug 2002 10:37:47 +0200 Organization: CWI, Amsterdam Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030697088 14975 127.0.0.1 (30 Aug 2002 08:44:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2002 08:44:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17khOW-0003t0-00 for ; Fri, 30 Aug 2002 10:44:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17khPs-0003AF-00; Fri, 30 Aug 2002 04:46:08 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!news01.chello.se!amsnews01.chello.com!newsfeed.wxs.nl!news2.kpn.net!news.kpn.net!surfnet.nl!news.surfnet.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: occarina.pna.cwi.nl Original-X-Trace: news.surfnet.nl 1030696667 10121 192.16.184.200 (30 Aug 2002 08:37:47 GMT) Original-X-Complaints-To: usenet@news.surfnet.nl Original-NNTP-Posting-Date: Fri, 30 Aug 2002 08:37:47 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 In-Reply-To: Original-Xref: nntp.stanford.edu gnu.emacs.help:104316 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:888 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:888 Jyri Seiger writes: > I've installed emacs 21.2.1 lately, and found that combination C-M-Q, > which used to work in previous versions of emacs for code indentation > doesn't work :( And if I call indent-sexp then indentation looks > very weird i.e. first level is shifted by 20 spaces (I have set > indent-tabs-mode to nil), second level is shifted by 18 spaces from > the previous level, third level is shifted by 12 spaces. So my question > is: is there something changed in the indentation in new emacs version? Yes, GNU Emacs now conforms to the new GNU Coding Standards. Nesting is considered bad. Sequential programs are much easier to understand and maintain than programs with loops and conditional statements. Hence the Standards prescribe an indentation depth of twenty for the first level of nesting to discourage it. Subsequent nesting is considered to be even worse, but after one level of nesting the Standards more or less give up on you and don't punish you that much anymore as for the first level. Standards are good! So please use the GNU Coding Standards! Lute. -- (spook) => "argus computer terrorism Albanian" (insert-file-contents "~/.signature") => (error "`~/.signature' too rude")