Closed Zulu-Inuoe closed 5 years ago
When using emacs-purpose combined with sly and trying to go-to-reference I get an error when I select an xref entry.
emacs-purpose
sly
I've tracked the error down to purpose-display--action-to-sequence, which is meant to normalize a display action into a list of functions. eg.
purpose-display--action-to-sequence
(purpose-display--action-to-sequence '(display-buffer-same-window . nil)) ;; => (display-buffer-same-window) (purpose-display--action-to-sequence '((display-buffer-same-window display-buffer-reuse-window) . nil)) ;; => (display-buffer-same-window display-buffer-reuse-window)
this works fine for named functions, but it's perfectly legal to have closures and lambdas in that form too:
(purpose-display--action-to-sequence (cons (lambda (buffer alist)) nil)) ;; => (lambda (buffer alist)) ;; Should be ((lambda (buffer alist)))
Submitting a PR to fix this
When using
emacs-purpose
combined withsly
and trying to go-to-reference I get an error when I select an xref entry.I've tracked the error down to
purpose-display--action-to-sequence
, which is meant to normalize a display action into a list of functions. eg.this works fine for named functions, but it's perfectly legal to have closures and lambdas in that form too:
Submitting a PR to fix this