summaryrefslogtreecommitdiff
path: root/elisp/geiser-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-edit.el')
-rw-r--r--elisp/geiser-edit.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index f75e303..d43cf9b 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -191,7 +191,7 @@ or following links in error buffers.")
(let ((cloak (geiser-edit--cloak form)))
(save-excursion
(goto-char (point-min))
- (while (re-search-forward (format "(%s\\b" (regexp-quote form)) nil t)
+ (while (re-search-forward (format "(%s\\b" form) nil t)
(let* ((beg (match-beginning 0))
(end (progn (ignore-errors (goto-char beg) (forward-sexp))
(point))))
@@ -204,6 +204,10 @@ or following links in error buffers.")
(remove-overlays nil nil 'invisible cloak)
(remove-from-invisibility-spec (cons cloak t))))
+(defun geiser-edit--show-all ()
+ (remove-overlays)
+ (setq buffer-invisibility-spec '(t)))
+
(defun geiser-edit--toggle-visibility (form)
(if (and (listp buffer-invisibility-spec)
(assoc (geiser-edit--cloak form) buffer-invisibility-spec))