Skip to content

Commit

Permalink
Restore outline-regexp pattern for top-level forms
Browse files Browse the repository at this point in the history
Multiple alternate patterns were previously removed from outline-regexp in
b1ea6de. The pattern restored in this commit is needed to enable top-level forms
to participate in outline-minor-mode.

Adding this pattern back in does not undo the fix intended in b1ea6de.
  • Loading branch information
jeffvalk authored and bbatsov committed Dec 11, 2024
1 parent 63356ee commit 740ca69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bugs fixed

* [cider#3758](https://github.com/clojure-emacs/cider/issues/3758): Improve regexp for clojure-find-def to recognize more complex metadata on vars
* [#684](https://github.com/clojure-emacs/clojure-mode/issues/684): Restore `outline-regexp` pattern to permit outline handling of top-level forms.

## 5.19.0 (2024-05-26)

Expand Down
2 changes: 1 addition & 1 deletion clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ replacement for `cljr-expand-let`."
(add-to-list 'imenu-generic-expression '(nil clojure-match-next-def 0))
(setq-local indent-tabs-mode nil)
(setq-local paragraph-ignore-fill-prefix t)
(setq-local outline-regexp ";;;;* ")
(setq-local outline-regexp ";;;;* \\|(") ; comments and top-level forms
(setq-local outline-level 'lisp-outline-level)
(setq-local comment-start ";")
(setq-local comment-start-skip ";+ *")
Expand Down

0 comments on commit 740ca69

Please sign in to comment.