Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not expand common part on dot-complete

  • Loading branch information...
commit e9a48a56e22a1b2a149d1fefa08c63e2d69710a1 1 parent f9bae39
@tkf authored
Showing with 9 additions and 4 deletions.
  1. +2 −0  doc/source/tail.rest
  2. +7 −4 jedi.el
View
2  doc/source/tail.rest
@@ -54,6 +54,8 @@ Changelog
v0.1.2 (WIP)
------------
+- Do not expand common part when completing on inserting dot using
+ :el:symbol:`jedi:dot-complete`.
- Strip off newlines from candidate summary. This prevents
popup to be disrupted when showing candidates summary
containing newlines (e.g., ``json.__all__``).
View
11 jedi.el
@@ -315,17 +315,20 @@ See also: `jedi:server-args'."
(setq jedi:complete-reply reply))))
;;;###autoload
-(defun jedi:complete ()
+(defun* jedi:complete (&key (expand ac-expand-on-auto-complete))
"Complete code at point."
(interactive)
- (deferred:nextc (jedi:complete-request)
- (lambda () (auto-complete '(ac-source-jedi-direct)))))
+ (lexical-let ((expand expand))
+ (deferred:nextc (jedi:complete-request)
+ (lambda ()
+ (let ((ac-expand-on-auto-complete expand))
+ (auto-complete '(ac-source-jedi-direct)))))))
(defun jedi:dot-complete ()
"Insert dot and complete code at point."
(interactive)
(insert ".")
- (jedi:complete))
+ (jedi:complete :expand nil))
;;; AC source
Please sign in to comment.
Something went wrong with that request. Please try again.