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))
(when (and key (string-empty-p key))
(setq key nil))
(let ((frame (if (+org-capture-frame-p)
(selected-frame)
(make-frame +org-capture-window-params))))
(let* ((frame-title-format "")
(frame (if (+org-capture-frame-p)
(selected-frame)
(let (before-make-frame-hook after-make-frame-functions)
(make-frame +org-capture-window-params)))))
(with-selected-frame frame
(require 'org-capture)
(condition-case ex