Commit 257440aa authored by Leo Liu's avatar Leo Liu
Browse files

* lisp/progmodes/python.el: Move hideshow setup to the end.

parent b1bac16e
2012-04-24 Leo Liu <sdl.web@gmail.com>
* progmodes/python.el: Move hideshow setup to the end.
2012-04-24 Martin Rudalics <rudalics@gmx.at>
* window.el (handle-select-window): Clear echo area since this is
......
......@@ -2468,15 +2468,6 @@ with skeleton expansions for compound statement templates.
nil t)
(add-hook 'completion-at-point-functions
'python-completion-at-point nil 'local)
;; Fixme: should be in hideshow. This seems to be of limited use
;; since it isn't (can't be) indentation-based. Also hide-level
;; doesn't seem to work properly.
(add-to-list 'hs-special-modes-alist
`(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"
,(lambda (_arg)
(python-end-of-defun)
(skip-chars-backward " \t\n"))
nil))
(set (make-local-variable 'skeleton-further-elements)
'((< '(backward-delete-char-untabify (min python-indent
(current-column))))
......@@ -2717,6 +2708,17 @@ comint believe the user typed this string so that
;; continue standard unloading
nil)
;;;; Finish up
;; Fixme: should be in hideshow. This seems to be of limited use
;; since it isn't (can't be) indentation-based. Also hide-level
;; doesn't seem to work properly.
(add-to-list 'hs-special-modes-alist
`(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"
,(lambda (_arg)
(python-end-of-defun)
(skip-chars-backward " \t\n"))
nil))
(provide 'python)
(provide 'python-21)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment