vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
Fix remaining bugs in paredit-kill
https://github.com/whitphx/vscode-emacs-mcx/pull/1425 added an implementation of paredit-kill
, but left some bugs unfixed. The following bugs are mentioned in the PR.
Some of the screenshots below have color displaying the region that will be killed, for debugging purposes. This commit adds that (for debugging only): https://github.com/dandavison/vscode-emacs-mcx/commit/c2776fb967f4d2e30f2440a63a76c5a7d7f0c570
1
(JS) Here is an example of something that does not work correctly yet:
const initialText = `(
(
a b
)
(
c d
)
)`;
With cursor here: const initialText = <CURSOR>`(
, the result is
const initialText = `;
So as you can see it incorrectly leaves a backtick. In Emacs, in contrast, it deletes both backticks and the material contained within them:
const initialText = ;
2
(Scala) Here's an incorrect case (it should kill to end of line in this situation, but the shading shows that it actually kills to the end of the next line)

"source": source_name,
{"id": f'{target_name}.{space}' if space else target_name},
op
3
(Scala) And another one, in Scala. Again, this should kill to end of current line only:

val userIdInQueryParams =
if (satisfiesCustomAccessControlLogic(ctx.key.opaqueName1)) {