aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-15 17:13:00 +0200
committerLars Magne Ingebrigtsen2011-07-15 17:13:00 +0200
commit06789f9706db4c8fc335619c28daeda2c1e75e48 (patch)
treee472981ce4a45213b07b5b2d5f6e6b6f788285ac
parentc39da69053fc7bd17a3859dc56a9cd0991961999 (diff)
downloademacs-06789f9706db4c8fc335619c28daeda2c1e75e48.tar.gz
emacs-06789f9706db4c8fc335619c28daeda2c1e75e48.zip
Add new command `Info-beginning-of-buffer' to allow announcing `b'
* info.el (Info-beginning-of-buffer): New command. (Info-mode-map): Use it instead of `beginning-of-buffer' to allow announcing `b' as the key (bug#8325).
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/info.el12
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1ec6c18e6a9..47dff71bdff 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * info.el (Info-beginning-of-buffer): New command.
4 (Info-mode-map): Use it instead of `beginning-of-buffer' to allow
5 announcing `b' as the key (bug#8325).
6
3 * emacs-lisp/cl-macs.el (declare): Doc string fix-up. 7 * emacs-lisp/cl-macs.el (declare): Doc string fix-up.
4 8
5 * international/mule-cmds.el 9 * international/mule-cmds.el
diff --git a/lisp/info.el b/lisp/info.el
index cbdc8cc7ab3..638227dd30c 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2789,6 +2789,11 @@ N is the digit argument used to invoke this command."
2789 (goto-char (point-max))))) 2789 (goto-char (point-max)))))
2790 (t (error "No previous nodes")))) 2790 (t (error "No previous nodes"))))
2791 2791
2792(defun Info-beginning-of-buffer ()
2793 "Go to the beginnning of the buffer."
2794 (interactive)
2795 (goto-char (point-min)))
2796
2792(defun Info-scroll-up () 2797(defun Info-scroll-up ()
2793 "Scroll one screenful forward in Info, considering all nodes as one sequence. 2798 "Scroll one screenful forward in Info, considering all nodes as one sequence.
2794Once you scroll far enough in a node that its menu appears on the screen 2799Once you scroll far enough in a node that its menu appears on the screen
@@ -3650,7 +3655,7 @@ If FORK is non-nil, it is passed to `Info-goto-node'."
3650(defvar Info-mode-map 3655(defvar Info-mode-map
3651 (let ((map (make-keymap))) 3656 (let ((map (make-keymap)))
3652 (suppress-keymap map) 3657 (suppress-keymap map)
3653 (define-key map "." 'beginning-of-buffer) 3658 (define-key map "." 'Info-beginning-of-buffer)
3654 (define-key map " " 'Info-scroll-up) 3659 (define-key map " " 'Info-scroll-up)
3655 (define-key map "\C-m" 'Info-follow-nearest-node) 3660 (define-key map "\C-m" 'Info-follow-nearest-node)
3656 (define-key map "\t" 'Info-next-reference) 3661 (define-key map "\t" 'Info-next-reference)
@@ -3671,7 +3676,8 @@ If FORK is non-nil, it is passed to `Info-goto-node'."
3671 (define-key map "[" 'Info-backward-node) 3676 (define-key map "[" 'Info-backward-node)
3672 (define-key map "<" 'Info-top-node) 3677 (define-key map "<" 'Info-top-node)
3673 (define-key map ">" 'Info-final-node) 3678 (define-key map ">" 'Info-final-node)
3674 (define-key map "b" 'beginning-of-buffer) 3679 (define-key map "b" 'Info-beginning-of-buffer)
3680 (put 'Info-beginning-of-buffer :advertised-binding "b")
3675 (define-key map "d" 'Info-directory) 3681 (define-key map "d" 'Info-directory)
3676 (define-key map "e" 'Info-edit) 3682 (define-key map "e" 'Info-edit)
3677 (define-key map "f" 'Info-follow-reference) 3683 (define-key map "f" 'Info-follow-reference)
@@ -3931,7 +3937,7 @@ Moving within a node:
3931\\[Info-scroll-down] Normally, scroll backward. If the beginning of the buffer is 3937\\[Info-scroll-down] Normally, scroll backward. If the beginning of the buffer is
3932 already visible, try to go to the previous menu entry, or up 3938 already visible, try to go to the previous menu entry, or up
3933 if there is none. 3939 if there is none.
3934\\[beginning-of-buffer] Go to beginning of node. 3940\\[Info-beginning-of-buffer] Go to beginning of node.
3935 3941
3936Advanced commands: 3942Advanced commands:
3937\\[Info-search] Search through this Info file for specified regexp, 3943\\[Info-search] Search through this Info file for specified regexp,