[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/frog-menu cd5dd46 43/43: Checkdoc fixes
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/frog-menu cd5dd46 43/43: Checkdoc fixes |
Date: |
Sun, 24 Mar 2019 05:14:50 -0400 (EDT) |
branch: externals/frog-menu
commit cd5dd46d5d6804534d7d8d649870da7f67ea8133
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Checkdoc fixes
---
frog-menu.el | 35 ++++++++++++++++++++++-------------
1 file changed, 22 insertions(+), 13 deletions(-)
diff --git a/frog-menu.el b/frog-menu.el
index dab6cc5..5724aa6 100644
--- a/frog-menu.el
+++ b/frog-menu.el
@@ -90,9 +90,9 @@ By default types `avy-posframe' and `avy-side-window' are
possible.
`frog-menu-cleanup-handler-alist'.")
(defcustom frog-menu-type-function #'frog-menu-type
- "Function which should return the `frog-menu-type' to be used.
+ "Function which should return the variable `frog-menu-type' to be used.
-See `frog-menu-type'"
+See variable `frog-menu-type'"
:type 'function)
(defcustom frog-menu-after-init-hook '()
@@ -105,7 +105,7 @@ menu buffer is set current when this hook runs."
(defcustom frog-menu-init-handler-alist
'((avy-posframe . frog-menu-init-display-buffer)
(avy-side-window . frog-menu-init-display-buffer))
- "Maps `frog-menu-type' to an init handler.
+ "Maps variable `frog-menu-type' to an init handler.
The init handler is called with the prompt, strings formatted by
`frog-menu-format-strings-function' actions formatted by
@@ -118,7 +118,7 @@ hook `frog-menu-after-init-hook' gets executed."
(defcustom frog-menu-display-handler-alist
'((avy-posframe . frog-menu-display-posframe)
(avy-side-window . frog-menu-display-side-window))
- "Maps `frog-menu-type' to a display handler.
+ "Maps variable `frog-menu-type' to a display handler.
The display handler receives the buffer to display as an argument
and should return the window of the displayed buffer."
@@ -128,7 +128,7 @@ and should return the window of the displayed buffer."
(defcustom frog-menu-display-option-alist
'((avy-posframe . posframe-poshandler-point-bottom-left-corner)
(avy-side-window . (display-buffer-in-side-window (side . bottom))))
- "Maps `frog-menu-type' to a display option.
+ "Maps variable `frog-menu-type' to a display option.
The display option is passed to the display handler as second argument."
:type '(alist :key-type symbol
@@ -137,7 +137,7 @@ The display option is passed to the display handler as
second argument."
(defcustom frog-menu-query-handler-alist
'((avy-posframe . frog-menu-query-with-avy)
(avy-side-window . frog-menu-query-with-avy))
- "Maps `frog-menu-type' to a query handler.
+ "Maps variable `frog-menu-type' to a query handler.
The query handler receives four arguments.
@@ -153,7 +153,7 @@ value. If the user exited the query return nil."
(defcustom frog-menu-cleanup-handler-alist
'((avy-posframe . frog-menu-posframe-hide)
(avy-side-window . frog-menu-side-window-hide))
- "Maps `frog-menu-type' to a cleanup handler.
+ "Maps variable `frog-menu-type' to a cleanup handler.
The cleanup handler receives the displayed buffer and the window
as arguments and is called after the query handler returns or
@@ -245,7 +245,7 @@ be drawn by single characters."
"Buffer used for the frog menu.")
(defun frog-menu-type ()
- "Return `frog-menu-type' to use."
+ "Return variable `frog-menu-type' to use."
(cond ((display-graphic-p)
'avy-posframe)
(t
@@ -286,7 +286,8 @@ PROMPT, STRINGS and ACTIONS are the args from
`frog-menu-read'."
(defun frog-menu-init-display-buffer (prompt formatted-strings
formatted-actions)
"Init handler for avy-posframe.
-PROMPT, FORMATTED-STRINGS and FORMATTED-ACTIONS are the args from
`frog-menu-read'.
+PROMPT, FORMATTED-STRINGS and FORMATTED-ACTIONS are the args from
+`frog-menu-read'.
Fills the buffer with a grid of FORMATTED-STRINGS followed by PROMPT and
ACTIONS."
@@ -320,12 +321,14 @@ ACTIONS."
;; * Formatting
(defun frog-menu-grid-format (strings)
+ "Format STRINGS to a grid."
(frog-menu--grid-format
strings
(funcall frog-menu-grid-column-function)
(funcall frog-menu-grid-width-function)))
(defun frog-menu-action-format (actions)
+ "Format ACTIONS for menu display."
(when actions
(with-temp-buffer
(let ((header-pos (point)))
@@ -398,6 +401,9 @@ Returns the buffer containing the formatted grid."
(defun frog-menu-display-posframe (buf &optional display-option)
"Display posframe showing buffer BUF.
+If given, DISPLAY-OPTION is passed as :poshandler to
+`posframe-show'.
+
Returns window of displayed buffer."
(posframe-show buf
:poshandler(or display-option
@@ -414,6 +420,9 @@ Returns window of displayed buffer."
(defun frog-menu-display-side-window (buf &optional display-option)
"Display posframe showing buffer BUF.
+If given DISPLAY-OPTION is passed as action argument to
+`display-buffer'.
+
Returns window of displayed buffer."
(let ((window (display-buffer
buf
@@ -534,9 +543,9 @@ LEAF is normally ((BEG . END) . WND)."
(defun frog-menu-query-with-avy (buffer window actions)
"Query handler for avy-posframe.
-CANDIDATES are the candidates for `avy--process'. ACTIONS is the
-argument of `frog-menu-read'. BUFFER is the menu buffer which
-gets hidden after the query."
+Uses `avy' to query for candidates in BUFFER showing in WINDOW.
+
+ACTIONS is the argument of `frog-menu-read'."
(let ((candidates (frog-menu--get-avy-candidates
buffer window)))
;; init map which passes actions info to avy handler
@@ -571,7 +580,7 @@ gets hidden after the query."
;;;###autoload
(defun frog-menu-read (prompt strings &optional actions)
- "Read from a menu of `frog-menu-type'.
+ "Read from a menu of variable `frog-menu-type'.
PROMPT is a string with prompt information for the user.
- [elpa] externals/frog-menu 60ed0a5 15/43: Support passing only actions, too, (continued)
- [elpa] externals/frog-menu 60ed0a5 15/43: Support passing only actions, too, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu e2307a0 19/43: Add actions face, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 8b7213d 27/43: Merge branch 'master' of github.com:clemera/frog-menu, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 2a29f34 29/43: Add usage description for flyspell-correct, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 37ad44b 21/43: Refactor and add new menu type for non graphical displays, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 6abd002 34/43: Use own avy style function and allow padding, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 3d84ba3 38/43: allow flexible way to customize posframe parameters, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 6373133 37/43: Merge pull request #2 from waymondo/master, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 173aea7 41/43: Add more padding to the right of menu, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu 75f5243 39/43: Merge pull request #3 from waymondo/posframe-parameters, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu cd5dd46 43/43: Checkdoc fixes,
Clemens Radermacher <=
- [elpa] externals/frog-menu 7c3262c 30/43: Add terminal screenshot, Clemens Radermacher, 2019/03/24
- [elpa] externals/frog-menu c555913 35/43: add face for customizing posframe background, Clemens Radermacher, 2019/03/24