-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
outline-minor-mode doesn't behave correctly with clojure-mode #550
Comments
Seems something's wrong with the current regexp indeed, although it doesn't seem obviously incorrect. The intention seems to be to check for an extra |
Btw, it seems we copied this from (setq-local outline-regexp ";;;\\(;* [^ \t\n]\\|###autoload\\)\\|(") |
Re But there are packages (bicycle) that solve this problem by treating top-level exprs explicitly (bicycle knows how to hide them independently of what Re
but it means that the "space and then a non-whitespace character" part is included in the match, and
So, if we do |
Update outline-regexp so outline-insert-heading behaves correctly.
Shouldn't we at least expect some characters (e.g. letters/numbers/punctuation) after the |
For example org-mode treats empty headings ( |
TL;DR: in
clojure-mode-variables
, the line(setq-local outline-regexp ";;;\\(;* [^ \t\n]\\)\\|(")
is likely incorrect; replacing it with
(setq-local outline-regexp ";;;;* ")
works for me.Expected behavior
Do
M-x outline-minor-mode
in a clojure buffer; the commandoutline-insert-heading
should behave correctly.In particular, call to
outline-insert-heading
on the first line of each pair should result in the second line:Actual behavior
Steps to reproduce the problem
See above, tldr;
M-x outline-minor-mode
, thenM-x outline-insert-heading
.Environment & Version information
clojure-mode version information
clojure-mode (version 5.11.0)
Emacs version
25.3.1
The text was updated successfully, but these errors were encountered: