diff options
| author | Richard M. Stallman | 1992-10-27 10:14:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-27 10:14:08 +0000 |
| commit | 9e5c2f50224fb5468ce2bba3949d59ac10e14ca3 (patch) | |
| tree | 5d4fb7b15a8825bd4fe82b0dccc5dd693a55ad8f /lisp | |
| parent | 411fca7309007a00312658c4ecd2f4ddeb444761 (diff) | |
| download | emacs-9e5c2f50224fb5468ce2bba3949d59ac10e14ca3.tar.gz emacs-9e5c2f50224fb5468ce2bba3949d59ac10e14ca3.zip | |
Rename buffer-flush-undo to buffer-disable-undo.
(Info-goto-emacs-key-command-node): Fix typo.
(Info-menu-item-sequence): Commented out.
(Info-follow-nearest-node): Use new event format.
Select the window clicked on.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/info.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/info.el b/lisp/info.el index 4ad22e89e43..353b928bf37 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -136,7 +136,7 @@ to read a file name from the minibuffer." | |||
| 136 | Info-history))) | 136 | Info-history))) |
| 137 | ;; Go into info buffer. | 137 | ;; Go into info buffer. |
| 138 | (switch-to-buffer "*info*") | 138 | (switch-to-buffer "*info*") |
| 139 | (buffer-flush-undo (current-buffer)) | 139 | (buffer-disable-undo (current-buffer)) |
| 140 | (or (eq major-mode 'Info-mode) | 140 | (or (eq major-mode 'Info-mode) |
| 141 | (Info-mode)) | 141 | (Info-mode)) |
| 142 | (widen) | 142 | (widen) |
| @@ -173,7 +173,7 @@ to read a file name from the minibuffer." | |||
| 173 | (save-excursion | 173 | (save-excursion |
| 174 | (let ((buf (current-buffer))) | 174 | (let ((buf (current-buffer))) |
| 175 | (set-buffer (get-buffer-create " *info tag table*")) | 175 | (set-buffer (get-buffer-create " *info tag table*")) |
| 176 | (buffer-flush-undo (current-buffer)) | 176 | (buffer-disable-undo (current-buffer)) |
| 177 | (setq case-fold-search t) | 177 | (setq case-fold-search t) |
| 178 | (erase-buffer) | 178 | (erase-buffer) |
| 179 | (insert-buffer-substring buf) | 179 | (insert-buffer-substring buf) |
| @@ -525,10 +525,11 @@ NAME may be an abbreviation of the reference name." | |||
| 525 | (aset str i ?\ )) | 525 | (aset str i ?\ )) |
| 526 | str)) | 526 | str)) |
| 527 | 527 | ||
| 528 | (defun Info-menu-item-sequence (list) | 528 | ;; No one calls this and Info-menu-item doesn't exist. |
| 529 | (while list | 529 | ;;(defun Info-menu-item-sequence (list) |
| 530 | (Info-menu-item (car list)) | 530 | ;; (while list |
| 531 | (setq list (cdr list)))) | 531 | ;; (Info-menu-item (car list)) |
| 532 | ;; (setq list (cdr list)))) | ||
| 532 | 533 | ||
| 533 | (defun Info-menu (menu-item) | 534 | (defun Info-menu (menu-item) |
| 534 | "Go to node for menu item named (or abbreviated) NAME. | 535 | "Go to node for menu item named (or abbreviated) NAME. |
| @@ -823,12 +824,11 @@ SIG optional fourth argument, controls action on no match | |||
| 823 | Like \\[Info-menu], \\[Info-follow-reference], \\[Info-next], \\[Info-prev] or \\[Info-up] command, depending on where you click. | 824 | Like \\[Info-menu], \\[Info-follow-reference], \\[Info-next], \\[Info-prev] or \\[Info-up] command, depending on where you click. |
| 824 | At end of the node's text, moves to the next node." | 825 | At end of the node's text, moves to the next node." |
| 825 | (interactive "e") | 826 | (interactive "e") |
| 826 | (let* ((relative-coordinates (coordinates-in-window-p (mouse-coords click) | 827 | (let* ((start (event-start click)) |
| 827 | (selected-window))) | 828 | (window (car start)) |
| 828 | (rel-x (car relative-coordinates)) | 829 | (pos (car (cdr start)))) |
| 829 | (rel-y (cdr relative-coordinates))) | 830 | (select-window window) |
| 830 | (move-to-window-line rel-y) | 831 | (goto-char pos)) |
| 831 | (move-to-column rel-x)) | ||
| 832 | (let (node) | 832 | (let (node) |
| 833 | (cond | 833 | (cond |
| 834 | ((setq node (Info-get-token (point) "\\*note[ \n]" "\\*note[ \n]\\([^:]*\\):" t)) | 834 | ((setq node (Info-get-token (point) "\\*note[ \n]" "\\*note[ \n]\\([^:]*\\):" t)) |
| @@ -1055,7 +1055,7 @@ Interactively, if the binding is execute-extended-command, a command is read." | |||
| 1055 | (interactive "kFind documentation for key:") | 1055 | (interactive "kFind documentation for key:") |
| 1056 | (let ((command (key-binding key))) | 1056 | (let ((command (key-binding key))) |
| 1057 | (cond ((null command) | 1057 | (cond ((null command) |
| 1058 | (message "%s is undefined" (key-description keys))) | 1058 | (message "%s is undefined" (key-description key))) |
| 1059 | ((and (interactive-p) | 1059 | ((and (interactive-p) |
| 1060 | (eq command 'execute-extended-command)) | 1060 | (eq command 'execute-extended-command)) |
| 1061 | (Info-goto-emacs-command-node | 1061 | (Info-goto-emacs-command-node |