From 525193f94b3e4e083b2a82683f65068f9c095255 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 26 Sep 2019 17:55:33 -0400 Subject: [PATCH] ui/workspaces: fset -> defalias Allows these commands to be advised. --- modules/ui/workspaces/autoload/workspaces.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/workspaces/autoload/workspaces.el b/modules/ui/workspaces/autoload/workspaces.el index 044c2e2ac..215253ad3 100644 --- a/modules/ui/workspaces/autoload/workspaces.el +++ b/modules/ui/workspaces/autoload/workspaces.el @@ -328,8 +328,8 @@ end of the workspace list." ;;;###autoload (dotimes (i 9) - (fset (intern (format "+workspace/switch-to-%d" i)) - (lambda () (interactive) (+workspace/switch-to i)))) + (defalias (intern (format "+workspace/switch-to-%d" i)) + (lambda () (interactive) (+workspace/switch-to i)))) ;;;###autoload (defun +workspace/switch-to-final ()