From f75501733f3288b8ea4eddc903cc59c7227304bc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 26 Oct 2008 05:10:54 +0000 Subject: [PATCH] (python-mode): Don't impose ourselves on hippie. --- lisp/ChangeLog | 2 ++ lisp/progmodes/python.el | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8abb20b481b..5c74b7763d0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2008-10-26 Stefan Monnier + * progmodes/python.el (python-mode): Don't impose ourselves on hippie. + * faces.el (face-font-family-alternatives): Add "CMU Typewriter Text" to the courier family. * textmodes/tex-mode.el (tex-verbatim): Don't use "monospace" which is diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5fbd617be10..3e8cefe6a47 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2473,10 +2473,12 @@ with skeleton expansions for compound statement templates. '((< '(backward-delete-char-untabify (min python-indent (current-column)))) (^ '(- (1+ (current-indentation)))))) - (if (featurep 'hippie-exp) - (set (make-local-variable 'hippie-expand-try-functions-list) - (cons 'symbol-completion-try-complete - hippie-expand-try-functions-list))) + ;; Let's not mess with hippie-expand. Symbol-completion should rather be + ;; bound to another key, since it has different performance requirements. + ;; (if (featurep 'hippie-exp) + ;; (set (make-local-variable 'hippie-expand-try-functions-list) + ;; (cons 'symbol-completion-try-complete + ;; hippie-expand-try-functions-list))) ;; Python defines TABs as being 8-char wide. (set (make-local-variable 'tab-width) 8) (unless font-lock-mode (font-lock-mode 1)) -- 2.11.4.GIT