summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-org.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index a6e7b60..92d6d3b 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -253,8 +253,9 @@ to
(defun km/org-switch-to-buffer-other-window (&optional arg)
(interactive "P")
- (noflet ((org-pop-to-buffer-same-window (&optional buffer-or-name norecord label)
- (funcall 'pop-to-buffer buffer-or-name nil norecord)))
+ (cl-letf (((symbol-function 'org-pop-to-buffer-same-window)
+ (lambda (buffer-or-name &rest args)
+ (funcall #'pop-to-buffer buffer-or-name))))
(org-switchb arg)))
(defun km/org-open-at-point-stay ()