#571 Add example .nedit to release tarball

open
Prebuilds (14)
9
2006-11-21
2006-11-21
No

Discussion

<< < 1 2 (Page 2 of 2)
  • Joerg Fischer

    Joerg Fischer - 2008-01-13

    Logged In: YES
    user_id=918104
    Originator: NO

    I've rewritten the rangeset macro collection on niki
    (http://nedit.hackvalue.nl/niki/index.php/RangesetMacroCollection)

    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.

     
  • Nobody/Anonymous

    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
    http://nedit.hackvalue.nl/niki/images/8/8b/Neman.nm.txt

    We can comment out highlighting and add comment like
    "Contributed by T.Balinsky, T.Haude and A.Kuznetsov"

    Alexey Kuznetsov

     
  • Thorsten Haude

    Thorsten Haude - 2008-01-14

    Logged In: YES
    user_id=119143
    Originator: 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.)

     
  • Thorsten Haude

    Thorsten Haude - 2008-01-17

    Logged In: YES
    user_id=119143
    Originator: YES

    Uses Jörg's man viewer acceleration and adds some comments.
    File Added: dotNEdit.2008-01-17.1.tar.gz

     
  • Bert Wesarg

    Bert Wesarg - 2008-01-18

    Logged In: YES
    user_id=122956
    Originator: NO

    define rmTrailingSpaces
    {
    replace_all("\\s*\n", "\n", "regex")
    }

    is a "\\s+\n" not a little faster?

     
  • Bert Wesarg

    Bert Wesarg - 2008-01-18

    Logged In: YES
    user_id=122956
    Originator: NO

    or even better:

    replace_all("\\s+$", "", "regex")

    BTW: have anyone do this on the NEdit code base itself?

     
  • Thorsten Haude

    Thorsten Haude - 2008-01-18

    Logged In: YES
    user_id=119143
    Originator: YES

    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.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi,

    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.

    Alexey Kuznetsov

    $NEDIT_HOME = getenv("NEDIT_HOME")
    if($NEDIT_HOME == "")
    $NEDIT_HOME = getenv("HOME") "/.nedit"

    load_macro_file($NEDIT_HOME "/macros/util.nm")
    load_macro_file($NEDIT_HOME "/macros/smartKeys.nm")
    load_macro_file($NEDIT_HOME "/macros/sh2html.nm")
    load_macro_file($NEDIT_HOME "/macros/manViewer.nm")

    # Following would be preferable.
    define load_macros{
    if(!$n_args)
    return
    for(aKey in $args)
    load_macro_file($NEDIT_HOME "/macros/" $args[aKey])
    }

    load_macros("util.nm", "smartKeys.nm", "sh2html.nm", "manViewer.nm")

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks