From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Indentation of LISP code Date: Thu, 05 Apr 2007 11:45:36 -0400 Message-ID: References: <11332127.71111175785804482.JavaMail.www@wwinf4206> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175787971 5101 80.91.229.12 (5 Apr 2007 15:46:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2007 15:46:11 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 05 17:46:08 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZU9v-0004aP-M2 for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2007 17:45:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZUDJ-0006os-6Y for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2007 11:49:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZUDF-0006oi-HG for emacs-devel@gnu.org; Thu, 05 Apr 2007 11:49:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZUDA-0006oR-8c for emacs-devel@gnu.org; Thu, 05 Apr 2007 11:49:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZUDA-0006oO-22 for emacs-devel@gnu.org; Thu, 05 Apr 2007 11:49:20 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZU9l-0002Vb-Q6 for emacs-devel@gnu.org; Thu, 05 Apr 2007 11:45:49 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id F10E82CF26C; Thu, 5 Apr 2007 11:45:48 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 602823FE0; Thu, 5 Apr 2007 11:45:36 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4A1116C7EF; Thu, 5 Apr 2007 11:45:36 -0400 (EDT) In-Reply-To: <11332127.71111175785804482.JavaMail.www@wwinf4206> (A. Soare's message of "Thu\, 5 Apr 2007 17\:10\:04 +0200 \(CEST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69087 Archived-At: > In this moment one ignores the indentation of commented lines with ;;; > like this one: ;;; this is a commented line. > However: > (defun lisp-indent-region (start end) > "Indent every line whose first char is between START and END inclusive." > (save-excursion > (asa;;;a <=<= THIS LINE IS NOT IGNORED, IT IS TREATED AS DOUBLE COMMENTED > )) > ) > (USE INDENT REGION TO INDENT) > In future (after the release) this indentation should be ignored too or > treated as double commented ;;? I don't understand the problem. The only difference I can see is that a space gets added before ";;;". Lisp's indent-region does both re-indent the code and the comments, so it's completely expected behavior. Stefan