#155 supress calltip not found message

open
nobody
Program (79)
5
2007-01-11
2007-01-11
Bert Wesarg
No

This adds the option "ignore" to the calltip() macro to ignore the calltip with the no found error message.

I use this to implement a fallback to search in man pages (attached as calltip_man.nm)

Discussion

  • Bert Wesarg

    Bert Wesarg - 2007-01-11

    fallback to man pages, when no calltip is found

     
  • Bert Wesarg

    Bert Wesarg - 2007-01-11

    Logged In: YES
    user_id=122956
    Originator: YES

    File Added: calltip_man.nm

     
  • Thorsten Haude

    Thorsten Haude - 2007-01-11

    Logged In: YES
    user_id=119143
    Originator: NO

    Interesting problem, I never thought about this. I think that the current implementation of calltip() does conflict with the documentation. The doc says: "Returns the ID of the calltip if it was found and/or displayed correctly, 0 otherwise." One might argue that a correctly displayed error message matches the "found (...) or displayed correctly", but I wonder what good it does.

    So instead of adding another keyword, I think we should get calltip() in line with its documentation and scratch the error message. It can easily be recreated if one needs it:
    if calltip(..) == 0
    calltip("Error!")

    In fact I would regard this as a bug.

     
  • Bert Wesarg

    Bert Wesarg - 2008-03-01

    Logged In: YES
    user_id=122956
    Originator: YES

    I have found a better solution to this problem. The not-found-tip is now only showed when called from the menu entry or key binding to this menu. The calltip() macro will never show a not-found-message.

    This patch is on top of joergs calltipsID.patch from SF#1888195
    File Added: fix-calltip-not-found-tip.patch

     

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