lang/org: disable make-frame hooks in +org-capture/open-frame

This commit is contained in:
Henrik Lissner 2018-04-23 17:50:24 -04:00
parent 5acd952c47
commit 7dd5c12b44
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -38,9 +38,11 @@ you're done. This can be called from an external shell script."
(setq string nil)) (setq string nil))
(when (and key (string-empty-p key)) (when (and key (string-empty-p key))
(setq key nil)) (setq key nil))
(let ((frame (if (+org-capture-frame-p) (let* ((frame-title-format "")
(selected-frame) (frame (if (+org-capture-frame-p)
(make-frame +org-capture-window-params)))) (selected-frame)
(let (before-make-frame-hook after-make-frame-functions)
(make-frame +org-capture-window-params)))))
(with-selected-frame frame (with-selected-frame frame
(require 'org-capture) (require 'org-capture)
(condition-case ex (condition-case ex