Bad interaction with paredit-kill

Bug #314017 reported by Gwen Weinholt
2
Affects Status Importance Assigned to Milestone
Scheme Mode for Emacs
Fix Released
High
Derick Eddington

Bug Description

Using the latest paredit-beta and your scheme-mode, there is a problem with paredit-kill in strings. To reproduce this I ran emacs -q and require'd paredit and scheme. Then I switched to a new buffer and enabled scheme-mode and then paredit-mode. Type "foo" and put the cursor on the 'f' and then type C-k. There is an error:
forward-sexp: Scan error: "Unbalanced parentheses", 1, 1

This problem does not occur with e.g. lisp-mode + paredit-mode. I hope this is enough for you to reproduce it (since paredit-beta.el says it's hard to reproduce problems with paredit-kill).

http://mumble.net/~campbell/emacs/paredit-beta.el of 2008-12-15.
GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.11) of 2009-01-03 on industria
And scheme-mode rev 11.

Revision history for this message
Gwen Weinholt (weinholt) wrote :

I found another bad interaction with paredit (maybe these are bugs in paredit?). paredit-forward-slurp-sexp doesn't work properly, because of another "unbalanced parenthesis" error. To reproduce you can make the buffer look like this:

() foo

and then position the cursor on ')' and type C-). The closing parenthesis disappears and there is an error message:
up-list: Scan error: "Unbalanced parentheses", 6, 6

Revision history for this message
Gwen Weinholt (weinholt) wrote :

A possible clue: open up a new buffer and type (if foo RET. When typing RET there is an error:
forward-sexp: Scan error: "Unbalanced parentheses", 1, 9
and this is without paredit-mode even loaded.

Revision history for this message
Derick Eddington (derick-eddington) wrote :

Confirmed with Paredit versions 20 and 21.

Changed in scheme-mode:
assignee: nobody → derick-eddington
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Derick Eddington (derick-eddington) wrote :

All fixed in revision 13. All three bugs were because scheme-beginning-of-top-level-form was not fully working like Emacs' default beginning-of-defun.

Changed in scheme-mode:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.