all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: guivho <news@vanhoecke.org>
To: help-gnu-emacs@gnu.org
Subject: fill-paragraph problem
Date: Wed, 15 Jun 2011 13:48:22 +0200	[thread overview]
Message-ID: <BANLkTikXQbhqQg_Gfk6XsNwWtdDe4Q+sZg@mail.gmail.com> (raw)

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.



                 reply	other threads:[~2011-06-15 11:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikXQbhqQg_Gfk6XsNwWtdDe4Q+sZg@mail.gmail.com \
    --to=news@vanhoecke.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.