bugGNU nano - Bugs: bug #54449, when a vital function is not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #54449: when a vital function is not bound, the error message is lacking information

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 05 Aug 2018 05:33:57 PM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Sat 11 Aug 2018 08:15:54 AM UTC, comment #2:

Fixed in git, commit 2147e161.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 06 Aug 2018 05:46:40 PM UTC, comment #1:

There is no existing way to map a MMENU symbol to a menu name -- it would have to be made.  It would take a double array: one of MMENU symbols and a corresponding one of menu names.

But... maybe this double array can also be used to make the reverse mapping?  To simplify the long if-then-else ladder in strtomenu()?  Hmmm...  Sounds like a plan.  :)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 05 Aug 2018 05:33:57 PM UTC, original submission:

To reproduce, put "unbind ^C search" in your nanorc, and run nano.  It will fail to start and prints these two lines:

Fatal error: no keys mapped for function "Cancel".  Exiting.
If needed, use nano with the -I option to adjust your nanorc settings.

It says «no keys mapped for function "Cancel"».  Right.  But where?  In which menu?  If I've just changed one line in my nanorc, I will know.  But if I pasted a block of settings from another machine...

Expected behavior: it should mention in which menu the vital binding is missing.

(Aside: I don't think Cancel is an essential function in the Search menu: the user can just type some junk that does not exist in the file and press <Enter>, it will have the same effect.  Only when the file is huge and searching takes a significant amount of time, would having a Cancel button be useful, but still not essential -- it will just waste some time, it will not make leaving the Search menu without moving the cursor impossible.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-10 bens Open/ClosedOpen => Closed
    2018-08-11 bens StatusIn Progress => Fixed
    2018-08-06 bens StatusWont Fix => In Progress
        Assigned toNone => bens
    2018-08-06 bens Severity3 - Normal => 2 - Minor
        StatusNone => Wont Fix

    Back to the top


    Powered by Savane 3.4