From c7ce21af709c2b4dce4876cbf6522edbc21bbeb9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Jul 2019 15:47:40 +0200 Subject: [PATCH] Fix prefix arg for doom/switch-to-scratch-buffer Also use clearer name for prefix arg var in doom/open-project-scratch-buffer. --- core/autoload/scratch.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/autoload/scratch.el b/core/autoload/scratch.el index 3bed37487..709cdf8ac 100644 --- a/core/autoload/scratch.el +++ b/core/autoload/scratch.el @@ -115,17 +115,19 @@ If PROJECT-P is non-nil, open a persistent scratch buffer associated with the ;;;###autoload (defun doom/switch-to-scratch-buffer (&optional project-p) - "Like `doom/open-scratch-buffer', but switches to it in the current window." - (interactive) - (doom/open-scratch-buffer t)) + "Like `doom/open-scratch-buffer', but switches to it in the current window. + +If passed the prefix arg, open project scratch buffer." + (interactive "P") + (doom/open-scratch-buffer t project-p)) ;;;###autoload -(defun doom/open-project-scratch-buffer (&optional arg) +(defun doom/open-project-scratch-buffer (&optional current-window) "Opens the (persistent) project scratch buffer in a popup. -If passed the prefix ARG, switch to it in the current window." +If passed the prefix arg, switch to it in the current window." (interactive "P") - (doom/open-scratch-buffer arg 'project)) + (doom/open-scratch-buffer current-window 'project)) ;;;###autoload (defun doom/switch-to-project-scratch-buffer ()