aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorJuri Linkov2025-04-29 19:55:48 +0300
committerJuri Linkov2025-04-29 19:55:48 +0300
commit746a3cb3143194436c4a1a63d26aac890c1a705f (patch)
tree12368eecd009a137a1acf68de131e6aa5219d1ab /lisp/progmodes/python.el
parent9d0595d8795fbd604c6429317daff4d6445f8904 (diff)
downloademacs-746a3cb3143194436c4a1a63d26aac890c1a705f.tar.gz
emacs-746a3cb3143194436c4a1a63d26aac890c1a705f.zip
Ignore parens in strings for outline headings in emacs-lisp-mode.
* lisp/outline.el (outline-font-lock-keywords): For non-nil outline-search-function return a lambda that calls the function, then sets the match data to the end of the line that is equivalent to adding ".*" in the regexp. Then search functions don't need to match ".*" themselves. * lisp/progmodes/elisp-mode.el (elisp-outline-search): New function to skip leading parens in strings when searching for outline headings. (emacs-lisp-mode): Set buffer-local 'outline-search-function' to 'elisp-outline-search'. https://lists.gnu.org/archive/html/emacs-devel/2025-04/msg00934.html
Diffstat (limited to 'lisp/progmodes/python.el')
0 files changed, 0 insertions, 0 deletions