(define-key help-map "\C-d" 'describe-distribution)
(define-key help-map "\C-e" 'view-emacs-problems)
(define-key help-map "\C-f" 'view-emacs-FAQ)
-(define-key help-map "\C-h" 'view-hello-file)
(define-key help-map "\C-m" 'view-order-manuals)
(define-key help-map "\C-n" 'view-emacs-news)
(define-key help-map "\C-p" 'describe-project)
f describe-function. Type a function name and get documentation of it.
F Info-goto-emacs-command-node. Type a function name;
it takes you to the Info node for that command.
+h Display the HELLO file which illustrates various scripts.
i info. The info documentation reader.
I describe-input-method. Describe a specific input method (if you type
its name) or the current input method (if you type just RET).
C-d Display Emacs ordering information.
C-e Display info about Emacs problems.
C-f Display the Emacs FAQ.
-C-h Display the HELLO file which illustrates various scripts.
C-m Display how to order printed Emacs manuals.
C-n Display news of recent Emacs changes.
C-p Display information about the GNU project.
C-w Display information on absence of warranty for GNU Emacs."
help-map)
-
-
-(define-key help-map "F" 'Info-goto-emacs-command-node)
-(define-key help-map "K" 'Info-goto-emacs-key-command-node)
-(define-key help-map "I" 'info-lookup-symbol)
-
-
-
\f
(defun function-called-at-point ()
(defun describe-distribution ()
"Display info on how to obtain the latest version of GNU Emacs."
(interactive)
- (view-find (expand-file-name "DISTRIB" data-directory)))
+ (view-file (expand-file-name "DISTRIB" data-directory)))
(defun describe-copying ()
"Display info on how you may redistribute copies of GNU Emacs."
(list (if (equal val "")
fn (intern val))
current-prefix-arg)))
- (let* ((keys (where-is-internal definition overriding-local-map nil nil))
+ (let* ((binding (and (symbolp definition) (commandp definition)
+ (key-binding definition nil t)))
+ (remap (and (symbolp binding) (commandp binding) binding))
+ (keys (where-is-internal definition overriding-local-map nil nil remap))
(keys1 (mapconcat 'key-description keys ", "))
(standard-output (if insert (current-buffer) t)))
(if insert
(if (> (length keys1) 0)
- (princ (format "%s (%s)" keys1 definition))
+ (if remap
+ (princ (format "%s (%s) (remapped from %s)" keys1 remap definition))
+ (princ (format "%s (%s)" keys1 definition)))
(princ (format "M-x %s RET" definition)))
(if (> (length keys1) 0)
- (princ (format "%s is on %s" definition keys1))
+ (if remap
+ (princ (format "%s is remapped to %s which is on %s" definition remap keys1))
+ (princ (format "%s is on %s" definition keys1)))
(princ (format "%s is not on any key" definition)))))
nil)