bugGNU Octave - Bugs: bug #40351, The editor does not open a tab for...

 
 

bug #40351: The editor does not open a tab for a new file when called by edit

Submitted by:  Torsten <ttl>
Submitted on:  Wed 23 Oct 2013 04:55:37 AM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Oct 2013 06:04:48 PM UTC, comment #4:

Rik, I have just seen your post with the fix.
I have already pushed a changeset that I have pushed a changeset that fixes the issue in the editor. Then it is also possible to create a new file when entering the file name into the open file dialog box.

Torsten <ttl>
Project Member
Wed 23 Oct 2013 06:00:48 PM UTC, comment #3:

Fixed with changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/6a2e483125dd

Torsten <ttl>
Project Member
Wed 23 Oct 2013 05:36:55 PM UTC, comment #2:

Attached is a trivial fix. It creates a blank file in edit.m so that the Qt editor can find it.

(file #29452)

Rik <rik5>
Project Administrator
Wed 23 Oct 2013 06:02:15 AM UTC, comment #1:

It is not edit.m but the editor to blame that does not open a tab for the new file like other editors do

Torsten <ttl>
Project Member
Wed 23 Oct 2013 04:55:37 AM UTC, original submission:

In GUI mode, the command "edit" does not create non extisting files when the file extension is not .m or .cc.

Steps to reproduce:

  • Start octave in GUI mode
  • Enter "edit foo.txt" in the console window
  • The file foo.txt is not created but the editor is still called with this file

"edit foo.cc" or "edit foo.m" work as expected.

Torsten <ttl>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #29452:  edit.patch added by rik5 (958B - 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 (Updated the item)
  • -unavailable- added by ttl (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Oct 2013 06:00:48 PM UTCttlStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 23 Oct 2013 05:36:55 PM UTCrik5Attached File-=>Added edit.patch, #29452
    Wed 23 Oct 2013 06:02:15 AM UTCttlSummaryedit does not create non extisting files when extension is not .m or .cc=>The editor does not open a tab for a new file when called by edit

    Back to the top


    Powered by Savane 3.1-cleanup1