mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
Explain effect of variable-pitch fonts on fill-column
* doc/emacs/text.texi (Fill Commands): * doc/emacs/display.texi (Displaying Boundaries): * lisp/display-fill-column-indicator.el (display-fill-column-indicator-mode): Document caveats of using variable-pitch fonts with 'fill-column' and its indicator. (Bug#61677)
This commit is contained in:
parent
ba91a76659
commit
003759a6dc
@ -1402,7 +1402,11 @@ right-to-left paragraphs.
|
|||||||
functionality especially in @code{prog-mode} and its descendants
|
functionality especially in @code{prog-mode} and its descendants
|
||||||
(@pxref{Major Modes}) to indicate the position of a specific column
|
(@pxref{Major Modes}) to indicate the position of a specific column
|
||||||
that has some special meaning for formatting the source code of a
|
that has some special meaning for formatting the source code of a
|
||||||
program.
|
program. This assumes the buffer uses a fixed-pitch font, where all
|
||||||
|
the characters (with the possible exception of double-width
|
||||||
|
characters) have the same width on display. If the buffer uses
|
||||||
|
variable-pitch fonts, the fill-column indicators on different lines
|
||||||
|
might appear unaligned.
|
||||||
|
|
||||||
To activate the fill-column indication display, use the minor modes
|
To activate the fill-column indication display, use the minor modes
|
||||||
@code{display-fill-@-column-indicator-mode} and
|
@code{display-fill-@-column-indicator-mode} and
|
||||||
|
@ -619,7 +619,12 @@ variable @code{fill-column}. The default value (@pxref{Locals}) is
|
|||||||
is to use the command @kbd{C-x f} (@code{set-fill-column}). With a
|
is to use the command @kbd{C-x f} (@code{set-fill-column}). With a
|
||||||
numeric argument, it uses that as the new fill column. With just
|
numeric argument, it uses that as the new fill column. With just
|
||||||
@kbd{C-u} as argument, it sets @code{fill-column} to the current
|
@kbd{C-u} as argument, it sets @code{fill-column} to the current
|
||||||
horizontal position of point.
|
horizontal position of point. Note that, by its very nature,
|
||||||
|
@code{fill-column} is measured in column units; the actual position of
|
||||||
|
that column on a graphical display depends on the font being used. In
|
||||||
|
particular, using variable-pitch fonts will cause the
|
||||||
|
@code{fill-column} occupy different horizontal positions on display in
|
||||||
|
different lines.
|
||||||
|
|
||||||
@cindex centering
|
@cindex centering
|
||||||
@findex center-line
|
@findex center-line
|
||||||
|
@ -53,6 +53,9 @@ customize `display-fill-column-indicator-column'. You can change the
|
|||||||
character for the indicator setting `display-fill-column-indicator-character'.
|
character for the indicator setting `display-fill-column-indicator-character'.
|
||||||
The globalized version is `global-display-fill-column-indicator-mode',
|
The globalized version is `global-display-fill-column-indicator-mode',
|
||||||
which see.
|
which see.
|
||||||
|
This minor mode assumes the buffer uses a fixed-pitch font; if you
|
||||||
|
use variable-pitch fonts, the indicators on different lines might
|
||||||
|
not appear aligned.
|
||||||
See Info node `Displaying Boundaries' for details."
|
See Info node `Displaying Boundaries' for details."
|
||||||
:lighter nil
|
:lighter nil
|
||||||
(if display-fill-column-indicator-mode
|
(if display-fill-column-indicator-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user