Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

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

Open
mblakele opened this issue Jul 17, 2011 · 1 comment
Open
Labels

Comments

@mblakele
Copy link

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
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants