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

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

[elpa] master 1716c8a 109/215: Towards fixing up tab completion in ipdb.


From: Rocky Bernstein
Subject: [elpa] master 1716c8a 109/215: Towards fixing up tab completion in ipdb.
Date: Sat, 30 Jul 2016 14:48:58 +0000 (UTC)

branch: master
commit 1716c8a4d5b4d809e55655fb9df1b240b3ba3425
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    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)
   )
 



reply via email to

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