Re: How to do proper indentation?

2012-12-02 Thread Graham Percival
On Fri, Nov 30, 2012 at 02:16:21AM +0100, Thomas Morley wrote:
 Trying to minimize my lack of knowledge on this topic I searched the
 CG about It.
 
 CG 10.5.3 Indentation
 mentions possibilities for emacs and vim, but I'm not familiar with them.
 I'm using jEdit or gedit
 
 Following the link in
 CG 10.3.2 Desired file formatting
 http://community.schemewiki.org/?scheme-style
 doesn't help here.

We now have a
  scripts/auxiliar/fixscm.sh
file which does the scheme formatting.  You need to have emacs
installed for it to work, though.

- Graham

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: How to do proper indentation?

2012-11-30 Thread Marc Hohl

Am 30.11.2012 02:16, schrieb Thomas Morley:

Hi,

reviewing
https://codereview.appspot.com/6850073/
Pál admonished to do better indentation on lists at different levels.

Trying to minimize my lack of knowledge on this topic I searched the
CG about It.

CG 10.5.3 Indentation
mentions possibilities for emacs and vim, but I'm not familiar with them.
I'm using jEdit or gedit

Following the link in
CG 10.3.2 Desired file formatting
http://community.schemewiki.org/?scheme-style
doesn't help here.

My own guess would be (file is attached, too):

showSimpleRest =
#(define-scheme-function (parser location dots)
   (string?)
   (make-override-markup (cons 'baseline-skip 7)
(make-column-markup
 (map   
  (lambda (style)
   (make-line-markup [...]

I think that the indentation level is 2 spaces, and function arguments are
supposed to be aligned vertically, see the attached file.

HTH,

Marc


showSimpleRest =
#(define-scheme-function (parser location dots) (string?)
   (make-override-markup (cons 'baseline-skip 7)
 (make-column-markup
   (map
 (lambda (style)
 (make-line-markup
   (list
 (make-pad-to-box-markup
   '(0 . 20) '(0 . 0)
(symbol-string style))
 (make-override-markup
   (cons 'line-width 60)
   (make-override-markup
 (cons 'style style)
 (make-fill-line-markup
   (map
 (lambda (duration)
 (make-rest-markup
   (if (string? duration)
   duration
   (string-append
 (number-string (expt 2 duration))
 (if (= duration 0) dots )
 (append '(maxima longa breve)(iota 8)
 '(default
   mensural
   neomensural
   classical
   baroque
   altdefault
   petrucci
   blackpetrucci
   semipetrucci
   kievan)
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: How to do proper indentation?

2012-11-30 Thread Thomas Morley
2012/11/30 Marc Hohl m...@hohlart.de:
 Am 30.11.2012 02:16, schrieb Thomas Morley:

 Hi,

 reviewing
 https://codereview.appspot.com/6850073/
 Pál admonished to do better indentation on lists at different levels.

 Trying to minimize my lack of knowledge on this topic I searched the
 CG about It.

 CG 10.5.3 Indentation
 mentions possibilities for emacs and vim, but I'm not familiar with them.
 I'm using jEdit or gedit

 Following the link in
 CG 10.3.2 Desired file formatting
 http://community.schemewiki.org/?scheme-style
 doesn't help here.

 My own guess would be (file is attached, too):

 showSimpleRest =
 #(define-scheme-function (parser location dots)
(string?)
(make-override-markup (cons 'baseline-skip 7)
 (make-column-markup
  (map
   (lambda (style)
(make-line-markup [...]

 I think that the indentation level is 2 spaces, and function arguments are
 supposed to be aligned vertically, see the attached file.

 HTH,

 Marc



 ___
 lilypond-devel mailing list
 lilypond-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-devel


Hi Marc,

thanks a lot.

-Harm

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


How to do proper indentation?

2012-11-29 Thread Thomas Morley
Hi,

reviewing
https://codereview.appspot.com/6850073/
Pál admonished to do better indentation on lists at different levels.

Trying to minimize my lack of knowledge on this topic I searched the
CG about It.

CG 10.5.3 Indentation
mentions possibilities for emacs and vim, but I'm not familiar with them.
I'm using jEdit or gedit

Following the link in
CG 10.3.2 Desired file formatting
http://community.schemewiki.org/?scheme-style
doesn't help here.

My own guess would be (file is attached, too):

showSimpleRest =
#(define-scheme-function (parser location dots)
  (string?)
  (make-override-markup (cons 'baseline-skip 7)
   (make-column-markup
(map
 (lambda (style)
  (make-line-markup
   (list
(make-pad-to-box-markup '(0 . 20) '(0 . 0)
 (symbol-string style))
  (make-override-markup (cons 'line-width 60)
   (make-override-markup (cons 'style style)
(make-fill-line-markup
 (map
  (lambda (duration)
   (make-rest-markup
(if (string? duration)
  duration
  (string-append
   (number-string (expt 2 duration))
   (if (= duration 0) dots )
 (append '(maxima longa breve)(iota 8)
'(default
  mensural
  neomensural
  classical
  baroque
  altdefault
  petrucci
  blackpetrucci
  semipetrucci
  kievan)

Is this ok?
If not, how to do? Or where to look to learn it?


-Harm


indentation.ly
Description: Binary data
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel