diff options
author | Ken Manheimer <klm@digicool.com> | 2003-05-01 20:46:14 (GMT) |
---|---|---|
committer | Ken Manheimer <klm@digicool.com> | 2003-05-01 20:46:14 (GMT) |
commit | 595adce09b70de8b9539960950c259644c7a686d (patch) | |
tree | 8a0ef8a121fdfca98a66a8cb922513bc1563e7ea /Misc | |
parent | 21d3a32b99c5763444c34c189ef653ac9745f3c4 (diff) | |
download | cpython-595adce09b70de8b9539960950c259644c7a686d.zip cpython-595adce09b70de8b9539960950c259644c7a686d.tar.gz cpython-595adce09b70de8b9539960950c259644c7a686d.tar.bz2 |
Allow for multiple parens around pdb prompt for (new) nested debugging
sessions (and some cosmetic wording changes).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index f654d8a..696ded9 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -483,7 +483,7 @@ prospect as debugging continues.") "^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_]+\\)()" "Regular expression pdbtrack uses to find a stack trace entry.") -(defconst py-pdbtrack-input-prompt "\n[(<]?pdb[>)]? " +(defconst py-pdbtrack-input-prompt "\n[(<]+pdb[>)]+ " "Regular expression pdbtrack uses to recognize a pdb prompt.") (defconst py-pdbtrack-track-range 10000 @@ -1290,8 +1290,8 @@ If the traceback target file path is invalid, we look for the most recently visited python-mode buffer which either has the name of the current function \(or class) or which defines the function \(or class). This is to provide for remote scripts, eg, Zope's 'Script -(Python)' - put a _copy_ of the script in a python-mode buffer named -for the script and pdbtrack will find it.)" +(Python)' - put a _copy_ of the script in a buffer named for the +script, and set to python-mode, and pdbtrack will find it.)" ;; Instead of trying to piece things together from partial text ;; (which can be almost useless depending on Emacs version), we ;; monitor to the point where we have the next pdb prompt, and then @@ -1378,7 +1378,7 @@ problem as best as we can determine." ((= (elt filename 0) ?\<) (format "(Non-file source: '%s')" filename)) - (t (format "Function/file not found: %s(), %s" funcname filename))) + (t (format "Not found: %s(), %s" funcname filename))) ) ) ) |