From: DaveS <da...@te...> - 2007-02-19 01:42:05
|
Some tweaks to pydb.el for better windows support (c: and spaces in filenames). BTW is pydb-pydbtrack-stack-entry-regexp currently used for anything? --8<---------------cut here---------------start------------->8--- (setq gud-pydb-marker-regexp "^(\\(\\(?:[a-zA-Z]:\\)?[-a-zA-Z0-9_/.\\\\ ]+\\):\\([0-9]+\\))") (setq pydb-position-re "\\(^\\|\n\\)(\\(\\(?:[A-Za-z]:\\)?[^:]+\\):\\([0-9]*\\)).*\n") (setq pydb-pydbtrack-stack-entry-regexp "^(\\((?:[a-zA-Z]:\\)?[-a-zA-Z0-9_/.\\\\ ]*\\):\\([0-9]+\\)):[ \t]?\\(.*\n\\)"))) --8<---------------cut here---------------end--------------->8--- A couple of small python changes: * raw_input() needs a strip() because when running pydb with ipython and emacs, I keep getting a trailing CR, which breaks things. * pydbcmd.py: 419 looks like an indentation error. The line trace was *always* being printed. |