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

 
 

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

Submitted by:  Francesco Potortì <pot>
Submitted on:  Wed 13 Apr 2016 10:09:31 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: FixedAssigned to: None
Originator Name: Francesco PotortìOpen/Closed: Closed
Release: 4.0.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project Administrator
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>
Project Member
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 May 2016 07:58:55 PM UTCmtmillerStatusWorks For Me=>Fixed
      Open/ClosedOpen=>Closed
    Mon 02 May 2016 04:14:47 AM UTClachlanStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1