Fix #1481: not a valid workspace error on +org-capture/open-frame

This commit is contained in:
Henrik Lissner 2019-06-11 17:21:52 +02:00
parent ff26cf683c
commit bf9a50eaea
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -40,8 +40,7 @@ you're done. This can be called from an external shell script."
(let* ((frame-title-format "") (let* ((frame-title-format "")
(frame (if (+org-capture-frame-p) (frame (if (+org-capture-frame-p)
(selected-frame) (selected-frame)
(let (before-make-frame-hook after-make-frame-functions) (make-frame +org-capture-frame-parameters))))
(make-frame +org-capture-frame-parameters)))))
(with-selected-frame frame (with-selected-frame frame
(require 'org-capture) (require 'org-capture)
(condition-case ex (condition-case ex