[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 10970c5a31 4/8: Doc strings within 80 char li
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 10970c5a31 4/8: Doc strings within 80 char limit for hib-kbd.el (#220) |
Date: |
Mon, 1 Aug 2022 10:57:43 -0400 (EDT) |
branch: externals/hyperbole
commit 10970c5a31e14a1c4d9a641a67d51259c34d66c5
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>
Doc strings within 80 char limit for hib-kbd.el (#220)
---
ChangeLog | 1 +
hib-kbd.el | 54 +++++++++++++++++++++++++++++++++---------------------
2 files changed, 34 insertions(+), 21 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d8e1205956..33fb4950f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2022-07-26 Mats Lidell <matsl@gnu.org>
+* hib-kbd.el:
* hib-doc-id.el:
* hhist.el:
* hbut.el:
diff --git a/hib-kbd.el b/hib-kbd.el
index 1fdb10c57e..56c6a3789f 100644
--- a/hib-kbd.el
+++ b/hib-kbd.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 22-Nov-91 at 01:37:57
-;; Last-Mod: 15-Jul-22 at 23:21:33 by Mats Lidell
+;; Last-Mod: 21-Jul-22 at 11:40:53 by Mats Lidell
;;
;; Copyright (C) 1991-2022 Free Software Foundation, Inc.
;; See the "HY-COPY" file for license information.
@@ -44,19 +44,20 @@
"divide" "down" "end" "enter" "esc" "home" "left" "insert"
"multiply" "newline" "next" "prior" "return" "ret" "right" "rtn"
"subtract" "tab" "up")
- "List of dedicated keyboard key names which may be used with modifier keys.
Function keys are handled elsewhere.")
+ "List of dedicated keyboard key names which may be used with modifier keys.
+Function keys are handled elsewhere.")
(defvar kbd-key:named-key-regexp
(concat
(mapconcat 'downcase kbd-key:named-key-list "\\|")
"\\|"
(mapconcat 'upcase kbd-key:named-key-list "\\|"))
- "Regexp that matches to any of the dedicated keyboard key names in lower or
uppercase.")
+ "Regexp that matches the dedicated keyboard key names in lower or
uppercase.")
(defvar kbd-key:modified-key-regexp
(concat "\\(\\[?\\([ACHMS]-\\|kp-\\)+\\)[ \t\n\r\f]*\\(\\(<?\\<"
kbd-key:named-key-regexp "\\>>?"
"\\|<?[fF][0-9][0-9]?>?\\|<[a-zA-Z0-9]+>\\|.\\)\\]?\\)")
- "Regexp matching to a single modified keyboard key within a human-readable
string.
+ "Regexp matching a single modified keyboard key within a human-readable
string.
Group 1 matches to the set of modifier keys. Group 3 matches to the
unmodified key.")
;;; ************************************************************************
@@ -81,9 +82,11 @@ Return t if the sequence appears to be valid, else nil."
(kbd-key:act key-series))
(defib kbd-key ()
- "Execute a key series (series of key sequences) around point, delimited by
curly braces, {}.
-Key sequences should be in human readable form, e.g. {C-x C-b}, or what
`key-description' returns.
-Forms such as {\C-b}, {\^b}, and {^M} will not be recognized.
+ "Execute a key series (series of key sequences) around point.
+The key series is delimited by curly braces, {}. Key sequences
+should be in human readable form, e.g. {C-x C-b}, or what
+`key-description' returns. Forms such as {\C-b}, {\^b}, and {^M}
+will not be recognized.
Any key sequence within the series must be a string of one of the following:
a Hyperbole minibuffer menu item key sequence,
@@ -163,7 +166,8 @@ Return t if KEY-SERIES appears valid, else nil."
t))))
(defun kbd-key:execute (key-series)
- "Execute a possibly non-normalized KEY-SERIES with or without curly brace
delimiters.
+ "Execute a possibly non-normalized KEY-SERIES.
+The KEY-SERIES can be with or without curly brace delimiters.
Return t if KEY-SERIES is a valid key series that is executed, else nil."
(interactive "sKey series to execute: ")
(when (and key-series
@@ -189,13 +193,15 @@ Return t if KEY-SERIES is a valid key series that is
executed, else nil."
helm-flag orig-binding))))))
(defun kbd-key:maybe-enable-helm (helm-flag orig-M-x-binding)
- "Enable helm-mode if HELM-FLAG is non-nil. Restore M-x binding to
ORIG-M-X-BINDING."
+ "Enable helm-mode if HELM-FLAG is non-nil.
+Restore M-x binding to ORIG-M-X-BINDING."
(when helm-flag (helm-mode 1))
(global-set-key [?\M-x] orig-M-x-binding))
(defun kbd-key:key-series-to-events (key-series)
- "Insert the key-series as a series of keyboard events into Emacs' unread
input stream.
-Emacs then executes them when its command-loop regains control."
+ "Insert the key-series as a series of keyboard events.
+The events are inserted into Emacs unread input stream. Emacs
+then executes them when its command-loop regains control."
(setq unread-command-events (nconc unread-command-events
(listify-key-sequence
(kbd-key:kbd key-series)))))
@@ -233,9 +239,12 @@ With optional prefix arg FULL, display full documentation
for command."
(kbd-key:doc kbd-key t))))
(defun kbd-key:is-p (str)
- "If STR is a curly-brace {} delimited key series, return the non-delimited,
normalized form, else nil.
-Key sequences should be in human readable form, e.g. {C-x C-b}, or what
`key-description' returns.
-Forms such as {\C-b}, {\^b}, and {^M} will not be recognized.
+ "Return the non-delimited, normalized form, of a delimited key series, STR.
+When STR is a curly-brace {} delimited key series, a
+non-delimited, normalized form is returned, else nil. Key
+sequences should be in human readable form, e.g. {C-x C-b}, or
+what `key-description' returns. Forms such as {\C-b}, {\^b}, and
+{^M} will not be recognized.
Any key sequence within the series must be a string of one of the following:
a Hyperbole minibuffer menu item key sequence,
@@ -264,9 +273,10 @@ Any key sequence within the series must be a string of one
of the following:
key-series)))
(defun kbd-key:normalize (key-series)
- "Normalize a human-readable string of keyboard keys, KEY-SERIES (without any
surrounding {}).
-Return the normalized but still human-readable format.
-Use `kbd-key:key-series-to-events' to add the key series to Emacs'
+ "Normalize a human-readable string of keyboard keys, KEY-SERIES.
+The KEY-SERIES is without any surrounding {}. Return the
+normalized but still human-readable format. Use
+`kbd-key:key-series-to-events' to add the key series to Emacs'
keyboad input queue, as if they had been typed by the user."
(interactive "kKeyboard key sequence to normalize (no {}): ")
;;
@@ -327,7 +337,8 @@ keyboad input queue, as if they had been typed by the user."
(t (error "(kbd-key:normalize): requires a string argument, not `%s'"
key-series))))
(defun kbd-key:remove-delimiters (str start-delim end-delim)
- "Return STR sans START-DELIM and END-DELIM (strings) iff it starts and ends
with these delimiters."
+ "Return STR sans START-DELIM and END-DELIM (strings).
+Return nil if STR does not start and end with the given delimiters."
(when (and (string-match (format "\\`%s" (regexp-quote start-delim)) str)
(string-match (format "%s\\'" (regexp-quote end-delim)) str))
(string-trim str start-delim end-delim)))
@@ -447,13 +458,14 @@ For an approximate inverse of this, see
`key-description'."
res)))
(defun kbd-key:extended-command-p (key-series)
- "Return non-nil if the string KEY-SERIES is a normalized extended command
invocation, i.e. M-x command."
+ "Return non-nil if the KEY-SERIES is a normalized extended command
invocation.
+That is, 'M-x command'."
(when (stringp key-series)
(string-match kbd-key:extended-command-prefix key-series)))
(defun kbd-key:hyperbole-hycontrol-key-p (key-series)
- "Return t if normalized, non-nil KEY-SERIES is given when in a HyControl
mode, else nil.
-Allows for multiple key sequences strung together."
+ "Return t if KEY-SERIES is normalized, non-nil and in HyControl mode, else
nil.
+Allow for multiple key sequences strung together."
(and key-series
(featurep 'hycontrol)
(or hycontrol-windows-mode hycontrol-frames-mode)
- [elpa] externals/hyperbole updated (991e1670a1 -> eaec9ddc79), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole 8f9379d3ff 3/8: Doc strings within 80 char limit for hib-doc-id.el (#219), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole 10970c5a31 4/8: Doc strings within 80 char limit for hib-kbd.el (#220),
ELPA Syncer <=
- [elpa] externals/hyperbole edb903884f 2/8: Doc strings within 80 char limit for hhist.el (#218), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole 9c372640df 5/8: Doc strings within 80 char limit for kfile.el (#225), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole eaec9ddc79 8/8: Doc strings within 80 char limit for kproperty.el (#232), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole 6aad69e2b0 6/8: Doc strings within 80 char limit for klabel.el (#228), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole 9b9650ba75 7/8: Doc strings within 80 char limit for klink.el (#229), ELPA Syncer, 2022/08/01
- [elpa] externals/hyperbole e8edace059 1/8: Doc strings within 80 char limit for hbut.el (#217), ELPA Syncer, 2022/08/01