From: Chong Yidong Date: Wed, 6 Jun 2012 06:39:24 +0000 (+0800) Subject: * buffer.c (word_wrap): Doc fix. X-Git-Tag: emacs-24.2.90~1199^2~474^2~116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5cfcbe076a00c6b21be6faa807549e0881ed422;p=emacs.git * buffer.c (word_wrap): Doc fix. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7a9ab1757eb..7ea9ad8f3e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-06-06 Chong Yidong + + * buffer.c (word_wrap): Doc fix. + 2012-06-04 Paul Eggert * xdisp.c (note_mode_line_or_margin_highlight): Pacify gcc -Wall. diff --git a/src/buffer.c b/src/buffer.c index 386d9a78153..504d477494b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5522,7 +5522,13 @@ This variable has no effect if long lines are truncated (see `truncate-lines' and `truncate-partial-width-windows'). If you use word-wrapping, you might want to reduce the value of `truncate-partial-width-windows', since wrapping can make text readable -in narrower windows. */); +in narrower windows. + +Instead of setting this variable directly, most users should use +Visual Line mode . Visual Line mode, when enabled, sets `word-wrap' +to t, and additionally redefines simple editing commands to act on +visual lines rather than logical lines. See the documentation of +`visual-line-mode'. */); DEFVAR_PER_BUFFER ("default-directory", &BVAR (current_buffer, directory), make_number (Lisp_String),