bugGNU Octave - Bugs: bug #34444, <TAB> complete does not work...

 
 

bug #34444: <TAB> complete does not work after transpose operator and math operator

Submitter:  Rik <rik5>
Submitted:  Fri 30 Sep 2011 08:33:21 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Sep 2016 03:24:55 PM UTC, comment #4: 

Thanks for checking up on these old bugs.  I'm marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 15 Sep 2016 09:14:09 AM UTC, comment #3: 

With the changeset in bug #44095 having been pushed, this now work as expected with 4.2.0-rc1.

Markus Mützel <mmuetzel>
Group administrator
Tue 29 Dec 2015 05:26:21 AM UTC, comment #2: 

This is fixed by v4 of the patch for bug #44095.  It sets rl_completer_quote_characters each time a completion is requested, based on whether the completion appears to be a filename or a variable.  It will still make mistakes on commands like

my_function (a', "start/of/pat<TAB>

but there will be the minority.

Lachlan Andrew <lachlan>
Mon 30 Sep 2013 04:21:12 AM UTC, comment #1: 

Confirmed still present on the latest development version.

Due to the readline variable rl_completer_quote_characters, which is set indirectly in initialize_command_input:

http://hg.savannah.gnu.org/hgweb/octave/file/6c62150b454a/libinterp/corefcn/input.cc#l472

Commenting that line out makes the tab-completion example below work, but tab-completion no longer adds an ending single-quote to a quoted filename or symbol name.

Mike Miller <mtmiller>
Group Member
Fri 30 Sep 2011 08:33:21 PM UTC, original submission:  

This is somewhat obscure but there seems to be a branch in the parser for which <TAB> complete is not recognized.  The test example uses "hann<TAB>" which should auto-complete to hanning.  Other examples with directories such as "/hom<TAB>" also exhibit the same problem.

Sample code


x' * hann<TAB>   # Nothing completes
hann<TAB>        # Completes to "hanning"
x' hann<TAB>     # Completes to "x' hanning' " which may be a
                   clue that the parser thinks sommething with
                   strings is going on.


Rik <rik5>
Group administrator

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-15 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-09-30 mtmiller StatusNone Confirmed
    2011-10-26 rik5 Dependencies- bugs #34624 is dependent

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code