fix(emacs): call handler interactively if possible

This commit is contained in:
2025-12-20 13:59:27 -07:00
parent d9b8abfb0b
commit b46fd3ee6a

View File

@@ -43,9 +43,10 @@
;; TODO: Use `syd-parent-mode-list' to support hierarchies of modes.
when (or (eq mode major-mode)
(and (boundp mode)
(symbol-value mode))
(memq mode minor-mode-list))
do (setq r (apply handle args))
(symbol-value mode)))
do (setq r (if (commandp handle)
(call-interactively handle)
(apply handle args)))
when r return r))))))
(defun syd-handle (modes &rest args)