From: Tassilo Horn <tsdh@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: auto-fill breaks line too early
Date: Thu, 18 Oct 2012 10:40:33 +0200 [thread overview]
Message-ID: <87wqyob2bi.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 7c540f57-66b9-410b-92f2-66d7327480aa@googlegroups.com
"mandar.mitra" <mandar.mitra@gmail.com> writes:
Hi Mandar,
> I turn on auto-fill-mode, place cursor on i (for insight) and hit C-x f to
> set fill column to 73. Then I go to the end of the line and hit space. This
> produces:
>
> --------------------
> A study of the number of relevant documents for queries may provide some
> insights about the collections when juxtaposed across the FIRE
> years. Voorhees and
> --------------------
>
> Why does auto-fill break the line before years instead of after?
That's because emacs thinks "years." is an abbreviation. If you'd use
two spaces after a dot ending a sentence, it'll work as you expected.
You can change this by setting this to nil.
,----[ C-h v sentence-end-double-space RET ]
| sentence-end-double-space is a variable defined in `paragraphs.el'.
| Its value is t
|
| This variable is safe as a file local variable if its value
| satisfies the predicate `booleanp'.
|
| Documentation:
| Non-nil means a single space does not end a sentence.
| This is relevant for filling. See also `sentence-end-without-period'
| and `colon-double-space'.
|
| This value is used by the function `sentence-end' to construct the
| regexp describing the end of a sentence, when the value of the variable
| `sentence-end' is nil. See Info node `(elisp)Standard Regexps'.
|
| You can customize this variable.
`----
However, keep in mind that then the sentence moving commands like `M-a'
and `M-e' also stop at real abbreviations like in "bla, bla, etc. bla
bla."
If you check some messages here on the list, you'll see that most
long-time emacs users have two spaces after the dot ending a sentence.
Ditto in this message. Now you know why.
Bye,
Tassilo
next prev parent reply other threads:[~2012-10-18 8:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 8:12 auto-fill breaks line too early mandar.mitra
2012-10-18 8:33 ` Michael Heerdegen
2012-10-18 8:34 ` Teemu Likonen
2012-10-18 12:30 ` Mandar Mitra
2012-10-18 8:40 ` Tassilo Horn [this message]
[not found] ` <mailman.11206.1350549236.855.help-gnu-emacs@gnu.org>
2012-10-18 12:25 ` Barry Margolin
2012-11-25 1:27 ` David Combs
2012-11-25 3:05 ` Drew Adams
[not found] ` <mailman.13738.1353812732.855.help-gnu-emacs@gnu.org>
2012-12-08 0:50 ` David Combs
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=87wqyob2bi.fsf@thinkpad.tsdh.de \
--to=tsdh@gnu.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.