branch: externals/modus-themes
commit 01f683346f83bfbea7920a505484e529590ddd0c
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Make modus-themes-rotate prompt for a theme if it cannot rotate there
    
    This is better for us because then we do not need to have derivative
    theme packages necessarily implement their own version of
    'modus-themes-to-rotate'. Plus, the user may have forgotten to update
    that user option.
---
 modus-themes.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index 5c38051932..001fdba40e 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -4052,8 +4052,8 @@ When REVERSE is non-nil, move to the left, else to the 
right."
                          (length valid-themes)))
                 (new-theme (nth offset valid-themes)))
           new-theme
-        (error "Cannot determine a theme among `%s'" themes))
-    (error "The themes `%S' do not satisfy `modus-themes-known-p'" themes)))
+        (modus-themes-select-prompt "Cannot determine next rotation; select 
other"))
+    (modus-themes-select-prompt "No valid theme to rotate; select other")))
 
 ;;;###autoload
 (defun modus-themes-rotate (themes &optional reverse)

Reply via email to