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

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

[nongnu] elpa/golden-ratio 4f24b707da 82/95: Allow using golden-ration c


From: ELPA Syncer
Subject: [nongnu] elpa/golden-ratio 4f24b707da 82/95: Allow using golden-ration command when golden-ratio-mode is disabled (#51).
Date: Thu, 7 Sep 2023 22:02:15 -0400 (EDT)

branch: elpa/golden-ratio
commit 4f24b707da43ace4a20cc84d2fff31fb8ecace1c
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>

    Allow using golden-ration command when golden-ratio-mode is disabled (#51).
    
    * golden-ratio.el (golden-ratio): Check if golden-ration is called 
interactively.
---
 golden-ratio.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/golden-ratio.el b/golden-ratio.el
index d32d73de92..58190b7f83 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -127,10 +127,10 @@ will not cause the window to be resized to the golden 
ratio."
               golden-ratio-exclude-modes)))
 
 ;;;###autoload
-(defun golden-ratio ()
+(defun golden-ratio (&optional arg)
   "Resizes current window to the golden-ratio's size specs."
-  (interactive)
-  (unless (or (not golden-ratio-mode)
+  (interactive "p")
+  (unless (or (and (not golden-ratio-mode) (null arg))
               (window-minibuffer-p)
               (one-window-p)
               (golden-ratio-exclude-major-mode-p)



reply via email to

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