Commit c9787897 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Whitespace changes.

parent 8d60818b
...@@ -63,94 +63,93 @@ use either M-x customize or the function `scroll-all-mode'." ...@@ -63,94 +63,93 @@ use either M-x customize or the function `scroll-all-mode'."
"Scroll down all visible windows." "Scroll down all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(if (not (eq (point) (point-max))) (if (not (eq (point) (point-max)))
(call-interactively 'next-line)) (call-interactively 'next-line))
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-scroll-up-all (arg) (defun scroll-all-scroll-up-all (arg)
"Scroll up all visible windows." "Scroll up all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(if (not (eq (point) (point-min))) (if (not (eq (point) (point-min)))
(call-interactively 'previous-line)) (call-interactively 'previous-line))
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-page-down-all (arg) (defun scroll-all-page-down-all (arg)
"Page down in all visible windows." "Page down in all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(condition-case nil (condition-case nil
(call-interactively 'scroll-up) (end-of-buffer nil)) (call-interactively 'scroll-up) (end-of-buffer nil))
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-page-up-all (arg) (defun scroll-all-page-up-all (arg)
"Page up in all visible windows." "Page up in all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(condition-case nil (condition-case nil
(call-interactively 'scroll-down) (beginning-of-buffer nil)) (call-interactively 'scroll-down) (beginning-of-buffer nil))
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-beginning-of-buffer-all (arg) (defun scroll-all-beginning-of-buffer-all (arg)
"Go to the beginning of the buffer in all visible windows." "Go to the beginning of the buffer in all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(call-interactively 'beginning-of-buffer) (call-interactively 'beginning-of-buffer)
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-end-of-buffer-all (arg) (defun scroll-all-end-of-buffer-all (arg)
"Go to the end of the buffer in all visible windows." "Go to the end of the buffer in all visible windows."
(interactive "P") (interactive "P")
(let ((num-windows (count-windows)) (let ((num-windows (count-windows))
(count 1)) (count 1))
(when (> num-windows 1) (when (> num-windows 1)
(other-window 1) (other-window 1)
(while (< count num-windows) (while (< count num-windows)
(call-interactively 'end-of-buffer) (call-interactively 'end-of-buffer)
(other-window 1) (other-window 1)
(setq count (1+ count)))))) (setq count (1+ count))))))
(defun scroll-all-check-to-scroll () (defun scroll-all-check-to-scroll ()
"Check `this-command' to see if a scroll is to be done." "Check `this-command' to see if a scroll is to be done."
(cond (cond ((eq this-command 'next-line)
((eq this-command 'next-line) (call-interactively 'scroll-all-scroll-down-all))
(call-interactively 'scroll-all-scroll-down-all)) ((eq this-command 'previous-line)
((eq this-command 'previous-line) (call-interactively 'scroll-all-scroll-up-all))
(call-interactively 'scroll-all-scroll-up-all)) ((eq this-command 'scroll-up)
((eq this-command 'scroll-up) (call-interactively 'scroll-all-page-down-all))
(call-interactively 'scroll-all-page-down-all)) ((eq this-command 'scroll-down)
((eq this-command 'scroll-down) (call-interactively 'scroll-all-page-up-all))
(call-interactively 'scroll-all-page-up-all)) ((eq this-command 'beginning-of-buffer)
((eq this-command 'beginning-of-buffer) (call-interactively 'scroll-all-beginning-of-buffer-all))
(call-interactively 'scroll-all-beginning-of-buffer-all)) ((eq this-command 'end-of-buffer)
((eq this-command 'end-of-buffer) (call-interactively 'scroll-all-end-of-buffer-all))))
(call-interactively 'scroll-all-end-of-buffer-all))))
;;;###autoload ;;;###autoload
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment