bugGNU Octave - Bugs: bug #46000, FormatSpacing is missing

 
 

bug #46000: FormatSpacing is missing

Submitted by:  Doug Stewart <dastew>
Submitted on:  Fri 18 Sep 2015 11:12:37 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: Wont FixAssigned to: None
Originator Name: Doug StewartOpen/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.

 

(Jump to the original submission Jump to the original submission)

Thu 24 Sep 2015 04:19:01 PM UTC, comment #6:

Are you sure properties Format and FormatSpacing still exist in ML r2014a and r2015b?
I tried (see bug #46034) in r2015b-prerelease and they are gone. Michael Godfrey saw the same in r2015a.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 23 Sep 2015 01:42:09 PM UTC, comment #5:

Both properties "Format" and "FormatSpacing" are clearly deprecated in MATLAB, see:

https://www.mathworks.com/help/matlab/release-notes.html?searchHighlight=formatspacing#R2014b

under the point "Properties and syntaxes being removed or changed". But I can confirm, that in 2014b and 2015b these properties still exist. I don't recommend to get Octave users used to these properties, if they might be dropped off MATLAB in the nearer future.

A dirty hack to replace get(0, "format") was checking the display size of PI.

Kai Torben Ohlhus <siko1056>
Project Member
Wed 23 Sep 2015 12:16:33 PM UTC, comment #4:

See my post in bug #46034

Philip Nienhuis <philipnienhuis>
Project Member
Tue 22 Sep 2015 11:22:11 AM UTC, comment #3:

Are you sure Matlab hasn't deprecated or removed "Format" and "FormatSpacing"? The list of root object properties no longer includes it (http://www.mathworks.com/help/matlab/ref/root-properties.html).

Rik <rik5>
Project Administrator
Tue 22 Sep 2015 10:02:02 AM UTC, comment #2:

Reopening, this is a Matlab compatibility issue, the "Format" and "FormatSpacing" root properties are the official way to query the current format in Matlab:

https://www.mathworks.com/help/matlab/ref/format.html

Mike Miller <mtmiller>
Project Administrator
Sat 19 Sep 2015 09:13:48 PM UTC, comment #1:

I went ahead and submitted a fix for this to the symbolic package project: https://github.com/cbm755/octsympy/pull/264

If you apply that patch, the symbolic package should work with 4.1, it does for me.

The patch can be downloaded from https://github.com/mtmiller/octsympy/commit/dcbcfb867ced3521ae9f0b9fecdbcdf8014c744d.patch for those unfamiliar with github.

I think that's the better place to fix this, this root property was never used by any other packages.

Mike Miller <mtmiller>
Project Administrator
Fri 18 Sep 2015 11:12:37 PM UTC, original submission:

Symbolic pkg. has stopped working with default, and the problem has been traced to the following:

the error is in @sym/diplay.m, when it tries to use:

get(0,'FormatSpacing')

See this recent change that removed this property:

http://hg.savannah.gnu.org/hgweb/octave/rev/564e59f75ef8

@Rik I reverted that change on my local copy and now symbolic works again.

Doug Stewart <dastew>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by dastew (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
    Wed 23 Sep 2015 01:42:09 PM UTCsiko1056StatusConfirmed=>Wont Fix
      Open/ClosedOpen=>Closed
    Wed 23 Sep 2015 09:24:55 AM UTCrik5Dependencies-=>bugs #46034 is dependent
    Tue 22 Sep 2015 10:02:02 AM UTCmtmillerCategoryNone=>Interpreter
      StatusWont Fix=>Confirmed
      Open/ClosedClosed=>Open
    Sat 19 Sep 2015 09:13:48 PM UTCmtmillerStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1