diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 3d243f14f07..4d2f15c69d8 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1868,6 +1868,7 @@ instance. Assumes an inferior Python is running." | |||
| 1868 | 1868 | ||
| 1869 | (declare-function info-lookup-maybe-add-help "info-look" (&rest arg)) | 1869 | (declare-function info-lookup-maybe-add-help "info-look" (&rest arg)) |
| 1870 | 1870 | ||
| 1871 | ;;;###autoload | ||
| 1871 | (defun python-after-info-look () | 1872 | (defun python-after-info-look () |
| 1872 | "Set up info-look for Python. | 1873 | "Set up info-look for Python. |
| 1873 | Used with `eval-after-load'." | 1874 | Used with `eval-after-load'." |
| @@ -2731,6 +2732,16 @@ comint believe the user typed this string so that | |||
| 2731 | (defun python-sentinel (_proc _msg) | 2732 | (defun python-sentinel (_proc _msg) |
| 2732 | (setq overlay-arrow-position nil)) | 2733 | (setq overlay-arrow-position nil)) |
| 2733 | 2734 | ||
| 2735 | (defun python-unload-function () | ||
| 2736 | "Unload the Python library." | ||
| 2737 | (remove-hook 'comint-output-filter-functions 'python-pdbtrack-track-stack-file) | ||
| 2738 | (setq minor-mode-alist (assq-delete-all 'python-pdbtrack-is-tracking-p | ||
| 2739 | minor-mode-alist)) | ||
| 2740 | (dolist (error '("^No symbol" "^Can't shift all lines enough")) | ||
| 2741 | (setq debug-ignored-errors (delete error debug-ignored-errors))) | ||
| 2742 | ;; continue standard unloading | ||
| 2743 | nil) | ||
| 2744 | |||
| 2734 | (provide 'python) | 2745 | (provide 'python) |
| 2735 | (provide 'python-21) | 2746 | (provide 'python-21) |
| 2736 | 2747 | ||