Skip to content

clojure-find-ns breaks if the ns form is preceded by whitespace #593

Closed
@bbatsov

Description

@bbatsov

See clojure-emacs/cider#3009

Expected behavior

clojure-find-ns should handle properly an ns form with preceding whitespace.

Actual behavior

It returns nil.

Steps to reproduce the problem

  (ns foo.bar)

(defn foo [] :bar)

Try evaluating the defn form.

Environment & Version information

clojure-mode version

clojure-mode (version 5.10.0)

Emacs version

26.3

Operating system

Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions