bugGNU Octave - Bugs: bug #59460, Automatic endfor, endif...

 
 

bug #59460: Automatic endfor, endif auto-completion enforced in GUI editor - no way to disable or make matlab-compatible

Submitter:  Tasos Papastylianou <tpapastylianou>
Submitted:  Fri 13 Nov 2020 01:25:50 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Tasos Papastylianou Open/Closed:  * Closed
Release:  * 5.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 Nov 2020 10:21:50 AM UTC, comment #2: 

Dear Markus, many thanks for this. (and also to Nick for replying in the StackOverflow post).

No, you understood the report correctly. I think what happened is that both I and the originator of this issue (on StackOverflow) must have completely failed to spot that that particular preferences page (unlike the other pages) actually had a scrollbar way on the other side of the page.

Perhaps there's a UX point to consider here?

E.g. on my monitor, visually it looks like the "Long Lines" is the last of 3 option headers, and there's no more to consider; apart from the scrollbar (which is too far to the right compared to the content, and effectively outside of my visual focus), there is no other visual cue to hint that there are more options below that point.

Perhaps if the 'headers' appeared collapsed initially, or even if they were expanded, but they were collapsible more generally, then this might better hint to the user that more headers exist.

In any case, as far as 'bugs' are concerned though, you are correct in closing this, however. Many thanks for the reply!

Tasos Papastylianou <tpapastylianou>
Fri 13 Nov 2020 02:03:28 PM UTC, comment #1: 

Go to the "Editor" tab of the preferences and select your preferred behavior from the drop-down list labeled "Auto insert after "if" etc.".

I'm not sure if I correctly understood the report. So please comment if you meant something different and I'll re-open.

In the meantime: Closing as invalid.

Markus Mützel <mmuetzel>
Group administrator
Fri 13 Nov 2020 01:25:50 PM UTC, original submission:  

For context relating to this bug/feature request, please see the following Stack Overflow post: https://stackoverflow.com/q/64816229/4183191

Effectively, the GUI Editor enforces block autocompletion; i.e. when starting a 'for', 'if' or similar 'block' statement, pressing enter will auto-create the corresponding 'endfor', or 'endif' block-terminating statement.

This is not always desirable from a user point of view, particularly if they are trying to write matlab-compatible code (which is not an uncommon scenario among octave users).

It would be useful to add a way to specify preferred behaviour in the Editor preferences in the GUI, allowing one to disable this autocompletion, or better yet, to choose between 'disabled', 'enabled (octave-native style)' and 'enabled (matlab-compatible style)' options.

Tasos Papastylianou <tpapastylianou>

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by tpapastylianou (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
    2020-11-13 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code