summaryrefslogtreecommitdiff
path: root/lisp/scroll-all.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2002-04-21 14:43:31 +0000
committerGlenn Morris <rgm@gnu.org>2002-04-21 14:43:31 +0000
commit75272a3a3dfec64041e927b0bc98dcf56d541562 (patch)
tree1edda8f38e4b48a5ea90fa56dd5b702e0e369a35 /lisp/scroll-all.el
parentc901ceff748dfe7ea78e66035191e47b1fd89ab5 (diff)
downloademacs-75272a3a3dfec64041e927b0bc98dcf56d541562.tar.gz
(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.
Diffstat (limited to 'lisp/scroll-all.el')
-rw-r--r--lisp/scroll-all.el32
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'."
(if running-xemacs
(add-minor-mode 'scroll-all-mode " *SL*")
- (or (assq 'scroll-all-mode-mode minor-mode-alist)
+ (or (assq 'scroll-all-mode minor-mode-alist)
(setq minor-mode-alist
- (cons '(scroll-all-mode-mode " *SL*") minor-mode-alist))))
+ (cons '(scroll-all-mode " *SL*") minor-mode-alist))))
(defun scroll-all-scroll-down-all (arg)
"Scroll down all visible windows."
@@ -65,7 +65,7 @@ use either M-x customize or the function `scroll-all-mode'."
(let ((num-windows (count-windows))
(count 1))
(if (> num-windows 1)
- ( progn (other-window 1)
+ (progn (other-window 1)
(while (< count num-windows)
(if (not (eq (point) (point-max)))
(progn (call-interactively 'next-line)))
@@ -78,7 +78,7 @@ use either M-x customize or the function `scroll-all-mode'."
(let ((num-windows (count-windows))
(count 1))
(if (> num-windows 1)
- ( progn (other-window 1)
+ (progn (other-window 1)
(while (< count num-windows)
(if (not (eq (point) (point-min)))
(progn (call-interactively 'previous-line)))
@@ -93,7 +93,7 @@ use either M-x customize or the function `scroll-all-mode'."
(if (> num-windows 1)
(progn (other-window 1)
(while (< count num-windows)
- (call-interactively 'fkey-scroll-up)
+ (call-interactively 'scroll-up)
(other-window 1)
(setq count (1+ count)))))))
@@ -105,21 +105,23 @@ use either M-x customize or the function `scroll-all-mode'."
(if (> num-windows 1)
(progn (other-window 1)
(while (< count num-windows)
- (call-interactively 'fkey-scroll-down)
+ (call-interactively 'scroll-down)
(other-window 1)
(setq count (1+ count)))))))
(defun scroll-all-check-to-scroll ()
- "Check `last-command' to see if a scroll was done."
- (if (eq this-command 'next-line)
- (call-interactively 'scroll-all-scroll-down-all))
- (if (eq this-command 'previous-line)
- (call-interactively 'scroll-all-scroll-up-all))
- (if (eq this-command 'fkey-scroll-up)
- (call-interactively 'scroll-all-page-down-all))
- (if (eq this-command 'fkey-scroll-down)
- (call-interactively 'scroll-all-page-up-all)))
+ "Check `this-command' to see if a scroll is to be done."
+ (cond
+ ((eq this-command 'next-line)
+ (call-interactively 'scroll-all-scroll-down-all))
+ ((eq this-command 'previous-line)
+ (call-interactively 'scroll-all-scroll-up-all))
+ ((eq this-command 'scroll-up)
+ (call-interactively 'scroll-all-page-down-all))
+ ((eq this-command 'scroll-down)
+ (call-interactively 'scroll-all-page-up-all))))
+
;;;###autoload
(defun scroll-all-mode (arg)