emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1420ff1 096/215: ipdb: add hook for completion to initiali


From: Rocky Bernstein
Subject: [elpa] master 1420ff1 096/215: ipdb: add hook for completion to initialization
Date: Sat, 30 Jul 2016 14:48:56 +0000 (UTC)

branch: master
commit 1420ff16c959e44f8757a80f67cee8635514f723
Author: Sean Farley <address@hidden>
Commit: Sean Farley <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]