Mercurial > emacs
diff lisp/progmodes/python.el @ 99145:9f4cc3f73286
(python-mode): Don't impose ourselves on hippie.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Sun, 26 Oct 2008 05:10:54 +0000 |
| parents | 5f56382dc026 |
| children | a9dc0e7c3f2b |
line wrap: on
line diff
--- a/lisp/progmodes/python.el Sun Oct 26 04:32:09 2008 +0000 +++ b/lisp/progmodes/python.el Sun Oct 26 05:10:54 2008 +0000 @@ -2473,10 +2473,12 @@ '((< '(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))
