diff options
| author | Glenn Morris | 2002-04-21 14:43:31 +0000 |
|---|---|---|
| committer | Glenn Morris | 2002-04-21 14:43:31 +0000 |
| commit | 75272a3a3dfec64041e927b0bc98dcf56d541562 (patch) | |
| tree | 1edda8f38e4b48a5ea90fa56dd5b702e0e369a35 | |
| parent | c901ceff748dfe7ea78e66035191e47b1fd89ab5 (diff) | |
| download | emacs-75272a3a3dfec64041e927b0bc98dcf56d541562.tar.gz emacs-75272a3a3dfec64041e927b0bc98dcf56d541562.zip | |
(minor-mode-alist): `scroll-all-mode', not `scroll-all-mode-mode'.
(scroll-all-page-down-all, scroll-all-page-up-all, scroll-all-check-to-scroll):
Remove `fkey-' prefix from scroll commands.
| -rw-r--r-- | lisp/scroll-all.el | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lisp/scroll-all.el b/lisp/scroll-all.el index 23e0848450e..a25f30eefe0 100644 --- a/lisp/scroll-all.el +++ b/lisp/scroll-all.el | |||
| @@ -55,9 +55,9 @@ use either M-x customize or the function `scroll-all-mode'." | |||
| 55 | 55 | ||
| 56 | (if running-xemacs | 56 | (if running-xemacs |
| 57 | (add-minor-mode 'scroll-all-mode " *SL*") | 57 | (add-minor-mode 'scroll-all-mode " *SL*") |
| 58 | (or (assq 'scroll-all-mode-mode minor-mode-alist) | 58 | (or (assq 'scroll-all-mode minor-mode-alist) |
| 59 | (setq minor-mode-alist | 59 | (setq minor-mode-alist |
| 60 | (cons '(scroll-all-mode-mode " *SL*") minor-mode-alist)))) | 60 | (cons '(scroll-all-mode " *SL*") minor-mode-alist)))) |
| 61 | 61 | ||
| 62 | (defun scroll-all-scroll-down-all (arg) | 62 | (defun scroll-all-scroll-down-all (arg) |
| 63 | "Scroll down all visible windows." | 63 | "Scroll down all visible windows." |
| @@ -65,7 +65,7 @@ use either M-x customize or the function `scroll-all-mode'." | |||
| 65 | (let ((num-windows (count-windows)) | 65 | (let ((num-windows (count-windows)) |
| 66 | (count 1)) | 66 | (count 1)) |
| 67 | (if (> num-windows 1) | 67 | (if (> num-windows 1) |
| 68 | ( progn (other-window 1) | 68 | (progn (other-window 1) |
| 69 | (while (< count num-windows) | 69 | (while (< count num-windows) |
| 70 | (if (not (eq (point) (point-max))) | 70 | (if (not (eq (point) (point-max))) |
| 71 | (progn (call-interactively 'next-line))) | 71 | (progn (call-interactively 'next-line))) |
| @@ -78,7 +78,7 @@ use either M-x customize or the function `scroll-all-mode'." | |||
| 78 | (let ((num-windows (count-windows)) | 78 | (let ((num-windows (count-windows)) |
| 79 | (count 1)) | 79 | (count 1)) |
| 80 | (if (> num-windows 1) | 80 | (if (> num-windows 1) |
| 81 | ( progn (other-window 1) | 81 | (progn (other-window 1) |
| 82 | (while (< count num-windows) | 82 | (while (< count num-windows) |
| 83 | (if (not (eq (point) (point-min))) | 83 | (if (not (eq (point) (point-min))) |
| 84 | (progn (call-interactively 'previous-line))) | 84 | (progn (call-interactively 'previous-line))) |
| @@ -93,7 +93,7 @@ use either M-x customize or the function `scroll-all-mode'." | |||
| 93 | (if (> num-windows 1) | 93 | (if (> num-windows 1) |
| 94 | (progn (other-window 1) | 94 | (progn (other-window 1) |
| 95 | (while (< count num-windows) | 95 | (while (< count num-windows) |
| 96 | (call-interactively 'fkey-scroll-up) | 96 | (call-interactively 'scroll-up) |
| 97 | (other-window 1) | 97 | (other-window 1) |
| 98 | (setq count (1+ count))))))) | 98 | (setq count (1+ count))))))) |
| 99 | 99 | ||
| @@ -105,21 +105,23 @@ use either M-x customize or the function `scroll-all-mode'." | |||
| 105 | (if (> num-windows 1) | 105 | (if (> num-windows 1) |
| 106 | (progn (other-window 1) | 106 | (progn (other-window 1) |
| 107 | (while (< count num-windows) | 107 | (while (< count num-windows) |
| 108 | (call-interactively 'fkey-scroll-down) | 108 | (call-interactively 'scroll-down) |
| 109 | (other-window 1) | 109 | (other-window 1) |
| 110 | (setq count (1+ count))))))) | 110 | (setq count (1+ count))))))) |
| 111 | 111 | ||
| 112 | 112 | ||
| 113 | (defun scroll-all-check-to-scroll () | 113 | (defun scroll-all-check-to-scroll () |
| 114 | "Check `last-command' to see if a scroll was done." | 114 | "Check `this-command' to see if a scroll is to be done." |
| 115 | (if (eq this-command 'next-line) | 115 | (cond |
| 116 | (call-interactively 'scroll-all-scroll-down-all)) | 116 | ((eq this-command 'next-line) |
| 117 | (if (eq this-command 'previous-line) | 117 | (call-interactively 'scroll-all-scroll-down-all)) |
| 118 | (call-interactively 'scroll-all-scroll-up-all)) | 118 | ((eq this-command 'previous-line) |
| 119 | (if (eq this-command 'fkey-scroll-up) | 119 | (call-interactively 'scroll-all-scroll-up-all)) |
| 120 | (call-interactively 'scroll-all-page-down-all)) | 120 | ((eq this-command 'scroll-up) |
| 121 | (if (eq this-command 'fkey-scroll-down) | 121 | (call-interactively 'scroll-all-page-down-all)) |
| 122 | (call-interactively 'scroll-all-page-up-all))) | 122 | ((eq this-command 'scroll-down) |
| 123 | (call-interactively 'scroll-all-page-up-all)))) | ||
| 124 | |||
| 123 | 125 | ||
| 124 | ;;;###autoload | 126 | ;;;###autoload |
| 125 | (defun scroll-all-mode (arg) | 127 | (defun scroll-all-mode (arg) |