octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #9026] Automatically close if, for, while


From: Lachlan Andrew
Subject: [Octave-patch-tracker] [patch #9026] Automatically close if, for, while etc.
Date: Fri, 10 Jun 2016 10:06:26 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/patch/?9026>

                 Summary: Automatically close if, for, while etc.
                 Project: GNU Octave
            Submitted by: lachlan
            Submitted on: Fri 10 Jun 2016 10:06:23 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: lachlan
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This patch causes the GUI editor to insert "endif" or "end" after the user
types a line starting with "if", if its indent-based heuristics suggest that
there isn't already one there.

The choice between "end" and "endif" is configurable, and this feature can be
disabled through the Edit->Preferences menu.

Closings are provided for:
if for while function try unwind_protect classdef methods.

This doesn't check that they user typed the "if" (etc) recently. Whenever
ENTER is pressed, it checks the start of the line. Normally, the heuristics
stop this from producing too many closings.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?9026>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]