Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
auto fill-paragraph
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
drain  
View profile  
 More options Nov 16 2012, 4:23 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Fri, 16 Nov 2012 13:23:42 -0800 (PST)
Local: Fri, Nov 16 2012 4:23 pm
Subject: auto fill-paragraph
Is there a way to make paragraphs automatically adjust to the fill-column
setting?

I would want this primarily for the org-mode and mail buffers, certainly
not globally.

Right now I have to manually call fill-paragraph to adjust any text (my
default setting is 75).

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880.html
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Nov 16 2012, 4:43 pm
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Fri, 16 Nov 2012 13:43:00 -0800
Subject: RE: auto fill-paragraph

> Is there a way to make paragraphs automatically adjust to the
> fill-column setting?

> Right now I have to manually call fill-paragraph to adjust
> any text (my default setting is 75).

I just keep typing and Emacs wraps wrt `fill-column' automatically.  (But then,
I don't use long-lines, visual-lines or any such modern inconveniences.)

Give a step-by-step recipe of what you do, and perhaps someone will be able to
help you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 16 2012, 5:09 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Fri, 16 Nov 2012 14:08:56 -0800 (PST)
Local: Fri, Nov 16 2012 5:08 pm
Subject: RE: auto fill-paragraph

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26988...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 16 2012, 5:09 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Fri, 16 Nov 2012 14:09:46 -0800 (PST)
Local: Fri, Nov 16 2012 5:09 pm
Subject: RE: auto fill-paragraph
Unfortunately modern inconveniences plague my Emacs, among them
visual-line-mode, which does not wrap lines automatically to the
fill-column setting.

Recipe:

(1) (setq-default fill-column 75)
(2) M-x visu RET
(3) Write a couple sentences and watch as the words fail to wrap.

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26988...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Nov 16 2012, 5:17 pm
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Fri, 16 Nov 2012 14:17:33 -0800
Local: Fri, Nov 16 2012 5:17 pm
Subject: RE: auto fill-paragraph

> Unfortunately modern inconveniences plague my Emacs, among them
> visual-line-mode, which does not wrap lines automatically to the
> fill-column setting.

> Recipe:
> (1) (setq-default fill-column 75)
> (2) M-x visu RET
> (3) Write a couple sentences and watch as the words fail to wrap.

Just say no to step #2?

Otherwise, consider reporting the problem as a bug report or enhancement
request: `M-x report-emacs-bug'.

But again, maybe some dedicated visual-linite will have a better suggestion.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 16 2012, 5:31 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Fri, 16 Nov 2012 14:31:36 -0800 (PST)
Local: Fri, Nov 16 2012 5:31 pm
Subject: RE: auto fill-paragraph
(1) Emacs -Q
(2) C-x f 75 RET
(3) Type more than 75 characters in words and watched as the lines fail to
    wrap at 76 characters.

Does not have anything to do with visual-line-mode.

Can you provide a recipe for the opposite? Situation under which lines wrap
at the fill-column setting without calling fill-paragraph (i.e.,
automatically)?

I'm reluctant to consider this a bug, when it is more accurately described
as a missing feature (which I still doubt).

Just to be clear about what I want, here's a recipe that produces the
desired result:

(1) C-x f 75 RET
(2) Type more than 75 characters in words.
(3) M-x fill-paragraph

The goal is to automate (3) as characters reach 76 to a line.

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26988...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Nov 16 2012, 5:42 pm
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Fri, 16 Nov 2012 14:42:37 -0800
Local: Fri, Nov 16 2012 5:42 pm
Subject: RE: auto fill-paragraph

> (1) C-x f 75 RET
> (2) Type more than 75 characters in words.
> (3) M-x fill-paragraph
> The goal is to automate (3) as characters reach 76 to a line.

Turn on auto-fill-mode in your init file.
E.g., (add-hook 'text-mode-hook 'turn-on-auto-fill t)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 16 2012, 5:51 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Fri, 16 Nov 2012 14:51:33 -0800 (PST)
Local: Fri, Nov 16 2012 5:51 pm
Subject: RE: auto fill-paragraph
Fixed.

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26989...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Nov 17 2012, 2:38 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 17 Nov 2012 09:37:55 +0200
Local: Sat, Nov 17 2012 2:37 am
Subject: Re: auto fill-paragraph

