bugGNU Octave - Bugs: bug #47686, --line-editing does not cancel...

 
 

bug #47686: --line-editing does not cancel --no-line-editing

Submitter:  Francesco Potortì <pot>
Submitted:  Wed 13 Apr 2016 10:09:31 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Francesco Potortì Open/Closed:  * Closed
Release:  * 4.0.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 May 2016 04:26:59 PM UTC, comment #3: 

Answer to Lachlan: sorry, in all my examples I should have written "octave-cli" rather than "octave".

If you try them, you should see what I described.

Francesco Potortì <pot>
Mon 16 May 2016 07:58:55 PM UTC, comment #2: 

I agree with Francesco, the options should reverse each other as they are encountered on the command line. I fixed this on the default branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/fbe4dd67e867

Mike Miller <mtmiller>
Group Member
Mon 02 May 2016 04:14:47 AM UTC, comment #1: 

I'm not very familiar with emacs, but in all cases I got the same output -- wrapped after "16".  What is supposed to happen in the second case?

Also, the code for parsing the options in octave_process_command_line looks pretty simple, and I can't see how this bug would arise.

Status: None -> Works for me


Lachlan Andrew <lachlan>
Wed 13 Apr 2016 10:09:31 AM UTC, original submission:  

I would expect that putting the --line-editing option after --no-line-editing on the command line would work as if none of the two options were present.

However, this is not the case.  To test that, I run octave-cli inside a shell Emacs buffer.  This is how to reproduce:

open a terminal with at least 90 columns (the more, the better)

emacs -Q -nw -f shell
octave -qi
1:40
quit

Note the point where the answer line wraps around, then try this

octave -qi --no-line-editing
1:40
quit
octave -qi --no-line-editing --line-editing
1:40
quit

Note that in the first case the output is wrapped at 80 columns, which is expected, but this happens in the third case also, which is not expected.

Francesco Potortì <pot>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by pot (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-16 mtmiller StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2016-05-02 lachlan StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code