Thorsten Haude wrote:

> So, is this instead of, in addition to or totally ignoring the
> proposals added one day after in the bug report?

The patch I posted merely fixes the macros by ensuring the assumptions
made on the selection (that is, to be a single comment), which the
default macros forgot.

The proposal you mention is to try to handle possibly many comments in
the selection, which isn't related to the bug report as such.  If you
like to follow this proposal, please notice that the proposed macros
need some re-writing.

The first one does a replacement with substitution, where the size of
the search pattern and hence the length of the substitution string
isn't bounded, but there is a limit of the size of such replacements
(although this limit was increased for the next release).

The "Bar Uncomment" macro loops over a selection (possibly a whole
file then) and creates with each loop (i.e., each found bar comment)
at least another string roughly of the size of the selection. [garbage
collection!]  This is just because it superfluously operates on a 
macro string copy of the selection.

Jörg
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to