Spacemacs select-frame-by-name 卡住


#1

求帮忙看能否复现或者调试思路

  (defun make-capture-frame (&rest r)
    "Create a new frame and run org-capture."
    (make-frame '((name . "capture")
                  (height . 20)
                  (width . 120)))
    (select-frame-by-name "capture")
    ;; (org-capture r)
    )

如果当前 (visible-frame-list) 为空时在命令行执行 emacsclient -ne '(make-capture-frame)' 就会卡住,只能重启 Emacs((visible-frame-list) 不为空时正常):

  • OS: darwin
  • Emacs: 26.2
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 0ca502823)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm

#2

奇怪,直接在命令行这样又正常 emacsclient -c -F "((name . \"capture\") (height . 20) (width . 120))" -e '(select-frame-by-name "capture")'