Changeset 2931
- Timestamp:
- 01/11/08 11:53:58 (11 months ago)
- Files:
-
- ipython/trunk/IPython/completer.py (modified) (5 diffs)
- ipython/trunk/doc/ChangeLog (modified) (1 diff)
- ipython/trunk/test/test_completer.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ipython/trunk/IPython/completer.py
r2904 r2931 248 248 self.readline.set_completer_delims(delims) 249 249 self.get_line_buffer = self.readline.get_line_buffer 250 self.get_endidx = self.readline.get_endidx 250 251 self.omit__names = omit__names 251 252 self.merge_completions = shell.rc.readline_merge_completions … … 273 274 self.python_func_kw_matches] 274 275 276 275 277 # Code contributed by Alex Schmolck, for ipython/emacs integration 276 278 def all_completions(self, text): … … 561 563 562 564 return None 563 564 565 565 566 def complete(self, text, state,line_buffer=None): 566 567 """Return the next possible completion for 'text'. … … 585 586 # an editor (as long as autoindent is off). 586 587 588 # It should be noted that at least pyreadline still shows 589 # file completions - is there a way around it? 590 587 591 # don't apply this on 'dumb' terminals, such as emacs buffers, so we 588 592 # don't interfere with their own tab-completion mechanism. … … 599 603 magic_prefix = self.magic_prefix 600 604 601 self.lbuf = self.full_lbuf[:self. readline.get_endidx()]605 self.lbuf = self.full_lbuf[:self.get_endidx()] 602 606 603 607 try: ipython/trunk/doc/ChangeLog
r2930 r2931 7 7 * ipy_user_conf.py: Added an example on how to change term 8 8 colors in config file (through using autoexec). 9 10 * completer.py, test_completer.py: Ability to specify custom 11 get_endidx to replace readline.get_endidx. For emacs users. 9 12 10 13 2008-01-10 Ville Vainio <vivainio@gmail.com>
