unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fill-paragraph problem
@ 2011-06-15 11:48 guivho
  0 siblings, 0 replies; only message in thread
From: guivho @ 2011-06-15 11:48 UTC (permalink / raw)
  To: help-gnu-emacs

When I execute fill-paragraph I get a different result depending upon
whether I've selected the paragraph or not. In the example following, I
use a part of the fill-paragraph description text:

[quote]
Fill each of the paragraphs in the region.
A prefix arg means justify as well.
Ordinarily the variable `fill-column' controls the width.
[unquote]

For the example, I flow these three lines as a paragraph with one
single line:

[quote]
Fill each of the paragraphs in the region. A prefix arg means justify
as well. Ordinarily the variable `fill-column' controls the width.
[unquote]

With the cursor inside that line, (without selecting it!), hitting M-x
fill-paragraph produces following result:

[quote]
Fill each of the paragraphs in the region. A prefix arg means justify as
	well. Ordinarily the variable `fill-column' controls the width.
[unquote]

However, when selecting this paragraph as region, fill-paragraph
produces the expected result:

[quote]
Fill each of the paragraphs in the region. A prefix arg means justify as
well. Ordinarily the variable `fill-column' controls the width.
[unquote]

I am totally puzzled about the white space that gets inserted on all but
the first line if the paragraph has not been selected.

Variables `fill-paragraph-function' and `fill-prefix' are both nil.

The leading white-space gets inserted whether transient-mark-mode is
enabled or disabled.

Is there any way to avoid this behaviour? It's kind of annoying to have
to select the current paragraph before being able to flow it properly.

TIA,

Guivho.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-15 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 11:48 fill-paragraph problem guivho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).