From 71a8093b8f6eb522ff7a8277739ef71bfe682cc8 Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Mon, 7 Aug 2017 20:22:11 +0200 Subject: [PATCH] [Fix #443] Don't consider #? as starting non-logical sexp --- CHANGELOG.md | 1 + clojure-mode.el | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6f9b035..1c96a6ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bugs fixed * Fix fill-paragraph in multi-line comments. +* [#443](https://github.com/clojure-emacs/clojure-mode/issues/443): Fix behavior of `clojure-forward-logical-sexp` and `clojure-backward-logical-sexp` with conditional macros. * [#429](https://github.com/clojure-emacs/clojure-mode/issues/429): Fix a bug causing last occurrence of expression sometimes is not replaced when using `move-to-let`. * [#423](https://github.com/clojure-emacs/clojure-mode/issues/423): Make `clojure-match-next-def` more robust against zero-arity def-like forms. diff --git a/clojure-mode.el b/clojure-mode.el index 0612facb..ed8a8052 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -1767,11 +1767,10 @@ Returns a list pair, e.g. (\"defn\" \"abc\") or (\"deftest\" \"some-test\")." ;;; Sexp navigation (defun clojure--looking-at-non-logical-sexp () "Return non-nil if text after point is \"non-logical\" sexp. - \"Non-logical\" sexp are ^metadata and #reader.macros." (comment-normalize-vars) (comment-forward (point-max)) - (looking-at-p "\\^\\|#[?[:alpha:]]")) + (looking-at-p "\\^\\|#[[:alpha:]]")) (defun clojure-forward-logical-sexp (&optional n) "Move forward N logical sexps.