(scroll-all-mode): Make argument optional. Add to doc string.

This commit is contained in:
Glenn Morris
2002-07-29 13:53:48 +00:00
parent 091b5fdbd8
commit da5d3a563f
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2002-07-29 Glenn Morris <gmorris@ast.cam.ac.uk>
* scroll-all.el (scroll-all-mode): Make argument optional. Doc fix.
2002-07-29 John Paul Wallington <jpw@shootybangbang.com>
* scroll-all.el (scroll-all-mode): Handle numeric arg. Use `if'

View File

@@ -122,8 +122,11 @@ use either \\[customize] or the function `scroll-all-mode'."
;;;###autoload
(defun scroll-all-mode (arg)
"Toggle Scroll-All minor mode."
(defun scroll-all-mode (&optional arg)
"Toggle Scroll-All minor mode.
With ARG, turn Scroll-All minor mode on if ARG is positive, off otherwise.
When Scroll-All mode is on, scrolling commands entered in one window
apply to all visible windows in the same frame."
(interactive "P")
(setq scroll-all-mode
(if (null arg) (not scroll-all-mode)