aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSyver Enstad2012-01-29 15:06:54 +0800
committerChong Yidong2012-01-29 15:06:54 +0800
commit6b25e4e27d3386d08d2b5d64ea717780c05f5c65 (patch)
treed0ac5f6a15681d4d09a1c0ceb96b5c30c53b803a
parentdb17443466147411261b559458fa6e8df6587d12 (diff)
downloademacs-6b25e4e27d3386d08d2b5d64ea717780c05f5c65.tar.gz
emacs-6b25e4e27d3386d08d2b5d64ea717780c05f5c65.zip
Fix pdb path handling.
* progmodes/gud.el (pdb): Give pdb full paths, to allow setting breakpoints in files outside current directory. * lisp/progmodes/python.el: Require ansi-color at top-level. Fixes: debbugs:6098
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/gud.el4
-rw-r--r--lisp/progmodes/python.el3
3 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e74adea65e6..6e3ec3a340d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12012-01-29 Syver Enstad <syver.enstad@cisco.com>
2
3 * progmodes/gud.el (pdb): Give pdb full paths, to allow setting
4 breakpoints in files outside current directory (Bug#6098).
5
12012-01-29 Chong Yidong <cyd@gnu.org> 62012-01-29 Chong Yidong <cyd@gnu.org>
2 7
8 * progmodes/python.el: Require ansi-color at top-level.
9
3 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-abbrev-table): Define 10 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-abbrev-table): Define
4 and use in Emacs Lisp mode (Bug#9360). 11 and use in Emacs Lisp mode (Bug#9360).
5 (lisp-mode-abbrev-table): Add doc. 12 (lisp-mode-abbrev-table): Add doc.
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 5fabe5086db..f024fbd5dfc 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1646,8 +1646,8 @@ and source-file directory for your debugger."
1646 (gud-common-init command-line nil 'gud-pdb-marker-filter) 1646 (gud-common-init command-line nil 'gud-pdb-marker-filter)
1647 (set (make-local-variable 'gud-minor-mode) 'pdb) 1647 (set (make-local-variable 'gud-minor-mode) 'pdb)
1648 1648
1649 (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.") 1649 (gud-def gud-break "break %d%f:%l" "\C-b" "Set breakpoint at current line.")
1650 (gud-def gud-remove "clear %f:%l" "\C-d" "Remove breakpoint at current line") 1650 (gud-def gud-remove "clear %d%f:%l" "\C-d" "Remove breakpoint at current line")
1651 (gud-def gud-step "step" "\C-s" "Step one source line with display.") 1651 (gud-def gud-step "step" "\C-s" "Step one source line with display.")
1652 (gud-def gud-next "next" "\C-n" "Step one line (skip functions).") 1652 (gud-def gud-next "next" "\C-n" "Step one line (skip functions).")
1653 (gud-def gud-cont "continue" "\C-r" "Continue with display.") 1653 (gud-def gud-cont "continue" "\C-r" "Continue with display.")
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0c29891cd92..15d98ce48af 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -67,6 +67,7 @@
67;;; Code: 67;;; Code:
68 68
69(require 'comint) 69(require 'comint)
70(require 'ansi-color)
70 71
71(eval-when-compile 72(eval-when-compile
72 (require 'compile) 73 (require 'compile)
@@ -1386,7 +1387,6 @@ For running multiple processes in multiple buffers, see `run-python' and
1386 1387
1387\\{inferior-python-mode-map}" 1388\\{inferior-python-mode-map}"
1388 :group 'python 1389 :group 'python
1389 (require 'ansi-color) ; for ipython
1390 (setq mode-line-process '(":%s")) 1390 (setq mode-line-process '(":%s"))
1391 (set (make-local-variable 'comint-input-filter) 'python-input-filter) 1391 (set (make-local-variable 'comint-input-filter) 'python-input-filter)
1392 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter 1392 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter
@@ -1530,7 +1530,6 @@ behavior, change `python-remove-cwd-from-path' to nil."
1530 (interactive (if current-prefix-arg 1530 (interactive (if current-prefix-arg
1531 (list (read-string "Run Python: " python-command) nil t) 1531 (list (read-string "Run Python: " python-command) nil t)
1532 (list python-command))) 1532 (list python-command)))
1533 (require 'ansi-color) ; for ipython
1534 (unless cmd (setq cmd python-command)) 1533 (unless cmd (setq cmd python-command))
1535 (python-check-version cmd) 1534 (python-check-version cmd)
1536 (setq python-command cmd) 1535 (setq python-command cmd)