Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paren(s) inside quotes are not ignored #211

Open
precompute opened this issue Apr 18, 2024 · 1 comment
Open

Paren(s) inside quotes are not ignored #211

precompute opened this issue Apr 18, 2024 · 1 comment

Comments

@precompute
Copy link

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))

@tomdl89
Copy link
Member

tomdl89 commented Apr 18, 2024

Thanks @precompute - good catch. For improved clarity for when I come to look at this, here's the result of doing csb> on each:

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants