[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

K.5 Espacios al final de la línea

It is easy to leave unnecessary spaces at the end of a line without realizing it. In most cases, this trailing whitespace has no effect, but there are special circumstances where it matters.

You can make trailing whitespace visible on the screen by setting the buffer-local variable show-trailing-whitespace to t. Then Emacs displays trailing whitespace in the face trailing-whitespace.

Trailing whitespace is defined as spaces or tabs at the end of a line. But trailing whitespace is not displayed specially if point is at the end of the line containing the whitespace. (Doing that looks ugly while you are typing in new text, and the location of point is enough in that case to show you that the spaces are present.)

To delete all trailing whitespace within the current buffer's restriction (@pxref{Narrowing}), type M-x delete-trailing-whitespace RET. (This command does not remove the form-feed characters.)

Emacs can indicate empty lines at the end of the buffer with a special bitmap on the left fringe of the window. To enable this feature, set the buffer-local variable indicate-empty-lines to a non-nil value. The default value of this variable is controlled by the variable default-indicate-empty-lines; by setting that variable, you can enable or disable this feature for all new buffers.


This document was generated by Roberto on abril, 2 2007 using texi2html 1.76.