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

Submitter:  Felipe G. Nievinski <fgnievinski>
Submitted:  Sun 09 Feb 2014 03:31:51 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group Member
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 Files:
   
   
Comment:
   

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-29 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-03-20 None Attached File- Added edit_new.diff, #30955
    2014-02-09 mtmiller CategoryGUI Octave Function
        Severity3 - Normal 1 - Wish
        Item GroupOther Feature Request
        StatusNone Confirmed
        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.13-f8d8.
    Corresponding source code