From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Indentation in the METAPOST mode. Date: Thu, 09 Aug 2007 08:05:42 +0100 Message-ID: References: <87y7gl7c94.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1186643237 17951 80.91.229.12 (9 Aug 2007 07:07:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2007 07:07:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 09 09:07:15 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 1IJ271-0007A6-IS for ged-emacs-devel@m.gmane.org; Thu, 09 Aug 2007 09:07:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJ271-0007yI-2U for ged-emacs-devel@m.gmane.org; Thu, 09 Aug 2007 03:07:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJ26y-0007yD-G2 for emacs-devel@gnu.org; Thu, 09 Aug 2007 03:07:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJ26w-0007xz-2B for emacs-devel@gnu.org; Thu, 09 Aug 2007 03:07:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJ26v-0007xw-Tj for emacs-devel@gnu.org; Thu, 09 Aug 2007 03:07:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IJ26v-0008VZ-8m for emacs-devel@gnu.org; Thu, 09 Aug 2007 03:07:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IJ26u-0002PO-MW for emacs-devel@gnu.org; Thu, 09 Aug 2007 03:07:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IJ26r-0005eM-7t for emacs-devel@gnu.org; Thu, 09 Aug 2007 09:07:05 +0200 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Aug 2007 09:07:05 +0200 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Aug 2007 09:07:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 Emacs/23.0.0 (20070727) Fedora 7 (gnu/linux) Cancel-Lock: sha1:cxcL3tDDTXZ4KGwI7TfQtCLBSZ8= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:76243 Archived-At: On 2007-08-09 02:00 +0100, Michaël Cadilhac wrote: > Indentation in the METAPOST mode has, IMO, two major flaws : > > 1. A bug. If the buffer starts with beginfig, the contents of the figure > is not properly indented (it stays on the first column). > > 2. When wrapping an expression on several lines, the indentation is the > same for each line, this is bad style : I'd prefer > > beginfig(1) > draw (0,0)--(1,2)--(10,3)-- > (0,1)--(10,3); > draw (2,2); > endfig > > I propose the following patch which considers that keywords like > beginfig does not need ending semicolon (it's /quite/ the case). I haven't used metapost deeply but the proposed change by Michaël is consistent with examples in: http://www.ursoswald.ch/metapost/tutorial.html HTH, -- Leo (GPG Key: 9283AA3F)