From: "Jay Bingham" <b.jc-emacs@netzero.com>
Subject: RE: Intrusive spaces
Date: Wed, 7 Jun 2006 17:34:02 GMT [thread overview]
Message-ID: <20060607.103414.17501.90594@webmail28.nyc.untd.com> (raw)
On Wednesday, June 07, 2006 11:20 AM B. T. Raven Wrote:
> I ran M-| bc on this region:
>
> define fact(n) {
> if (n <= 1) return (n);
> return (n * fact(n-1));
> }
> fact(666)
>
> The resulting very big number fills about 24 lines each terminated with
> C-j. I then ran the following function
>
> (defun unfill-paragraph () ;; bound to C-x M-q
> "Do the opposite of fill-paragraph; stuff all lines in the current
> paragraph into a single long line."
> (interactive)
> (let ((fill-column 90002000))
> (fill-paragraph nil)))
>
> on those 24 lines. Instead of joining them seamlessly, it puts in a
> space where the C-j had been. I haven't noticed this happening with
> ordinary text before. This happens with 21.3 on dos shell msw98.
B.T.,
I just ran a quick fill paragraph test using text rather than numbers and what I see is that doing fill-paragraph with a large fill-column setting does in fact put spaces where the ^js were. (I am running Emacs 21.3 on XP). In fact this is what I would expect fill-paragraph to do because usually paragraphs are an series of words separated by spaces and line feeds rather than a string of numbers separated by line feeds. For example if I had following two lines:
You should have a go
at it.
I would expect then to be filled as:
You should have a go at it.
not as:
You should have a goat it.
Granted there may be times when even with text is would be preferable to not have a space replace the line feed, such as:
He went that-a-
way.
should be filled as:
He went that-a-way.
not as:
He went that-a- way.
but they are rare and fill-paragraph is not that smart.
__
J_)
C_)ingham
_____________________________________________________________________
Call Anyone, Anytime, Anywhere in the World - FREE!
Free Internet calling from NetZero Voice
Visit http://www.netzerovoice.com today!
next reply other threads:[~2006-06-07 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 17:34 Jay Bingham [this message]
[not found] <mailman.2718.1149703362.9609.help-gnu-emacs@gnu.org>
2006-06-07 22:20 ` Intrusive spaces B. T. Raven
-- strict thread matches above, loose matches on Subject: below --
2006-06-07 16:20 B. T. Raven
2006-06-08 8:01 ` Mathias Dahl
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=20060607.103414.17501.90594@webmail28.nyc.untd.com \
--to=b.jc-emacs@netzero.com \
/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.