emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentation in the METAPOST mode.


From: Leo
Subject: Re: Indentation in the METAPOST mode.
Date: Thu, 09 Aug 2007 08:05:42 +0100
User-agent: Gnus/5.110007 Emacs/23.0.0 (20070727) Fedora 7 (gnu/linux)

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 <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]