Permalink
Browse files

Emacs interface: fix thing-at-point (#47)

The JSON serialization of Maybe changed incompatibly with commit
897ec92, from
  Nothing ↦ {"Nothing":null}
  Just "foo" ↦ {"Just":"foo"}
to
  Nothing ↦ null
  Just "foo" ↦ "foo"

Fix the Emacs interface to understand this.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent 897ec92 commit d67e6f87c3f1adee67cb1fa36caf48bf1909a1f1 @andersk andersk committed May 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 emacs/scion.el
View
@@ -2263,7 +2263,7 @@ forces it to be off. NIL toggles the current state."
(let ((rslt (scion-eval `(thing-at-point :file ,filename
:line ,line
:column ,col))))
- (funcall (lambda (r) (format "%s" (cadr r))) rslt)))))
+ rslt))))
(defun scion-dump-sources ()
(interactive)

0 comments on commit d67e6f8

Please sign in to comment.