]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `which-func-functions' defaults to '(python-info-current-defun)
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:45 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:45 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 1ede66058e8ae354c72b47c58e8b1c282bc85017..4b9a29845c55f0973bed44ced875292f88eb0713 100644 (file)
@@ -2838,6 +2838,8 @@ if that value is non-nil."
   (set (make-local-variable 'add-log-current-defun-function)
        #'python-info-current-defun)
 
+  (add-hook 'which-func-functions #'python-info-current-defun nil t)
+
   (set (make-local-variable 'skeleton-further-elements)
        '((abbrev-mode nil)
          (< '(backward-delete-char-untabify (min python-indent-offset