Mercurial > emacs
comparison lisp/progmodes/python.el @ 61857:7b4e7e55f61b
(python-mode): Use new name eldoc-documentation-function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 Apr 2005 11:01:52 +0000 |
parents | bf4917ef8f38 |
children | 1962e8146bf4 08185296b491 |
comparison
equal
deleted
inserted
replaced
61856:86712739476e | 61857:7b4e7e55f61b |
---|---|
1678 nil))) | 1678 nil))) |
1679 | 1679 |
1680 ;;;; Modes. | 1680 ;;;; Modes. |
1681 | 1681 |
1682 (defvar outline-heading-end-regexp) | 1682 (defvar outline-heading-end-regexp) |
1683 (defvar eldoc-print-current-symbol-info-function) | 1683 (defvar eldoc-documentation-function) |
1684 | 1684 |
1685 ;;;###autoload | 1685 ;;;###autoload |
1686 (define-derived-mode python-mode fundamental-mode "Python" | 1686 (define-derived-mode python-mode fundamental-mode "Python" |
1687 "Major mode for editing Python files. | 1687 "Major mode for editing Python files. |
1688 Turns on Font Lock mode unconditionally since it is required for correct | 1688 Turns on Font Lock mode unconditionally since it is required for correct |
1738 (make-local-variable 'python-saved-check-command) | 1738 (make-local-variable 'python-saved-check-command) |
1739 (set (make-local-variable 'beginning-of-defun-function) | 1739 (set (make-local-variable 'beginning-of-defun-function) |
1740 'python-beginning-of-defun) | 1740 'python-beginning-of-defun) |
1741 (set (make-local-variable 'end-of-defun-function) 'python-end-of-defun) | 1741 (set (make-local-variable 'end-of-defun-function) 'python-end-of-defun) |
1742 (setq imenu-create-index-function #'python-imenu-create-index) | 1742 (setq imenu-create-index-function #'python-imenu-create-index) |
1743 (set (make-local-variable 'eldoc-print-current-symbol-info-function) | 1743 (set (make-local-variable 'eldoc-documentation-function) |
1744 #'python-eldoc-function) | 1744 #'python-eldoc-function) |
1745 (add-hook 'eldoc-mode-hook | 1745 (add-hook 'eldoc-mode-hook |
1746 '(lambda () (run-python 0 t)) nil t) ; need it running | 1746 '(lambda () (run-python 0 t)) nil t) ; need it running |
1747 (if (featurep 'hippie-exp) | 1747 (if (featurep 'hippie-exp) |
1748 (set (make-local-variable 'hippie-expand-try-functions-list) | 1748 (set (make-local-variable 'hippie-expand-try-functions-list) |