comparison lisp/help.el @ 12499:778d57f8c0f1

(command-apropos): Deleted function. This is replaced by apropos-command in apropos.el.
author Karl Heuer <kwzh@gnu.org>
date Fri, 07 Jul 1995 18:54:22 +0000
parents aa25c9b2e043
children 7a19739bd181
comparison
equal deleted inserted replaced
12498:9fb6a9b6658b 12499:778d57f8c0f1
575 (if (> (length keys1) 0) 575 (if (> (length keys1) 0)
576 (message "%s is on %s" definition keys1) 576 (message "%s is on %s" definition keys1)
577 (message "%s is not on any key" definition))) 577 (message "%s is not on any key" definition)))
578 nil) 578 nil)
579 579
580 (defun command-apropos (string)
581 "Like apropos but lists only symbols that are names of commands
582 \(interactively callable functions). Argument REGEXP is a regular expression
583 that is matched against command symbol names. Returns list of symbols and
584 documentation found."
585 (interactive "sCommand apropos (regexp): ")
586 (let ((message
587 (let ((standard-output (get-buffer-create "*Help*")))
588 (print-help-return-message 'identity))))
589 (if (apropos string t 'commandp t)
590 (and message (message message)))))
591
592 (defun locate-library (library &optional nosuffix) 580 (defun locate-library (library &optional nosuffix)
593 "Show the full path name of Emacs library LIBRARY. 581 "Show the full path name of Emacs library LIBRARY.
594 This command searches the directories in `load-path' like `M-x load-library' 582 This command searches the directories in `load-path' like `M-x load-library'
595 to find the file that `M-x load-library RET LIBRARY RET' would load. 583 to find the file that `M-x load-library RET LIBRARY RET' would load.
596 Optional second arg NOSUFFIX non-nil means don't add suffixes `.elc' or `.el' 584 Optional second arg NOSUFFIX non-nil means don't add suffixes `.elc' or `.el'