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

Unexpected behaviour of Ctrl+Z after use of "[" shortcut #1

Open
GoogleCodeExporter opened this issue Aug 31, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Assume the option of using "[" to enclose next sexp in "()" is activated
(from Window > Preferences > Lisp > Editing). 

Follow the instructions bellow to reproduce the behaviour. After each
instruction is an illustrations of its output, where the symbol "|"
represents the cursor position.

1. Put the cursor right before a certain sexp (0, for example):
    |0
2. press "[", you'll get something like:
    (| 0)
3. press Ctrl+Z to undo the previuos action, and you'll get:
    0|
   with the sexp being selected!

The undo action (Ctrl+Z) should put the editor in its previous state, that was:
    |0
with the cursor before the sexp (where it originally was) and without
selecting the sexp at all.

So there are two problems after using "[" + undo:
 - the position of the cursor is changed and
 - the sexp is selected.

This was observed with Cusp 1.0.414
(early released at cusp-development group, see
http://groups.google.com/group/cusp-development/browse_thread/thread/15a3a92e9e4
2fcfb)
and Eclipse 3.5.0 on Ubuntu Linux.

Original issue reported on code.google.com by [email protected] on 13 Sep 2009 at 2:08

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

No branches or pull requests

1 participant