Mercurial > emacs
comparison lisp/progmodes/python.el @ 68311:8db317ab20fc
(python-mode) <eldoc-mode-hook>: Pass nil as the first arg to run-python.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 21 Jan 2006 11:48:25 +0000 |
parents | 6c46e0e1ba7b |
children | dc49655f57ae 5b7d410e31f9 |
comparison
equal
deleted
inserted
replaced
68310:7badc603f7ab | 68311:8db317ab20fc |
---|---|
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-documentation-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 nil 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) |
1749 (cons 'python-try-complete hippie-expand-try-functions-list))) | 1749 (cons 'python-try-complete hippie-expand-try-functions-list))) |
1750 (unless font-lock-mode (font-lock-mode 1)) | 1750 (unless font-lock-mode (font-lock-mode 1)) |
1751 (when python-guess-indent (python-guess-indent)) | 1751 (when python-guess-indent (python-guess-indent)) |