emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/popper 4c51182f5f 051/102: Fix error in `popper-group-b


From: ELPA Syncer
Subject: [elpa] externals/popper 4c51182f5f 051/102: Fix error in `popper-group-by-project` (#10)
Date: Fri, 8 Sep 2023 15:58:53 -0400 (EDT)

branch: externals/popper
commit 4c51182f5f5dd7a1ffa69fb994ef5ef6f9592686
Author: Eliza <4576666+elizagamedev@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Fix error in `popper-group-by-project` (#10)
    
    `project-root` throws an error if given nil as an argument. This change
    corrects the behavior.
---
 popper.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/popper.el b/popper.el
index 2d46694637..4269e1c330 100644
--- a/popper.el
+++ b/popper.el
@@ -235,7 +235,8 @@ directory as a fall back."
     (user-error "Cannot find project directory to group popups.
   Please install `project' or customize
   `popper-group-function'"))
-  (project-root (project-current)))
+  (when-let ((project (project-current)))
+    (project-root project)))
 
 (defun popper-group-by-projectile ()
   "Return an identifier to group popups.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]