commit b1ba2cf78e2d8e4a3b78fcf18478aa0b5bc6c721
parent 9778c0d988d1b7dcc48e7b22b53d80be53451ff5
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sat, 16 Dec 2017 14:24:29 +0000
Fix crash on variables containing keyword plists
cl-prettyprint calls lisp-indent-line. This function uses
calculate-lisp-indent, which relies on forward-sexp. If we're not in
lisp-mode, forward-sexp does not move by the right amount.
Closes #54
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -104,6 +104,7 @@ show the value of buffer-local variables.")
"Pretty-print VALUE.
This allows us to distinguish strings from symbols."
(with-temp-buffer
+ (delay-mode-hooks (lisp-mode))
(cl-prettyprint value)
(s-trim (buffer-string))))