Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
401 stars 44 forks source link

Cannot create new perspective with `persp-switch' #15

Closed sfus closed 9 years ago

sfus commented 9 years ago

It seems that current version cannot create new perspective with `persp-switch'. Probably the cause was embedded by 6e0940d. (2015-05-07)

Patch code:

diff --git a/persp-mode.el b/persp-mode.el
index 64864ce..f41c3bc 100644
--- a/persp-mode.el
+++ b/persp-mode.el
@@ -1088,7 +1088,7 @@ If there is no perspective with that name it will be created.
 Return `NAME'."
   (interactive "i")
   (unless name
-    (setq name (persp-prompt "to switch to" nil t nil t)))
+    (setq name (persp-prompt "to switch to" nil nil nil t)))
   (if (string= name (safe-persp-name (get-frame-persp frame)))
       name
     (persp-frame-save-state frame)

Thank you.

Bad-ptr commented 9 years ago

You are right, thanks. Should be fixed by 64fdcbb327c9806c78cbd4a11237fd7054369fa4.