branch: master
commit 1716c8a4d5b4d809e55655fb9df1b240b3ba3425
Author: rocky <[email protected]>
Commit: rocky <[email protected]>
Towards fixing up tab completion in ipdb.
---
realgud/debugger/ipdb/core.el | 2 +-
realgud/debugger/ipdb/ipdb.el | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/realgud/debugger/ipdb/core.el b/realgud/debugger/ipdb/core.el
index 43a42c5..e8a1a8c 100644
--- a/realgud/debugger/ipdb/core.el
+++ b/realgud/debugger/ipdb/core.el
@@ -247,7 +247,7 @@ why we need the `bounds-of-thing-at-point')."
;; we need to change the start position to that of the current word
;; since python returns just the word (and not the whole line)
- (setq start-position (car bounds))
+ (if (car bounds) (setq start-position (car bounds)))
(list start-position
end-position
diff --git a/realgud/debugger/ipdb/ipdb.el b/realgud/debugger/ipdb/ipdb.el
index 0cc8eb7..447aeef 100644
--- a/realgud/debugger/ipdb/ipdb.el
+++ b/realgud/debugger/ipdb/ipdb.el
@@ -77,6 +77,10 @@ fringe and marginal icons.
)
(add-hook 'completion-at-point-functions
'realgud:ipdb-completion-at-point nil t)
+ (with-current-buffer cmd-buf
+ (add-hook 'completion-at-point-functions
+ 'realgud:ipdb-completion-at-point nil t)
+ )
cmd-buf)
)