diff options
| author | Ken Manheimer | 2011-11-16 11:37:48 -0500 |
|---|---|---|
| committer | Ken Manheimer | 2011-11-16 11:37:48 -0500 |
| commit | 8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0 (patch) | |
| tree | 2abe503327cba2f5e1f24ecba17acb1dc4251737 | |
| parent | 58179ccebd1c2fd18fa422a7bb4d2cf78994e3c9 (diff) | |
| download | emacs-8642c2163e9b0dfcf2aa4e0a6a7850b322faddc0.tar.gz 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
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/allout-widgets.el | 9 | ||||
| -rw-r--r-- | lisp/allout.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
4 files changed, 18 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e17c25a17db..e1eb8a78082 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-11-16 Ken Manheimer <ken.manheimer@gmail.com> | ||
| 2 | |||
| 3 | * python.el (python-pdbtrack-stack-entry-regexp) | ||
| 4 | (python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file): | ||
| 5 | Adjust to recognize ipdb as well as regular python pdb prompts. | ||
| 6 | Adjustments shamelessly taken exactly as suggested in EmacsWiki | ||
| 7 | page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14 | ||
| 8 | |||
| 1 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> | 9 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 10 | ||
| 3 | * expand.el (expand-pos, expand-index, expand-point): | 11 | * expand.el (expand-pos, expand-index, expand-point): |
| @@ -47,6 +55,7 @@ | |||
| 47 | which wasn't being used. Add optional arg to force given state. | 55 | which wasn't being used. Add optional arg to force given state. |
| 48 | (rmail-mime): Add optional arg to force given state. | 56 | (rmail-mime): Add optional arg to force given state. |
| 49 | 57 | ||
| 58 | >>>>>>> MERGE-SOURCE | ||
| 50 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> | 59 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> |
| 51 | 60 | ||
| 52 | * allout.el (allout-encryption-plaintext-sanitization-regexps): | 61 | * allout.el (allout-encryption-plaintext-sanitization-regexps): |
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el index da21244b7b1..c5d34fc3e3b 100644 --- a/lisp/allout-widgets.el +++ b/lisp/allout-widgets.el | |||
| @@ -1,14 +1,13 @@ | |||
| 1 | ;; allout-widgets.el --- Visually highlight allout outline structure. | 1 | ;; allout-widgets.el --- Visually highlight allout outline structure. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Ken Manheimer | 3 | ;; Copyright (C) 2005-2011 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Ken Manheimer <ken dot manheimer at gmail dot com> | 5 | ;; Author: Ken Manheimer <ken dot manheimer at gmail...> |
| 6 | ;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com> | 6 | ;; Maintainer: Ken Manheimer <ken dot manheimer at gmail...> |
| 7 | ;; Version: 1.0 | 7 | ;; Version: 1.0 |
| 8 | ;; Created: Dec 2005 | 8 | ;; Created: Dec 2005 |
| 9 | ;; Version: 1.0 | ||
| 10 | ;; Keywords: outlines | 9 | ;; Keywords: outlines |
| 11 | ;; Website: http://myriadicity.net/Sundry/EmacsAllout | 10 | ;; Website: http://myriadicity.net/software-and-systems/craft/emacs-allout |
| 12 | 11 | ||
| 13 | ;;; Commentary: | 12 | ;;; Commentary: |
| 14 | 13 | ||
diff --git a/lisp/allout.el b/lisp/allout.el index 2a4f5cbafbb..4098ba9ba5b 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992-1994, 2001-2011 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1992-1994, 2001-2011 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Ken Manheimer <ken dot manheimer at gmail dot com> | 5 | ;; Author: Ken Manheimer <ken dot manheimer at gmail...> |
| 6 | ;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com> | 6 | ;; Maintainer: Ken Manheimer <ken dot manheimer at gmail...> |
| 7 | ;; Created: Dec 1991 -- first release to usenet | 7 | ;; Created: Dec 1991 -- first release to usenet |
| 8 | ;; Version: 2.3 | 8 | ;; Version: 2.3 |
| 9 | ;; Keywords: outlines, wp, languages, PGP, GnuPG | 9 | ;; Keywords: outlines, wp, languages, PGP, GnuPG |
| 10 | ;; Website: http://myriadicity.net/Sundry/EmacsAllout | 10 | ;; Website: http://myriadicity.net/software-and-systems/craft/emacs-allout |
| 11 | 11 | ||
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | 13 | ||
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'." | |||
| 550 | "^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()" | 550 | "^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()" |
| 551 | "Regular expression pdbtrack uses to find a stack trace entry.") | 551 | "Regular expression pdbtrack uses to find a stack trace entry.") |
| 552 | 552 | ||
| 553 | (defconst python-pdbtrack-input-prompt "\n[(<]*[Pp]db[>)]+ " | 553 | (defconst python-pdbtrack-input-prompt "\n[(<]*[Ii]?[Pp]db[>)]+ " |
| 554 | "Regular expression pdbtrack uses to recognize a pdb prompt.") | 554 | "Regular expression pdbtrack uses to recognize a pdb prompt.") |
| 555 | 555 | ||
| 556 | (defconst python-pdbtrack-track-range 10000 | 556 | (defconst python-pdbtrack-track-range 10000 |
| @@ -2583,6 +2583,7 @@ find it." | |||
| 2583 | (if (not (string-match (concat python-pdbtrack-input-prompt "$") block)) | 2583 | (if (not (string-match (concat python-pdbtrack-input-prompt "$") block)) |
| 2584 | (python-pdbtrack-overlay-arrow nil) | 2584 | (python-pdbtrack-overlay-arrow nil) |
| 2585 | 2585 | ||
| 2586 | (setq block (ansi-color-filter-apply block)) | ||
| 2586 | (setq target (python-pdbtrack-get-source-buffer block)) | 2587 | (setq target (python-pdbtrack-get-source-buffer block)) |
| 2587 | 2588 | ||
| 2588 | (if (stringp target) | 2589 | (if (stringp target) |