title: Emacs function to message the python function I'm in
body: <p>I'm editing some Python code with rather long functions and decided it would be useful to quickly get the function name without scrolling up. I put this bit of code together to do it. Is there something built in to emacs in general, or the standard python mode in particular, which I can use instead?</p>
  
  <pre><code>(defun python-show-function-name()
    "Message the name of the function the point is in"
    (interactive)
    (save-excursion
      (beginning-of-defun)
      (message (format "%s" (thing-at-point 'line)))))
  </code></pre>