I have some functions that depend on smart-parens
code.
(defun outer-paren ()
"Move point to the outermost parenthesis."
(interactive)
(ignore-errors
(while t
(up-list)))
(sp-backward-sexp))
(defun func ()
(let ((start (outer-paren))
(end (sp-forward-sexp)))
(narrow-to-region start end)))
The above func
code returns a plist set by let
:
(:beg 145 :end 163 :op "「" :cl "」" :prefix "" :suffix "") (:beg 145 :end 163 :op "「" :cl "」" :prefix "" :suffix "")
This causes an error from narrow-to-region()
when func
is called.
(wrong-type-argument integer-or-marker-p (:beg 145 :end 163 :op "「" :cl "」" :prefix "" :suffix ""))
How do I access start
and end
as variables within func
?