Hi,
So, here is a "lisp thing": the discussion was about the 2 first sections.
Because I am not a lisp-expert, I only tried to find a recurrent relation
between the section number and the parameters in the function
"jde-import-group-rules" but I failed. What is the meaning of 0 (sometimes 1)
in the second parameter? Is this a relation with this and the section number
(for example, if I don't like 2 but 1 or 3 ... first section?).
Regards,
Fenintsoa
Jeff Jensen a �crit :
> The rules are regular expressions (commonly referred to as "regexps" and
> "RE"). Regular expressions are not a "lisp thing", they are a stand alone
> "language". Many different languages, programs, platforms, etc. use them.
>
> There are many sources of learning about regular expressions. Some Unix
> books have a brief overview of them, as Unix programs often use them. One
> recommended thorough source is the O'Reilly book "Regular Expressions".
>
> Emacs info has an overview of regular expressions. Try C-h i, choose Emacs,
> search for "regular expressions", and choose the topic "Regexps". Hopefully
> that explanation will help you create your rules. Regexps are often
> confusing at first, so take your time and read the info many times.
>
> If you have access to a Unix system, you may want to experiment with the
> program egrep, and read its man page.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On
> Behalf Of andriamasinoro fenintsoa
> Sent: Saturday, November 18, 2000 11:51 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: How to make rules?
>
> Hi,
>
> You set in your example the management of packages which are sorted from
> the first two sections names. But generally, where a non-lisp expert
> like me can find all rules? Is there a pre-defined one or is there a way
> to build it?
>
> I really appreciate your work, it works for me. However, when I begin
> to learn your rules-syntax example (that I mechanically copy-paste for
> the moment), it seems a maze for me, making my future customization
> hard.
>
> ***************
> So now to automatically insert the line break on changes in the first
> two sections of the package/domain you can set `jde-import-group-rules'
> like the following:
>
> '(("^javax?\\.") ("^[^.]+[.][^.]+[.]" . 0))
>
> And imports statements will be organized in:
>
> - a first group for standard java packages.
> - a group for each package with different first two sections.
> - a last group for imports not belonging to the above ones.
>
> See the source code for more details on how to customize
> `jde-import-group-rules'.
>
> ***********
>
> Thanks for more information
>
> Fenintsoa
>
--
[@666[]]::::::::::::::::::::::::::::::::::>
andriamasinoro fenintsoa
multi-agent researcher
iremia university of La R�union
France
T�l: 02 62 81 68 63 (portable) / 02 62 93 83 24 (office)
Fax: 02 62 93 82 60
E-Mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
----------------------------