(let ((describe-function-orig-buffer
(or describe-function-orig-buffer
(current-buffer)))
+ (function (if (stringp function) (intern function) function))
(help-buffer-under-preparation t))
(help-setup-xref (list #'describe-function--helper
;; Return the text we displayed.
(buffer-string))))))
+(put 'describe-function 'minibuffer-action "describe")
+
;;;###autoload
(defun describe-command (command)
"Display the full documentation of COMMAND (a symbol).
(interactive (help-fns--describe-function-or-command-prompt 'is-command))
(describe-function command))
+(put 'describe-command 'minibuffer-action 'describe-function)
+
;; Could be this, if we make symbol-file do the work below.
;; (defun help-C-file-name (subr-or-var kind)
;; "Return the name of the C file where SUBR-OR-VAR is defined.
(help-buffer-under-preparation t))
(unless (buffer-live-p buffer) (setq buffer (current-buffer)))
(unless (frame-live-p frame) (setq frame (selected-frame)))
+ (when (stringp variable) (setq variable (intern variable)))
(if (not (symbolp variable))
(user-error "You didn't specify a variable")
(save-excursion
;; Return the text we displayed.
(buffer-string))))))))
+(put 'describe-variable 'minibuffer-action "describe")
+
(defun help-fns--editable-variable (start end variable value buffer)
(when (and (readablep value)
help-enable-variable-value-editing)
(if found (symbol-name v-or-f)))))
(list (if (equal val "")
(or v-or-f "") (intern val)))))
- (let ((help-buffer-under-preparation t))
+ (let ((help-buffer-under-preparation t)
+ (symbol (if (stringp symbol) (intern symbol) symbol)))
(if (not (symbolp symbol))
(user-error "You didn't specify a function or variable"))
(unless (buffer-live-p buffer) (setq buffer (current-buffer)))
(while (cdr docs)
(goto-char (point-min))
(let ((inhibit-read-only t)
- (name (caar docs)) ;Name of doc currently at BOB.
- (doc (cdr (cadr docs)))) ;Doc to add at BOB.
+ (name (caar docs)) ;Name of doc currently at BOB.
+ (doc (cdr (cadr docs)))) ;Doc to add at BOB.
(when doc
(insert doc)
(delete-region (point)
(help-xref--navigation-buttons)
(goto-char (point-min))))))
+(put 'describe-symbol 'minibuffer-action "describe")
+
;;;###autoload
(defun describe-syntax (&optional buffer)
"Describe the syntax specifications in the syntax table of BUFFER.
(user-error "Not a keymap: %s" km))
(list km)))
(let (used-gentemp
- (help-buffer-under-preparation t))
+ (help-buffer-under-preparation t)
+ (keymap (if (stringp keymap) (intern keymap) keymap)))
(unless (and (symbolp keymap)
(boundp keymap)
(keymapp (symbol-value keymap)))
;; Cleanup.
(when used-gentemp
(makunbound keymap))))
+
+(put 'describe-keymap 'minibuffer-action "describe")
+
\f
(defcustom describe-mode-outline t
"Non-nil enables outlines in the output buffer of `describe-mode'."