From: Stefan Monnier Date: Fri, 11 Apr 2008 17:50:56 +0000 (+0000) Subject: (python-mode): Don't mess with hippie-expand. X-Git-Tag: emacs-pretest-22.2.90~190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f9020f1a2f1811e3dc4af358b90007979aa8fb8;p=emacs.git (python-mode): Don't mess with hippie-expand. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75702835987..b0b66d05b77 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-04-11 Stefan Monnier + + * progmodes/python.el (python-mode): Don't mess with hippie-expand. + 2008-04-11 Chong Yidong * woman.el (woman2-TH): Use string-equal instead of string-match. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index ae863df3b5d..19e9373a5ec 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2291,9 +2291,11 @@ with skeleton expansions for compound statement templates. (current-column)))) (^ '(- (1+ (current-indentation)))))) (add-hook 'pre-abbrev-expand-hook 'python-pea-hook nil t) - (if (featurep 'hippie-exp) - (set (make-local-variable 'hippie-expand-try-functions-list) - (cons 'python-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 'python-try-complete hippie-expand-try-functions-list))) ;; Python defines TABs as being 8-char wide. (set (make-local-variable 'tab-width) 8) (when python-guess-indent (python-guess-indent))