bugGNU Octave - Bugs: bug #60693, When octave is invoked with -i...


bug #60693: When octave is invoked with -i option, plot window resizing fails

Submitted by:  Alan <asb0656>
Submitted on:  Sat 29 May 2021 01:57:37 AM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Alan Open/Closed:  Open
Release:  5.2.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 29 May 2021 06:49:48 PM UTC, comment #2: 

One of the more interesting questions raised here, is why does "octave --interactive" at the command line imply that readline line editing is disabled? That looks like a logic error in options parsing to me. I'll file a new bug report about that.

The rest of this is the same as previously reported bug #37795 and bug #43130. It's been a known issue for many many years now that the plotting routines don't work well when readline is disabled, and Emacs wants to run Octave with readline disabled, so that's that.

Mike Miller <mtmiller>
Project Administrator
Sat 29 May 2021 02:08:43 AM UTC, comment #1: 

If I recall correctly, readline line editing must be disabled when Octave is running inside an Emacs session and readline is currently required for Octave to handle graphics events because it uses the readline event hook to periodically process the events.  So I don't there is a simple solution at the moment for this problem.

John W. Eaton <jwe>
Project Administrator
Sat 29 May 2021 01:57:37 AM UTC, original submission:  

I'm running Ubuntu 20.04
emacs 26.3 (the same behavior has been observed using emacs 28).

I want to run octave from emacs as an inferior process.

When I ran emacs and typed

M-x run-octave

emacs opened a buffer called Inferior octave
with octave running.  (octave is invoked with the "-i" option.)

I then issued the octave plot command:

The plot window appeared, but the pull-down menus, the buttons at the
bottom, and the close (x) button did not respond to mouse clicks.

The minimize button worked correctly.
The full-screen toggle button worked, but was buggy.
When I pushed the full-screen toggle button, the plot window did expand,
but the plot remained the same size and the menu bar and bottom buttons
were not displayed.
Manually changing the plot window size with the mouse resulted in the
same behavior.

The octave plot window exhibits the same behavior when octave is invoked from a terminal using the "-i" option, e.g.

> octave -i

but it behaves correctly when invoked from the console without the "-i" option:

> octave

correctly when octave is run from a
console instead of from emacs.

Alan <asb0656>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by asb0656 (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 project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.6