summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorKen Manheimer <ken.manheimer@gmail.com>2011-11-16 11:37:48 -0500
committerKen Manheimer <ken.manheimer@gmail.com>2011-11-16 11:37:48 -0500
commit8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0 (patch)
tree2abe503327cba2f5e1f24ecba17acb1dc4251737 /lisp/progmodes/python.el
parent58179ccebd1c2fd18fa422a7bb4d2cf78994e3c9 (diff)
downloademacs-8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0.tar.gz
emacs-8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0.tar.bz2
emacs-8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0.zip
* python.el (python-pdbtrack-stack-entry-regexp)
(python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file): Adjust to recognize ipdb as well as regular python pdb prompts. Adjustments shamelessly taken exactly as suggested in EmacsWiki page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 8615400bf6a..fe6bab0160d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -550,7 +550,7 @@ element matches `python-python-command'."
"^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()"
"Regular expression pdbtrack uses to find a stack trace entry.")
-(defconst python-pdbtrack-input-prompt "\n[(<]*[Pp]db[>)]+ "
+(defconst python-pdbtrack-input-prompt "\n[(<]*[Ii]?[Pp]db[>)]+ "
"Regular expression pdbtrack uses to recognize a pdb prompt.")
(defconst python-pdbtrack-track-range 10000
@@ -2583,6 +2583,7 @@ find it."
(if (not (string-match (concat python-pdbtrack-input-prompt "$") block))
(python-pdbtrack-overlay-arrow nil)
+ (setq block (ansi-color-filter-apply block))
(setq target (python-pdbtrack-get-source-buffer block))
(if (stringp target)