Skip to content

Setting , syntax to whitespace shouldn't happen inside docstrings #561

Closed
@jaor

Description

@jaor

Expected behavior

When delete-trailing-whitespace mode is enabled (or the function called by hand),
trailing commas at the end of a docstring line shouldn't be deleted.

Actual behavior

Commas at the end of a docstring line are deleted.

Steps to reproduce the problem

  • Open foo.clj
  • Type
   (def foo
       "A docstring with more than a line,
        and a comma at the end of the previous one."
      42)
  • Extend the region to the full file, e.g. C-x h
  • M-x delete-trailing-whitespace

The command at the end of "than a line," is deleted.

Environment & Version information

emacs 27 pre-release

clojure-mode version

clojure-mode (version 5.12.0-snapshot)

Emacs version

27 pre-release

Operating system

Debian sid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions