diff options
| author | Stefan Monnier | 2014-10-20 18:37:04 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-10-20 18:37:04 -0400 |
| commit | c9f7e33c60b95981367187d0419b50a8d4024ff4 (patch) | |
| tree | c6dc2bbc5077fa5a08f42ac10acffba0cfe66f01 | |
| parent | 3b1f2e09998262fb103c9d2dee3383746977d1d1 (diff) | |
| download | emacs-c9f7e33c60b95981367187d0419b50a8d4024ff4.tar.gz emacs-c9f7e33c60b95981367187d0419b50a8d4024ff4.zip | |
* lisp/progmodes/python.el (inferior-python-mode): Use add-hook.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6680722dd4f..9e1ffa7ba20 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2014-10-20 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-10-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/python.el (inferior-python-mode): Use add-hook. | ||
| 4 | |||
| 3 | * Makefile.in (AUTOGEN_VCS): Remove emulation/tpu-edt.el. | 5 | * Makefile.in (AUTOGEN_VCS): Remove emulation/tpu-edt.el. |
| 4 | 6 | ||
| 5 | 2014-10-20 Glenn Morris <rgm@gnu.org> | 7 | 2014-10-20 Glenn Morris <rgm@gnu.org> |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a564acc3075..c828de10304 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2165,9 +2165,9 @@ variable. | |||
| 2165 | (define-key inferior-python-mode-map [remap complete-symbol] | 2165 | (define-key inferior-python-mode-map [remap complete-symbol] |
| 2166 | 'completion-at-point) | 2166 | 'completion-at-point) |
| 2167 | (add-hook 'completion-at-point-functions | 2167 | (add-hook 'completion-at-point-functions |
| 2168 | 'python-shell-completion-complete-at-point nil 'local) | 2168 | #'python-shell-completion-complete-at-point nil 'local) |
| 2169 | (add-to-list (make-local-variable 'comint-dynamic-complete-functions) | 2169 | (add-hook 'comint-dynamic-complete-functions ;FIXME: really? |
| 2170 | 'python-shell-completion-complete-at-point) | 2170 | #'python-shell-completion-complete-at-point nil 'local) |
| 2171 | (define-key inferior-python-mode-map "\t" | 2171 | (define-key inferior-python-mode-map "\t" |
| 2172 | 'python-shell-completion-complete-or-indent) | 2172 | 'python-shell-completion-complete-or-indent) |
| 2173 | (make-local-variable 'python-pdbtrack-buffers-to-kill) | 2173 | (make-local-variable 'python-pdbtrack-buffers-to-kill) |