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

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

[elpa] externals/logos 9ef4965385 3/4: Rename buf boundaries option for


From: ELPA Syncer
Subject: [elpa] externals/logos 9ef4965385 3/4: Rename buf boundaries option for better semantics
Date: Fri, 6 May 2022 01:57:40 -0400 (EDT)

branch: externals/logos
commit 9ef4965385b1a0fd02878ceb7ca193bb63bbd518
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Rename buf boundaries option for better semantics
---
 README.org |  6 +++---
 logos.el   | 15 ++++++++++-----
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/README.org b/README.org
index 8c93737b8a..35cbbb5867 100644
--- a/README.org
+++ b/README.org
@@ -103,7 +103,7 @@ to narrow effectively.  Such users may still want to bind 
it to a key.
 #+vindex: logos-hide-mode-line
 #+vindex: logos-scroll-lock
 #+vindex: logos-variable-pitch
-#+vindex: logos-indicate-buffer-boundaries
+#+vindex: logos-hide-buffer-boundaries
 #+vindex: logos-buffer-read-only
 #+vindex: logos-olivetti
 #+vindex: logos-hide-fringe
@@ -195,7 +195,7 @@ changes out-of-the-box 
([[#h:2bb57369-352a-43bf-afe3-0bed2fcc7359][Extra tweaks]
 
 + To have quick access to ~logos-focus-mode~, bind it to a key.  This
   mode checks the variables ~logos-hide-mode-line~, ~logos-scroll-lock~,
-  ~logos-variable-pitch~, ~logos-indicate-buffer-boundaries~,
+  ~logos-variable-pitch~, ~logos-hide-buffer-boundaries~,
   ~logos-buffer-read-only~, ~logos-olivetti~ (requires =olivetti=
   package) and applies their effects if they are non-nil.  Note that
   everything is buffer-local, so it is possible to use file variables as
@@ -217,7 +217,7 @@ changes out-of-the-box 
([[#h:2bb57369-352a-43bf-afe3-0bed2fcc7359][Extra tweaks]
 (setq-default logos-hide-mode-line nil
               logos-scroll-lock nil
               logos-variable-pitch nil
-              logos-indicate-buffer-boundaries nil
+              logos-hide-buffer-boundaries nil
               logos-buffer-read-only nil
               logos-olivetti nil
               logos-hide-fringe nil)
diff --git a/logos.el b/logos.el
index 1ff8d7c680..2eeef5cb9f 100644
--- a/logos.el
+++ b/logos.el
@@ -47,7 +47,7 @@
 ;; The `logos-focus-mode' tweaks the aesthetics of the current buffer.
 ;; When enabled it sets the buffer-local value of these user options:
 ;; `logos-scroll-lock', `logos-variable-pitch',`logos-hide-mode-line',
-;; `logos-indicate-buffer-boundaries', `logos-buffer-read-only',
+;; `logos-hide-buffer-boundaries', `logos-buffer-read-only',
 ;; `logos-olivetti', and `logos-hide-fringe'.
 ;;
 ;; Logos is the familiar word derived from Greek (watch my presentation
@@ -122,7 +122,12 @@ This is only relevant when `logos-focus-mode' is enabled."
   :group 'logos
   :local t)
 
-(defcustom logos-indicate-buffer-boundaries nil
+(define-obsolete-variable-alias
+  'logos-indicate-buffer-boundaries
+  'logos-hide-buffer-boundaries
+  "0.4.0")
+
+(defcustom logos-hide-buffer-boundaries nil
   "If non-nil locally disable `indicate-buffer-boundaries'.
 This is only relevant when `logos-focus-mode' is enabled."
   :type 'boolean
@@ -342,7 +347,7 @@ alternate, thus toggling MODE."
   "Buffer-local mode for focused editing.
 When enabled it sets the buffer-local value of these user
 options: `logos-scroll-lock', `logos-variable-pitch',
-`logos-hide-mode-line', `logos-indicate-buffer-boundaries',
+`logos-hide-mode-line', `logos-hide-buffer-boundaries',
 `logos-buffer-read-only', `logos-olivetti', `logos-hide-fringe'."
   :init-value nil
   :global nil
@@ -377,8 +382,8 @@ options: `logos-scroll-lock', `logos-variable-pitch',
     (logos--mode 'scroll-lock-mode 1)))
 
 (defun logos--indicate-buffer-boundaries ()
-  "Set `logos-indicate-buffer-boundaries'."
-  (when logos-indicate-buffer-boundaries
+  "Set `logos-hide-buffer-boundaries'."
+  (when logos-hide-buffer-boundaries
     (logos--set 'indicate-buffer-boundaries nil)))
 
 ;; FIXME 2022-03-13: The mode line is not redrawn properly.  Not even



reply via email to

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