patchGNU Octave - Patches: patch #9048, Matlab compatible publish function


patch #9048: Matlab compatible publish function

Submitted by:  Kai Torben Ohlhus <siko1056>
Submitted on:  Tue 12 Jul 2016 04:02:24 PM UTC  
Category:  Core : new function Priority:  3 - Low
Status:  Done Privacy:  Public
Assigned to:  Kai Torben Ohlhus <siko1056> Open/Closed:  Closed

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 18 Jul 2016 03:11:42 PM UTC, comment #5: 
Carnë Draug <carandraug>
Project Member
Sat 16 Jul 2016 11:53:41 PM UTC, comment #4: 

Regarding comment #3, I vote for completely removing publish from the miscellaneous package. Sorry for forgetting about this aspect. The output of publish in miscellaneous is not overwhelming and as you mentioned, it is not maintained, not Matlab compatible, and switching from that one to the newer publish should be easy to manage.

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Fri 15 Jul 2016 01:50:12 PM UTC, comment #3: 

Just to be clear on something that was not mentioned on this patch yet, this is a work on top of the publishd function from the miscellaneous package:

It was also listed on the tasks #12153 "Incorporate Octave-Forge core functions into Octave"

What should be done about the miscellaneous package?  How incompatible is this new version?  Is it worth keep the older one under a different name?

Some possible approaches:

  • remove publish from miscellaneous
  • remove publish from miscellaneous and bump its dependency to Octave 4.2
  • have installation of miscellaneous only include the old version of publish() in Octave versions that miss the function
  • duplicate the new implementation of publish() to the miscellaneous package and install it only in Octave versions that miss the function
  • rename the old version of publish in the miscellaneous package, and deprecate it (maybe mixed with one of the options above)

I'm leaning towards the first solution since the package is not really maintained and I don't remember anyone mentioning using that function from that package.

Carnë Draug <carandraug>
Project Member
Fri 15 Jul 2016 10:38:52 AM UTC, comment #2: 

Thank you Colin for your encouragement!

I have pushed the patch:

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Tue 12 Jul 2016 09:08:55 PM UTC, comment #1: 

Awesome!  This feature is very useful in teaching so I would think it should be high priority.

Will will try to test when I get a chance.

Colin Macdonald <cbm>
Tue 12 Jul 2016 04:02:24 PM UTC, original submission:  

As another new feature for Octave 4.2 I would like to contribute a Matlab compatible publish <-> grabcode pair. See

My recent development happened here:

A tested patch for Octave default is attached. Last open topic: should the tests in


be silenced or treated diffently? I will push this patch within the next week.

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.


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

Attach Files:

Attached Files
file #37824:  patch-publish.diff added by siko1056 (67KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cbm (Posted a comment)
  • -email is unavailable- added by cbm
  • -email is unavailable- added by siko1056 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-15 siko1056 StatusReady For Test => Done
        Open/ClosedOpen => Closed
    2016-07-12 cbm Carbon-Copy- => Added cbm
    2016-07-12 siko1056 Attached File- => Added patch-publish.diff, #37824

    Back to the top

    Powered by Savane 3.7