bugGNU nano - Bugs: bug #47391, an include file allows 'bind' and...

 
 

bug #47391: an include file allows 'bind' and 'unbind'

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Fri 11 Mar 2016 04:59:02 PM UTC  
 
Severity: 2 - MinorStatus: 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.

 

Wed 27 Apr 2016 08:18:51 AM UTC, comment #1:

Fixed in git, 9330aa6.

To avoid a fivefold repetition of the test on permissibility, the new code will just say about any command that is not allowed that it is not allowed in an included file, also about commands that don't exist. If you put for example "foop twelve" in an include file, it will say that Command 'foop' is not allowed in an included file. I think that is good enough.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 11 Mar 2016 04:59:02 PM UTC, original submission:

When the include-file mechanism was made, the intention was to only allow syntax definitions in such a file. At that time that ecompassed the commands syntax, color, and icolor. Meanwhile the repertoire has grown with header, magic, linter, and formatter.

All of them are allowed in included files, but mistakenly bind and unbind are allowed too. In fact only 'set', 'unset', and 'include' are actively blocked from being interpreted when found in an include file. But, for consistency, 'bind' and 'unbind' should be blocked too.

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 20 Jun 2016 09:46:17 AM UTCbensOpen/ClosedOpen=>Closed
    Wed 27 Apr 2016 08:18:51 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1