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

 
 

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

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

Add a New Comment Rich Markup
   

Thu 22 Jul 2021 06:43:10 PM UTC, comment #3: 

The issue identified in comment #2, "--interactive" disabling readline has been addressed.  As noted, the rest of the report duplicates bug #37795 and bug #43130.  Closing as Duplicate.

Rik <rik5>
Group administrator
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>
Group Member
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>
Group 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:
octave>plot(1:100)

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:
   
   
Comment:
   

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 rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by asb0656 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-22 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code