What bug?  I see the same behavior, with or without step 2.  Perhaps a
more detailed recipe is required, including a precise description of
the OP's expectations.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 17 2012, 11:31 am
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Sat, 17 Nov 2012 08:31:32 -0800 (PST)
Local: Sat, Nov 17 2012 11:31 am
Subject: Re: auto fill-paragraph
Although text must be manipulated before it will auto-fill: if I copy /
paste a bunch of paragraphs from an article or book, they sprawl across
the line well past the 75 character limit.

I must, at a minimum, newline somewhere, e.g.,

"I was induced to take this course from the consideration also that the
present work is not intended for popular use, that those devoted to science
do not require such helps, although they are always acceptable, and that
they would have materially interfered with my present purpose. Abbe
Terrasson remarks with great justice that, if we estimate the size of a
work, not from the number of its pages, but from the time which we require
to make ourselves master of it, it may be said of many a book that it would
be much shorter, if it were not so short."

Will not automatically adjust, but the second I newline it into two
paragraphs:

"I was induced to take this course from the consideration also that the
present work is not intended for popular use, that those devoted to science
do not require such helps, although they are always acceptable, and that
they would have materially interfered with my present purpose.

Abbe Terrasson remarks with great justice that, if we estimate the size of
a work, not from the number of its pages, but from the time which we
require to make ourselves master of it, it may be said of many a book that
it would be much shorter, if it were not so short."

They both adjust.

Any way for copy / pasted text to also automatically fill?

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26995...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Nov 17 2012, 11:46 am
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Sat, 17 Nov 2012 08:46:31 -0800
Local: Sat, Nov 17 2012 11:46 am
Subject: RE: auto fill-paragraph

> Any way for copy / pasted text to also automatically fill?

Write your own paste command that does (a) yank (paste), (b) insert newlines to
separate paragraphs, (c) fill/wrap each paragraph?

See `fill-region', which fills each paragraph in the region.

See also `fill-individual-paragraphs' and `fill-nonuniform-paragraphs'.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 17 2012, 7:56 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Sat, 17 Nov 2012 16:56:21 -0800 (PST)
Local: Sat, Nov 17 2012 7:56 pm
Subject: RE: auto fill-paragraph
Newlining is the minimum necessary to trigger automatic fill-columning of
yanked paragraphs; it's not what I want included in the automation.
Definitely not.

Passing the yanked region to fill-region, however, should do the trick.

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p26999...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Maillard  
View profile  
 More options Nov 18 2012, 12:58 pm
Newsgroups: gnu.emacs.help
From: Xavier Maillard <xav...@maillard.im>
Date: Sun, 18 Nov 2012 18:58:07 +0100
Local: Sun, Nov 18 2012 12:58 pm
Subject: Re: auto fill-paragraph

> Fixed.

Really terse ! What did you do exactly ? Did you deactivate visu-xx stuff ?

Regards
        Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drain  
View profile  
 More options Nov 18 2012, 5:09 pm
Newsgroups: gnu.emacs.help
From: drain <aeus...@gmail.com>
Date: Sun, 18 Nov 2012 14:09:01 -0800 (PST)
Local: Sun, Nov 18 2012 5:09 pm
Subject: Re: auto fill-paragraph
Xavier Maillard-8 wrote

> Really terse ! What did you do exactly ? Did you deactivate visu-xx stuff
> ?

Added to my .emacs:

(add-hook 'text-mode-hook 'turn-on-auto-fill t)

Works with visual-line-mode on.

I decided against a function that automatically fills yanked text. Instead,
I highlight the paragraphs and interactively call fill-region.

--
View this message in context: http://emacs.1067599.n5.nabble.com/auto-fill-paragraph-tp269880p27010...
Sent from the Emacs - Help mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Nov 19 2012, 9:57 am
Newsgroups: gnu.emacs.help
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Mon, 19 Nov 2012 09:57:14 -0500
Local: Mon, Nov 19 2012 9:57 am
Subject: Re: auto fill-paragraph
There's an important element you do not discuss in your description of
what you want: do you want the "line-wrapping" to be done on the
buffer's content (so that the saved file does not contain lines longer
than 75 chars), or only on its rendering on screen?

auto-fill-mode and M-q modify the actual buffer content, whereas things
like visual-line-mode only affect the display rendering.

There are ways to trick the rendering engine to do the line-wrapping at
a particular column (e.g. the same column as fill-column).  The simplest
way is to resize the window.

        Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »