On 2022-06-07 11:17, Galen Seitz wrote:
On 6/7/22 10:32, Rich Shepard wrote:
Perhaps my web search terms ask the wrong questions, but I've not found how to 'collapse' an emacs buffer so only those lines beginning in column 1 are
displayed.

My use is python coding. A module (*.py file) will have multiple classes defined, each class beginning in column 1 while all following lines are indented (4 spaces here). When I want to see what classes are in a buffer being able to see only class names, then returning to view all lines, is
quite useful.

In the 1980s I used a DOS programming editor called 'MultiEdit' that had this capability and it was really useful. I'm sure that emacs can do it yet
I've not found how.

Please point me to resources where I can learn how to do this.

It sounds like you would benefit from some python-specific emacs code.
This looks relevant:

<https://stackoverflow.com/questions/18479208/emacs-plugin-to-list-all-methods-in-a-python-module>

galen

--
     Michael Rasmussen
Be Appropriate && Follow Your Curiosity

Reply via email to