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

 
 

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

Submitted by:  Hartmut <hardy>
Submitted on:  Wed 12 Nov 2014 07:12:42 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 13 Nov 2014 06:05:16 AM UTC, comment #2:

Fixed with changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/cd2a75e5cd6e

Torsten <ttl>
Project 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 <ttl>
Project 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 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 ttl (Posted a comment)
  • -unavailable- added by hardy (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 project members 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
    Thu 13 Nov 2014 06:05:16 AM UTCttlStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1