bugGNU nano - Bugs: bug #46503, nano should complain when -Y...

 
 

bug #46503: nano should complain when -Y specifies a nonexistent syntax

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 23 Nov 2015 05:00:18 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 24 Nov 2015 11:47:17 AM UTC, comment #1:

Fixed in SVN, r5436.

The warning is given on the statusbar because that was easy to do. But also because specifying a nonexistent speller program will be reported on the statusbar (but only when the user actually tries to spellcheck).

In fact it would be nicer if nano would not even start up when things specified on the command line are not correct, but this would require duplicating some code into main, and I don't want to do that now.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 23 Nov 2015 05:00:18 PM UTC, original submission:

Currently, when you specify for example '--syntax=make' or 'Yzorro', nano starts without giving a peep, and simply uses the default syntax.

Instead, it should print a warning, either on the console or on the statusbar, when the specified name is not the name of an existing syntax.

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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Dec 2015 03:18:29 PM UTCbensOpen/ClosedOpen=>Closed
    Tue 24 Nov 2015 11:47:17 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1