bugGNU Octave - Bugs: bug #41522, edit a non-existing file should...


bug #41522: edit a non-existing file should append .m if no extension is provided

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Sun 09 Feb 2014 03:31:51 PM UTC  
Category: Octave FunctionSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.0Operating System: Any

Add a New Comment(Rich Markup)

You are not logged in

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


Tue 29 Apr 2014 02:05:19 AM UTC, comment #4:

Thanks for contributing. I pushed your patch to the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/95a1ee1cbdf1). I also added your name to the list of contributors to Octave which shows up in the Preface of the documentation manual. Closing report.

Rik <rik5>
Project Administrator
Thu 20 Mar 2014 01:05:14 PM UTC, comment #3:

I added a patch that automatically adds a .m extension and allows the User to change it (in GUI mode), but in CLI mode a User who doesn't want the .m needs to use his editors save as.. function, which might be a hassle if one needs to do it often.

Stefan Miereis <stefanm>
Sun 09 Feb 2014 07:17:30 PM UTC, comment #2:

Retitling and categorizing to apply to the edit function rather than the GUI. If this is going to be fixed, it should be done in the edit function so it is consistent between CLI and GUI mode.

Mike Miller <mtmiller>
Project Administrator
Sun 09 Feb 2014 03:50:50 PM UTC, comment #1:

this would be similar to what is already done when you ask the editor to save the contents of a new unsaved tab

Felipe G. Nievinski <fgnievinski>
Sun 09 Feb 2014 03:31:51 PM UTC, original submission:

try, e.g., edit blah;
it'll say "File blah does not exist. Do you want to create it?"
it'll create a file which Octave won't be able to run, as it lacks the proper extension.

offer to create new files from the file manager would remain unaffected.

Felipe G. Nievinski <fgnievinski>


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

Attach File(s):

Attached Files
file #30955:  edit_new.diff added by None (1KiB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by stefanm (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by fgnievinski (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Apr 2014 02:05:19 AM UTCrik5StatusConfirmed=>Fixed
    Thu 20 Mar 2014 12:55:29 PM UTCNoneAttached File-=>Added edit_new.diff, #30955
    Sun 09 Feb 2014 07:17:30 PM UTCmtmillerCategoryGUI=>Octave Function
      Severity3 - Normal=>1 - Wish
      Item GroupOther=>Feature Request
      Summaryeditor offer to create non-existing file should append .m if no extension is provided=>edit a non-existing file should append .m if no extension is provided

    Back to the top

    Powered by Savane 3.1-cleanup1