File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -769,8 +769,14 @@ If so, return an equivalent of ITEM = ARRAY_LIKE[IDX]; ITEM."
769769 (lispy--eval-python-plain expr)))
770770 (list (car bnd)
771771 (cdr bnd)
772- (read (lispy--eval-python-plain
773- (format " lp.print_elisp(lp.get_completions('%s ')) " str-com))))))))
772+ (let ((out (lispy--eval-python-plain
773+ (format " lp.print_elisp(lp.get_completions('%s ')) " str-com))))
774+ (with-temp-buffer
775+ (insert out)
776+ (goto-char (point-min ))
777+ (when (re-search-forward " ^(" nil t )
778+ (goto-char (match-beginning 0 )))
779+ (read (current-buffer )))))))))
774780
775781(defvar lispy--python-arg-key-re " \\ `\\ (\\ (?:\\ sw\\ |\\ s_\\ )+\\ )=\\ ([^\\ 0]+\\ )\\ '"
776782 " Constant regexp for matching function keyword spec." )
You can’t perform that action at this time.
0 commit comments