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

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

[Octave-bug-tracker] [bug #52695] Uncomment should work with any kind of


From: Marshall
Subject: [Octave-bug-tracker] [bug #52695] Uncomment should work with any kind of comment
Date: Tue, 19 Dec 2017 13:07:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

URL:
  <http://savannah.gnu.org/bugs/?52695>

                 Summary: Uncomment should work with any kind of comment
                 Project: GNU Octave
            Submitted by: marsian
            Submitted on: Tue 19 Dec 2017 06:07:36 PM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: Marsian
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

In the new dev version, there is an editor preference for setting the desired
comment symbol to insert (%, #, or ##). Uncomment works only with the selected
comment option. I think the uncomment command should work with any type of
comment. As a bonus it could also work with %! which is found in the tests.
(It would also be nice if there were a separate test-comment-command that
could create %! type comments, but maybe that's better for a different feature
request).

This is useful for working with code that may not have the preferred
commenting style, and where I might want to uncomment large blocks of code (or
tests).

At a minimum I think uncommenting should work with both % and #, whether or
not it works with ## (which is just # twice) or %!. 

As a possible counter-argument, I can see the value of not having uncommenting
working with both # and %, maybe to allow the non-default comment to be a
permanent-comment that persists in a large section of commented code with
valid non-code comments. If that is a desirable feature I would recommend
adding another uncomment-all command so that either simple uncomment could be
used (only un-commenting the default), and/or uncommenting independent of the
option. I'm not sure which key-commands I'd suggest, maybe leaving it blank
for optional assignment, since I have re-assigned some of the key commands
from the octave defaults anyways.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52695>

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




reply via email to

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