From dcc3ef3ee7b7cf2730378fca4c959f1fc799fbe2 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 26 Aug 2017 12:52:07 +0300 Subject: [PATCH] Fix bugs merged with bug#25428 * lisp/simple.el (auto-fill-mode, visual-line-mode): Doc fix. (Bug#13926) (Bug#25434) (Bug#25435) --- lisp/simple.el | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 072723cd644..13cfa3487da 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6828,9 +6828,12 @@ other purposes." (define-minor-mode visual-line-mode "Toggle visual line based editing (Visual Line mode). -With a prefix argument ARG, enable Visual Line mode if ARG is -positive, and disable it otherwise. If called from Lisp, enable -the mode if ARG is omitted or nil. +Interactively, with a prefix argument, enable +Visual Line mode if the prefix argument is positive, +and disable it otherwise. If called from Lisp, toggle +the mode if ARG is `toggle', disable the mode if ARG is +a non-positive integer, and enable the mode otherwise +\(including if ARG is omitted or nil or a positive integer). When Visual Line mode is enabled, `word-wrap' is turned on in this buffer, and simple editing commands are redefined to act on @@ -7262,9 +7265,12 @@ Some major modes set this.") (define-minor-mode auto-fill-mode "Toggle automatic line breaking (Auto Fill mode). -With a prefix argument ARG, enable Auto Fill mode if ARG is -positive, and disable it otherwise. If called from Lisp, enable -the mode if ARG is omitted or nil. +Interactively, with a prefix argument, enable +Auto Fill mode if the prefix argument is positive, +and disable it otherwise. If called from Lisp, toggle +the mode if ARG is `toggle', disable the mode if ARG is +a non-positive integer, and enable the mode otherwise +\(including if ARG is omitted or nil or a positive integer). When Auto Fill mode is enabled, inserting a space at a column beyond `current-fill-column' automatically breaks the line at a -- 2.39.2