As discussed here:
Logged In: YES
Please have a look at the attached tarball.
I'm not too happy about the calltips, does anyone have better examples?
New version with calltip files from Tony. Please have a look.
File Added: dotNEdit.tar.gz
Logged In: YES
The nedit.styles for 'Library Call1', 'Library Call2', 'Library Call3' are missing in the c-extended-0.9.5.pats file.
So I get an error. And the $NEDIT_HOME variable is read only in autoload.nm.
- The whole should be seen as a set, not to be used individually. The styles are included in nedit.rc
- Do you use my Patch Collection? I added $NEDIT_HOME with exactly the same semantics, just comment it out if you want to test it.
File Added: dotNEdit.2008-01-05.1.tar.gz
Logged In: YES
new("window", "transient") ?
unixWrapper.nm should be renamed to manpage-viewer.nm.
make sure to pick up the last one! You have the old Word Complete and
Fill Sel./wChar macros and the uncomment macro fixes are missing.
missing keybinding for Tab, to be set in .Xdefaults like
nedit*text.Translations: #override \n\
~Shift~Alt~Meta~Ctrl<KeyPress>Tab : macro_menu_command()
Notice, it must be <KeyPress>, only <Key> won't do in this case. (Is
this obvious for an average user?)
Missing purpose statement. For instance: This macro transforms an NEdit
window with syntax highlighting to a properly colored HTML page. Useful
also for a print out.
Some more comments:
Any serious such package should contain a macro interface to rangesets,
since rangesets are available only through macros. Other candidates
would be restoring the last session, and quickly change text fonts
(including realizing language mode dependent fonts via the smart-indent
initialization - eg, use a proportional font for e-mail language mode).
Transient: Sorry, version bleed
unixWrapper.nm: Renamed to manViewer.nm
nedit.rc: I merged the new versions by hand, please re-check.
smartKey.nm: I never used a resource for that, I simply added 'Tab' to nedit.rc by hand. This worked fine with Lesstif, but Open Motif has a bug here. Now the resource would break the 'NEDIT_HOME=. nedit' thing, so I'd rather leave the macro unbound than add additional complications. (Note that there is no menu entry at the moment.)
sh2html.nm: I added a small explanation to README.
Rangesets: So you have a particular macro in mind?
Let me know if I missed something.
File Added: dotNEdit.2008-01-13.1.tar.gz
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"
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
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.