Issue #176 resolved

Entered debugger from normal state, exitted debugger to insert state

epich avatarepich created an issue

In my .emacs: (delete 'debugger-mode evil-emacs-state-modes)

In the scratch buffer, insert (debug), then escape to normal state. With cursor on closing paren, execute eval-last-sexp. Editor enters the debugger, normal state. Hit \q to quit the debugger. Editor exits the debugger and returns to the scratch buffer, in the insert state. But I expected the normal state since that was what I was last in.

Comments (4)

  1. epich

    I checked whether this bug still exists. The current behavior is different, it now exits out of the debugger into the correct Evil state as expected. The only thing is an error:

    Error in post-command-hook (evil-execute-in-emacs-state): (error "Selecting deleted buffer")
  2. Frank Fischer

    Ensure emacs-state-buffer is alive when finishing emacs-state command

    The command executed in emacs-state may have deleted the buffer. In this case the attempt to select that buffer in `evil-execute-in-emacs-state' will raise an error. We now ensure that the buffer is still alive.

    This fixes #176.

    → <<cset 8727e1a9ea08>>

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.