branch: master
commit 1420ff16c959e44f8757a80f67cee8635514f723
Author: Sean Farley <[email protected]>
Commit: Sean Farley <[email protected]>

    ipdb: add hook for completion to initialization
---
 realgud/debugger/ipdb/ipdb.el |   24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/realgud/debugger/ipdb/ipdb.el b/realgud/debugger/ipdb/ipdb.el
index 4f12301..0cc8eb7 100644
--- a/realgud/debugger/ipdb/ipdb.el
+++ b/realgud/debugger/ipdb/ipdb.el
@@ -70,10 +70,14 @@ marginal icons is reset. See `loc-changes-clear-buffer' to 
clear
 fringe and marginal icons.
 "
   (interactive)
-  (realgud:run-debugger "ipdb" 'ipdb-query-cmdline
-                       'ipdb-parse-cmd-args
-                       'realgud:ipdb-minibuffer-history
-                       opt-cmd-line no-reset)
+  (let ((cmd-buf (realgud:run-debugger "ipdb" 'ipdb-query-cmdline
+                                       'ipdb-parse-cmd-args
+                                       'realgud:ipdb-minibuffer-history
+                                       opt-cmd-line no-reset))
+        )
+    (add-hook 'completion-at-point-functions
+              'realgud:ipdb-completion-at-point nil t)
+    cmd-buf)
   )
 
 
@@ -98,10 +102,14 @@ marginal icons is reset. See `loc-changes-clear-buffer' to 
clear
 fringe and marginal icons.
 "
   (interactive)
-  (realgud:run-debugger "ipdb" 'ipdb-remote-query-cmdline
-                       'ipdb-parse-remote-cmd-args
-                       'realgud:ipdb-remote-minibuffer-history
-                       opt-cmd-line no-reset)
+  (let ((cmd-buf (realgud:run-debugger "ipdb" 'ipdb-remote-query-cmdline
+                                       'ipdb-parse-remote-cmd-args
+                                       'realgud:ipdb-remote-minibuffer-history
+                                       opt-cmd-line no-reset))
+        )
+    (add-hook 'completion-at-point-functions
+              'realgud:ipdb-completion-at-point nil t)
+    cmd-buf)
   )
 
 

Reply via email to