Determining the current class
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
I'd like some way to easily determine the class that
the Emacs point is in. I looked for a way but didn't
find anything relevant.
For the moment, I've put together something that
attempts to determine the current class and display it
via the echo area. Code follows:
(defun py-show-
(interactive)
(save-excursion
(let ((class-name nil))
(if (py-go-
(setq class-name (py-current-defun))
(setq class-name "None determined"))
(message (format "Current class: %s" class-name)))))
P.S. I thought of working with which-function-
the mode line seems too crowded already.
[http://
Related branches
- python-mode.el developers: Pending requested
-
Diff: 5004 lines (+2516/-1849)5 files modifiedUnicodeEncodeError-lp:550661-test.py (+4/-0)
py-bug-numbered-tests.el (+738/-245)
python-mode-test.el (+202/-0)
python-mode-tests.sh (+88/-0)
python-mode.el (+1484/-1604)
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | New → Confirmed |
Changed in python-mode: | |
milestone: | none → 6.0 |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
I just learned about header-line-format in Emacs 21 --
perhaps the current class can be displayed there.