#571 Add example .nedit to release tarball

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

Discussion

  • Thorsten Haude
    Thorsten Haude
    2006-11-22

    Logged In: YES
    user_id=119143
    Originator: YES

    Please have a look at the attached tarball.

    I'm not too happy about the calltips, does anyone have better examples?

     
  • Thorsten Haude
    Thorsten Haude
    2007-01-04

    Logged In: YES
    user_id=119143
    Originator: YES

    New version with calltip files from Tony. Please have a look.
    File Added: dotNEdit.tar.gz

     
  • Thorsten Haude
    Thorsten Haude
    2007-01-04

     
    Attachments
  • Bert Wesarg
    Bert Wesarg
    2007-01-04

    Logged In: YES
    user_id=122956
    Originator: NO

    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.

     
  • Thorsten Haude
    Thorsten Haude
    2007-03-18

    Logged In: YES
    user_id=119143
    Originator: YES

    - 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.

     
  • Thorsten Haude
    Thorsten Haude
    2008-01-05

    Logged In: YES
    user_id=119143
    Originator: YES

    File Added: dotNEdit.2008-01-05.1.tar.gz

     
  • Joerg Fischer
    Joerg Fischer
    2008-01-07

    Logged In: YES
    user_id=918104
    Originator: NO

    unixWrapper.nm:
    ---------------
    new("window", "transient") ?
    unixWrapper.nm should be renamed to manpage-viewer.nm.

    nedit.rc:
    ---------
    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.

    smartKey.nm:
    ------------
    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?)

    sh2html.nm:
    -----------
    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).

     
  • Thorsten Haude
    Thorsten Haude
    2008-01-13

    Logged In: YES
    user_id=119143
    Originator: YES

    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

     
  • 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.

     
  • 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.)

     
  • Joerg Fischer
    Joerg Fischer
    2008-01-14

    Logged In: YES
    user_id=918104
    Originator: NO

    >I'll post a link for the few additions I have in mind,

    Here it is

    http://nedit.gmxhome.de/dotNE-additions.tar.gz

     
  • 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.

     
  • 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")