[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/boxquote a6bf9f8abe 18/31: Move describe-function and desc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/boxquote a6bf9f8abe 18/31: Move describe-function and describe-variable away from help quoting |
Date: |
Sat, 1 Jan 2022 01:58:26 -0500 (EST) |
branch: elpa/boxquote
commit a6bf9f8abefca7d675fbebccdd7637137a5abe18
Author: Dave Pearson <davep@davep.org>
Commit: Dave Pearson <davep@davep.org>
Move describe-function and describe-variable away from help quoting
All that's left that uses the help buffer quoting helper code is the
command that boxquotes a key description. I should look at making
it all standalone now.
---
boxquote.el | 52 ++++++++++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/boxquote.el b/boxquote.el
index e63d632de5..4708d7eb47 100644
--- a/boxquote.el
+++ b/boxquote.el
@@ -387,32 +387,6 @@ whatever `boxquote-kill-ring-save-title' returned at the
time."
(let ((box (boxquote-points-with-check)))
(boxquote-region (car box) (1+ (cdr box)))))
-(defun boxquote-help-buffer-name (item)
- "Return the name of the help buffer associated with ITEM."
- (if (boxquote-xemacs-p)
- (loop for buffer in (symbol-value 'help-buffer-list)
- when (string-match (concat "^*Help:.*`" item "'") buffer)
- return buffer)
- "*Help*"))
-
-(defun boxquote-quote-help-buffer (help-call title-format item)
- "Perform a help command and boxquote the output.
-
-HELP-CALL is a function that calls the help command.
-
-TITLE-FORMAT is the `format' string to use to product the boxquote title.
-
-ITEM is a function for retrieving the item to get help on."
- (let ((one-window-p (one-window-p)))
- (boxquote-text
- (save-window-excursion
- (funcall help-call)
- (with-current-buffer (boxquote-help-buffer-name (funcall item))
- (buffer-substring-no-properties (point-min) (point-max)))))
- (boxquote-title (format title-format (funcall item)))
- (when one-window-p
- (delete-other-windows))))
-
;;;###autoload
(defun boxquote-describe-function (function)
"Call `describe-function' and boxquote the output into the current buffer."
@@ -441,6 +415,32 @@ ITEM is a function for retrieving the item to get help on."
(describe-variable (intern variable)))))
(boxquote-title (format boxquote-describe-variable-title-format variable)))
+(defun boxquote-help-buffer-name (item)
+ "Return the name of the help buffer associated with ITEM."
+ (if (boxquote-xemacs-p)
+ (loop for buffer in (symbol-value 'help-buffer-list)
+ when (string-match (concat "^*Help:.*`" item "'") buffer)
+ return buffer)
+ "*Help*"))
+
+(defun boxquote-quote-help-buffer (help-call title-format item)
+ "Perform a help command and boxquote the output.
+
+HELP-CALL is a function that calls the help command.
+
+TITLE-FORMAT is the `format' string to use to product the boxquote title.
+
+ITEM is a function for retrieving the item to get help on."
+ (let ((one-window-p (one-window-p)))
+ (boxquote-text
+ (save-window-excursion
+ (funcall help-call)
+ (with-current-buffer (boxquote-help-buffer-name (funcall item))
+ (buffer-substring-no-properties (point-min) (point-max)))))
+ (boxquote-title (format title-format (funcall item)))
+ (when one-window-p
+ (delete-other-windows))))
+
;;;###autoload
(defun boxquote-describe-key (key)
"Call `describe-key' on KEY and boxquote the output into the current buffer.
- [nongnu] elpa/boxquote 3613e1d7cc 20/31: Simplify boxquote-describe-key, (continued)
- [nongnu] elpa/boxquote 3613e1d7cc 20/31: Simplify boxquote-describe-key, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote e167b9d325 26/31: loop -> cl-loop, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote bdc6c84b92 31/31: :bookmark: v2.2, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 4c49b20466 01/31: First commit, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 8a92c69542 02/31: Tidy up .gitignore, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 6e570b8f15 06/31: Change URL where the source can always be found, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote f7e3ed83c2 07/31: Add package headers, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 04afee4651 09/31: Move from cl to cl-lib, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote f4498f6e3e 17/31: Tweak off indentation, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 34f27a7d6c 13/31: Add melpa badge to the README, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote a6bf9f8abe 18/31: Move describe-function and describe-variable away from help quoting,
ELPA Syncer <=
- [nongnu] elpa/boxquote 8a529c63c1 22/31: Tweak the README, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote d6b49938de 21/31: Support for XEmacs is dropped (for now)., ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 7e47e0e285 28/31: Bump licence to GPL-3+, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote b37ad4dc96 04/31: Whitespace cleaning, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 54b4e6191c 10/31: Take some hints from checkdoc, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote db9aa7d7d3 15/31: Rewrite boxquote-describe-function, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote b0239fb7b7 24/31: v2.0, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 80d63aad92 29/31: Fix typos, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 3fba714167 08/31: Stop supporting versions of emacs nobody will run these days, ELPA Syncer, 2022/01/01
- [nongnu] elpa/boxquote 3da429f64d 16/31: Rewrite boxquote-describe-variable, ELPA Syncer, 2022/01/01