|
From: | Dima Kogan |
Subject: | bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks |
Date: | Sun, 31 Jul 2022 12:04:48 -0700 |
User-agent: | mu4e 1.8.6; emacs 29.0.50 |
Hi. Thanks for looking at this. I do agree that the best thing to do is to use functions instead of pure regexes here. Can we hook that into hs-special-modes-alist instead of doing something specific in python-mode? I'm imagining extending the meaning of the fields in hs-special-modes-alist, where we'd do something different, depending on if some element is a string or not. Maybe that would make it easier to extend the hideshow support for other languages?
[Prev in Thread] | Current Thread | [Next in Thread] |