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

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

[nongnu] elpa/hyperdrive 165f2f9a9d 056/102: Change: Rename variable


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 165f2f9a9d 056/102: Change: Rename variable
Date: Wed, 29 Nov 2023 04:00:53 -0500 (EST)

branch: elpa/hyperdrive
commit 165f2f9a9d5e7e10250aa1ea0fff9c2e390e76af
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Change: Rename variable
---
 DEV.org            | 2 +-
 doc/hyperdrive.org | 4 ++--
 hyperdrive-lib.el  | 4 ++--
 hyperdrive-vars.el | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/DEV.org b/DEV.org
index 977e27b9e0..6de2c31d52 100644
--- a/DEV.org
+++ b/DEV.org
@@ -25,7 +25,7 @@
 + *Internals*
   + [X] Add a ~petname~ field to the ~hyperdrive~ struct.
   + [X] Add /petnames/ support to ~hyperdrive--format-host~.
-  + [X] Add petname to ~hyperdrive-preferred-naming~.
+  + [X] Add petname to ~hyperdrive-preferred-formats~.
   + [X] Add petname face.
   + [X] Add faces for all types of hostname formats.
   + [X] Change ~public-name~ to ~nickname~ everywhere.
diff --git a/doc/hyperdrive.org b/doc/hyperdrive.org
index d8df353e89..7f19d0ff32 100644
--- a/doc/hyperdrive.org
+++ b/doc/hyperdrive.org
@@ -848,8 +848,8 @@ DIRECTION being one of ~:ascending~ or ~:descending~.
 - ~hyperdrive-history-display-buffer-action~ :: Display buffer action
   for hyperdrive history buffers. Passed to ~display-buffer~, which see.
 
-#+vindex: hyperdrive-preferred-naming
-- ~hyperdrive-preferred-naming~ :: List of metadata types used to
+#+vindex: hyperdrive-preferred-formats
+- ~hyperdrive-preferred-formats~ :: List of metadata types used to
   display hyperdrives.  Hyperdrives are displayed using the first
   available metadata type.  See [[*Naming][Naming]] section for what this 
means.
 
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index b1c1c3fb27..1e013db6f8 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1008,7 +1008,7 @@ according to FORMATS, by default `hyperdrive-formats', 
which see."
 (defun hyperdrive--preferred-format (hyperdrive &optional naming formats)
   "Return HYPERDRIVE's formatted hostname, or nil.
 NAMING should be one or a list of symbols, by default
-`hyperdrive-preferred-naming', which see for choices.  If the
+`hyperdrive-preferred-formats', which see for choices.  If the
 specified NAMING is not available, return nil.
 
 Each item in NAMING is formatted according to FORMATS, set by
@@ -1016,7 +1016,7 @@ default to `hyperdrive-formats', which see."
   (pcase-let* (((cl-struct hyperdrive petname public-key domains seed
                            (metadata (map ('name nickname))))
                 hyperdrive))
-    (cl-loop for f in (ensure-list (or naming hyperdrive-preferred-naming))
+    (cl-loop for f in (ensure-list (or naming hyperdrive-preferred-formats))
              when (pcase f
                     ((and 'petname (guard petname))
                      (hyperdrive--format hyperdrive "%P" formats))
diff --git a/hyperdrive-vars.el b/hyperdrive-vars.el
index 4307a1ca10..f90f006cad 100644
--- a/hyperdrive-vars.el
+++ b/hyperdrive-vars.el
@@ -118,7 +118,7 @@ Passed to `display-buffer', which see."
                  (const :tag "Pop up window" (display-buffer-pop-up-window))
                  (sexp :tag "Other")))
 
-(defcustom hyperdrive-preferred-naming
+(defcustom hyperdrive-preferred-formats
   '(petname nickname domain seed short-key public-key)
   "Default format for displaying hyperdrive hostnames.
 Each option is checked in order, and the first available type is
@@ -175,7 +175,7 @@ an existing buffer at the same version, or make a new 
buffer."
   "Format string for displaying entries.
 Specifiers:
 
-%H  Preferred hyperdrive naming (see `hyperdrive-preferred-naming')
+%H  Preferred hyperdrive naming (see `hyperdrive-preferred-formats')
 
 To configure the format of the following specifiers, see `hyperdrive-formats':
 



reply via email to

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