summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-27 20:29:21 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-28 00:29:50 -0500
commit8ae256c66a876c3b1cef9ffc992de83bebac4057 (patch)
treee4fc9087c8bcf2a1e364a565c820845111635630 /lisp
parent7af8847a631e3abc7fe9bf2d706ca4c549d61258 (diff)
downloademacs.d-8ae256c66a876c3b1cef9ffc992de83bebac4057.tar.gz
Replace noflet instance with cl-letf
Diffstat (limited to 'lisp')
-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 ()