Skip to content

Loading…

error during startup with paredit-non-lisp with desktop-save-mode #82

Open
mblakele opened this Issue · 1 comment

2 participants

@mblakele

Emacs startup halts if desktop-save-mode is enabled and a saved file doesn't look right to paredit. Workaround: disable paredit-non-lisp in starter-kit-js.el

Here's the backtrace:

Debugger entered--Lisp error: (error "Unmatched bracket or quote")
signal(error ("Unmatched bracket or quote"))
(condition-case condition (check-parens) (error (setq paredit-mode nil) (signal ... ...)))
(if (not (fboundp ...)) (paredit-warn "`check-parens' is not defined; %s" "be careful of malformed S-expressions.") (condition-case condition (check-parens) (error ... ...)))
(if (and paredit-mode (not current-prefix-arg)) (if (not ...) (paredit-warn "`check-parens' is not defined; %s" "be careful of malformed S-expressions.") (condition-case condition ... ...)))
(let ((last-message ...)) (setq paredit-mode (cond ... ... ...)) (if (and paredit-mode ...) (if ... ... ...)) (run-hooks (quote paredit-mode-hook) (if paredit-mode ... ...)) (if (called-interactively-p ...) (progn nil ...)))
paredit-mode(1)
esk-paredit-nonlisp()
run-hooks(espresso-mode-hook)
apply(run-hooks espresso-mode-hook)
run-mode-hooks(espresso-mode-hook)
espresso-mode()
set-auto-mode-0(espresso-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer cookie.js> "~/Source/foo/cookie.js" nil nil "~/Source/foo/cookie.js" (8422159 234881026))
find-file-noselect("~/Source/foo/cookie.js")
desktop-restore-file-buffer("~/Source/foo/cookie.js" "cookie.js" nil)
#[nil "�    \236A\206�
@gyordanov

i had the same problem with ruby/paredit, managed to solve it by adding something like this just after i require paredit

(defun gy-paredit-override-check-parens-interactively (condition)
  t)
(setq paredit-override-check-parens-function 'gy-paredit-override-check-parens-interactively)

i think this requires the latest paredit-beta version from http://mumble.net/~campbell/emacs/paredit-beta.el

hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.