bugGNU Octave - Bugs: bug #43592, GUI Editor Preferences "Tab...

 
 

bug #43592: GUI Editor Preferences "Tab Identation" does not work as expected

Submitter:  Hartmut <hardy>
Submitted:  Wed 12 Nov 2014 07:12:42 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Nov 2014 06:05:16 AM UTC, comment #2: 
Torsten Lilge <ttl>
Group Member
Wed 12 Nov 2014 08:52:23 PM UTC, comment #1: 

Thank you for the report. The use of the setting "Indent width" is just missing and the editor always uses a constant value of 2. The "tab width" only determines the width of the tab stops and not of the indentation, even if the tab-key is used for indentation.

I will prepare a patch that fixes the missing use of "indent width".

Torsten Lilge <ttl>
Group Member
Wed 12 Nov 2014 07:12:42 PM UTC, original submission:  

Here is what to do to see the effect:

  • Start Octave 3.8.2 with GUI
  • Choose "Edit" - "Settings" and then the "Editor" tab
  • Change both values "indentation" and "tab width" from the default value 2 to the new value 4
  • mark the two checkboxes "auto indentation" and "tab indents"
  • restart Octave


My expectation would then be, that pressing the "tab" key in the editor window would indent the current line by 4 spaces. But it still has the default behavior and indents the current line by 2 spaces only.

Am I just mis-interpreting the editor settings, or is this really a bug? (Or to put it as a feature request: I would like to have an options to change the indentation consistently from 2 spaces up to 4 spaces.)

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

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 ttl (Posted a comment)
  • -email is unavailable- added by hardy (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.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-13 ttl StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code