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

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

[elpa] externals/olivetti 48874ef 045/134: Hiding mode-line seems to wor


From: Stefan Monnier
Subject: [elpa] externals/olivetti 48874ef 045/134: Hiding mode-line seems to work without frame redrawing
Date: Thu, 25 Apr 2019 09:57:25 -0400 (EDT)

branch: externals/olivetti
commit 48874ef0fba68e4896a5cb767566ada81a90b224
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>

    Hiding mode-line seems to work without frame redrawing
---
 olivetti.el | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/olivetti.el b/olivetti.el
index 32828b3..eeafaee 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -111,9 +111,12 @@ This option does not affect file contents."
   :type 'integer
   :group 'olivetti)
 
-(defcustom olivetti-hide-mode-line nil
-  "Hide the mode line.
-Can cause display issues in console mode."
+(defcustom olivetti-hide-mode-line
+ nil
+  "Hide the mode line."
+  :type 'boolean
+  :group 'olivetti)
+
 (defcustom olivetti-recall-visual-line-mode-entry-state
   t
   "Recall the state of `visual-line-mode' upon exiting.
@@ -137,7 +140,7 @@ exiting. The reverse is not true."
 If ARG is 'toggle, toggle the value of `olivetti-hide-mode-line',
 then rerun. If ARG is 'exit, kill `mode-line-format' then rerun.
 If ARG is nil and `olivetti-hide-mode-line' is non-nil, hide the
-mode line. Finally redraw the frame."
+mode line."
   (cond ((equal arg 'toggle)
          (setq olivetti-hide-mode-line
                (null olivetti-hide-mode-line))
@@ -146,8 +149,8 @@ mode line. Finally redraw the frame."
              (null olivetti-hide-mode-line))
          (kill-local-variable 'mode-line-format))
         (olivetti-hide-mode-line
-         (setq-local mode-line-format nil)))
-  (redraw-frame (selected-frame)))
+         (setq-local mode-line-format nil))))
+  ;; (redraw-frame (selected-frame)))
 
 (defun olivetti-scale-width (n)
   "Scale N in accordance with the face height.



reply via email to

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