As discussed here:
Logged In: YES
I've rewritten the rangeset macro collection on niki
Btw, for my own macros I use a simplistic version of "On Demand Macro Loading". I'll post a link for the few additions I have in mind, it's coming soon.
Logged In: NO
Sorry, manViewer.nm does not work for me.
a) undefined macro countChar("\\n", aproposResult, "regex")) is called by getManSection.
b) two empty rangesets are created, i.e. boldRS and underlineRS
c) autoload.nm loads manViewer.nm which cannot be used "as is". Some initiated macro is added directly in macro menu via nedic.rc to prepare nMan call. Seems, that is bad practice.
I think, neman.nm can be used instead manViewer.nm
We can comment out highlighting and add comment like
"Contributed by T.Balinsky, T.Haude and A.Kuznetsov"
Logged In: YES
I have to admit that I don't quite understand the angle you are coming from. I asked you more than once, in more than one medium to work on merging our two solutions. You did not reply. Now you are picking the bug tracker of all places to have this discussion?
There is no problem with manViewer.nm. Just don't pick a single file from a set of files and expect it to work. The function you are missing is provided in util.nm (which is also autoloaded). The whole idea is to provide a coordinated set, not just a bunch of single files; you can have plenty of those from somewhere else. So of course I put library functions in their own module to advocate reuse. Of course I add menu items because easy access to external macros is what NEdit is lacking.
I provided some explanation in the tarball's README. Please let me know how to improve the text. And please, let's work on merging the two man viewers. (And after that, maybe the two spell checker.)
>I'll post a link for the few additions I have in mind,
Here it is
Uses Jörg's man viewer acceleration and adds some comments.
File Added: dotNEdit.2008-01-17.1.tar.gz
Logged In: YES
replace_all("\\s*\n", "\n", "regex")
is a "\\s+\n" not a little faster?
or even better:
replace_all("\\s+$", "", "regex")
BTW: have anyone do this on the NEdit code base itself?
Your first is faster, I'd say, though I never noticed a delay. I don't see why your second version should be faster still.
>BTW: have anyone do this on the NEdit code base itself?
Not that I know of, but I would expect many hits.
Content of the autoload.nm is based on the assumption that
$NEDIT_HOME is defined. That is wrong.
Unfortunately, file attaching or uploading is unavailable for me, so I put macros in the message.
$NEDIT_HOME = getenv("NEDIT_HOME")
if($NEDIT_HOME == "")
$NEDIT_HOME = getenv("HOME") "/.nedit"
# Following would be preferable.
for(aKey in $args)
load_macro_file($NEDIT_HOME "/macros/" $args[aKey])
load_macros("util.nm", "smartKeys.nm", "sh2html.nm", "manViewer.nm")
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.