From f89588a6f85f6a54d11b57119549a6d7300585eb Mon Sep 17 00:00:00 2001 From: j-cr <41063058+j-cr@users.noreply.github.com> Date: Sun, 26 Jan 2020 22:08:36 +0500 Subject: [PATCH 1/2] [Fix #550] Fix outline-regexp Update outline-regexp so outline-insert-heading behaves correctly. --- clojure-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clojure-mode.el b/clojure-mode.el index bf183fbe..5f39da53 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -507,7 +507,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 ";;;\\(;* [^ \t\n]\\)\\|(") + (setq-local outline-regexp ";;;;* ") (setq-local outline-level 'lisp-outline-level) (setq-local comment-start ";") (setq-local comment-start-skip ";+ *") From 071a227a330766d63b7ccb3ceb906c7213b79e52 Mon Sep 17 00:00:00 2001 From: j-cr <41063058+j-cr@users.noreply.github.com> Date: Sun, 26 Jan 2020 22:24:50 +0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22d08590..48807d71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bugs fixed +* [#550](https://github.com/clojure-emacs/clojure-mode/issues/550): Fix `outline-regexp` so `outline-insert-heading` behaves correctly. * [#520](https://github.com/clojure-emacs/clojure-mode/issues/508): Fix allow `clojure-align-cond-forms` to recognize qualified forms. * Enhance add arity refactoring to support a defn inside a reader conditional. * [#404](https://github.com/clojure-emacs/clojure-mode/issues/404)/[#528]((https://github.com/clojure-emacs/clojure-mode/issues/528)) Fix syntax highlighting for multiple consecutive comment reader macros (`#_#_`)