lilypond-devel
[Top][All Lists]
Advanced

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

Re: Syntax of lilypond-words.el


From: Ed Baskerville
Subject: Re: Syntax of lilypond-words.el
Date: Fri, 17 Mar 2006 15:27:06 -0800

Ah, then I have one more question: are the preceding lines

\( - _ \) -
\[ - _ \] -
< - _ > -
<< - _ >> -
\\\( - _ \\\) -
\\\[ - _ \\\] -
\\\< - _ \\\! -
\\\> - _ \\\! -

also used for insertion, not for matching? That is: are the matching patterns embedded in the .el source files for the mode?

--Ed

On Mar 17, 2006, at 2:41 PM, Heikki Johannes Junes wrote:

You may safely skip these lines.

The shorthand syntax has been used to create some inserting patterns into
the emacs menu. The syntax is anyway experimental:

\keyword            - some keyword
  -                 - start of shorthand syntax
    %               - ask some syntax (e.g. a number) in this point
    {               - some character
_ - character to be replace with the highlighted text
    }               - an another character
\? { } \! - ask whether to insert the block between \? and \!
  -                 - end of shorthand syntax

Does anybody use these shorthands defined for emacs? Originally I wanted to insert simultaneously \sustainDown and \sustainUp, \< and \|, [ and ], etc. to the left and right side of the block which had been highlighted.

Heikki

On Fri, 17 Mar 2006 14:14:38 -0800 Ed Baskerville <address@hidden> wrote:

Hi everybody,

I'm (finally) doing some more work on LilyPad. To do syntax coloring/
completion/parenthesis matching, I'm just going to read in lilypond-
words.el from the selected version of LilyPond, so the behavior is
always up to date.

However, I'm a little confused about the function of these lines at
the end of the file:

\\center - \ << _ >> -
\\column - \ << _ >> -
\\context\ Staff\ = - % { _ } -
\\context\ Voice\ = - % { _ } -
\\markup - { _ } -
\\notes - { _ } -
\\relative - % { _ } -
\\score - { \\n \? \\simultaneous { \\n _ \\n } \! \\n \\paper {  } \
\n \? \\midi {  } \\n \! } \\n -
\\simultaneous - { _ } -
\\sustainDown - _ \\sustainUp -
\\times - % { _ } -
\\transpose - % { _ } -

What are these being used for? What is the syntax? I apologize if
this should be obvious from the elisp code, but I'm a bit of an
ignoramus when it comes to both Emacs and Lisp.

Thanks,
Ed



_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel


--
Terveisin
Heikki Junes





reply via email to

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