bugGNU nano - Bugs: bug #61496, misleading feedback from M-O when...

 
 

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

bug #61496: misleading feedback from M-O when syntax has 'tabgives' command

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 17 Nov 2021 09:18:50 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 17 Nov 2021 09:37:05 AM UTC, comment #1: 

Fixed in git, commit 2b0bcc7c, by saying that the "Current syntax determines Tab" when that is the case.

Benno Schulenberg <bens>
Group administrator
Wed 17 Nov 2021 09:18:50 AM UTC, original submission:  

To reproduce, add a line with 'tabgives "xxx"' to the syntax/default.nanorc file.  Then run:

src/nano --rc=syntax/default.nanorc -x  README

Type <Tab> to see that it indeed produces xxx.  Now type M-O.  See that the status bar says: "[ Conversion of typed tabs to spaces enabled ]".  Type <Tab> again.  It still produces xxx (as it should).  So the feedback from M-O is... misleading.  (In theory the feedback is correct, because normally, when aterward switching to a buffer that is not covered by a syntax with a 'tabgives' command, the conversion of tabs-to-spaces will indeed have been toggled.  But that is not how the user will interpret the message.)

Expected behavior: when the syntax has a 'tabgives' command, M-O should somehow report that and not change the setting of the tabs-to-spaces flag.

Benno Schulenberg <bens>
Group administrator

 

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

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-16 bens Open/ClosedOpen Closed
    2021-11-17 bens Summaryfeedback from M-O is false when the syntax has a 'tabgives' command misleading feedback from M-O when syntax has 'tabgives' command
    2021-11-17 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code