Skip to content

Paren(s) inside quotes are not ignored #211

@precompute

Description

@precompute

Emacs: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-03-29
OS: Debian Stable

Steps:

  • emacs -Q
  • package-install, evil
  • clone evil-surround and load evil-surround.el
  • scratch buffer with lisp-interaction-mode

Contents of buffer:

(progn
  (when (looking-at "x")
    (something))
  (something-else))

(progn
  (when (looking-at ")")
    (something))
  (something-else))

(progn
  (when (looking-at "))")
    (something))
  (something-else))
  • Execute dsb for all three, with cursor on the progn's 'p'

Contents of buffer after:

progn
  (when (looking-at "x")
    (something))
  (something-else)

progn
  (when (looking-at ")")
    (something)
  (something-else))

progn
  (when (looking-at "))"
    (something))
  (something-else))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions