summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-31 04:24:10 +0100
committerjao <jao@gnu.org>2021-03-31 04:24:10 +0100
commit7fda011fdbaf0d210da820c9c8256f20c82dfab8 (patch)
tree1ad20547627a03d35cec1c77019f7f73a8faacd8
parent0596cd8fd4321be2f99f8b3e1bd94f531a7a282b (diff)
downloadelibs-7fda011fdbaf0d210da820c9c8256f20c82dfab8.tar.gz
elibs-7fda011fdbaf0d210da820c9c8256f20c82dfab8.tar.bz2
fixes for switch-to-window derived custom functions
-rw-r--r--init.org10
1 files changed, 4 insertions, 6 deletions
diff --git a/init.org b/init.org
index e63c091..39df698 100644
--- a/init.org
+++ b/init.org
@@ -1305,12 +1305,10 @@
(switch-window-threshold 3))
:config
(defun jao-switch-window--then (prompt cmd)
- (let ((d default-directory))
- (switch-window--then prompt
- cmd
- `(lambda ()
- (let ((default-directory ,d))
- (call-interactively ',cmd))))))
+ (let ((f `(lambda ()
+ (let ((default-directory ,default-directory))
+ (call-interactively ',cmd)))))
+ (switch-window--then prompt f f)))
(defun jao-switch-window-then-dired ()
(interactive)