all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adaptive fill question
@ 2003-10-22  1:54 Richard Bourgon
  2003-10-22 14:04 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Bourgon @ 2003-10-22  1:54 UTC (permalink / raw)


Quick question: 

In text mode with autofill on, if I start a paragraph like this...

   1. Blah blah blah blah.

...and get to the fill column, it wraps around and starts a new line: 

   1. Blah blah blah blah. The text
   1. gets wrapped like this. Annoying!

How can I stop this behavior and instead get Emacs to (i) indent under the 
"Blah" but (ii) prepend spaces rather than "1. "?

adaptive-fill-regexp is set to

    [ 	]*(?[0-9]+[.)][ 	]*

and adaptive-fill-first-line-regexp is currently empty. (The square braces 
contain a space and a tab.)

Thanks in advance,

Richard 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Adaptive fill question
  2003-10-22  1:54 Adaptive fill question Richard Bourgon
@ 2003-10-22 14:04 ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2003-10-22 14:04 UTC (permalink / raw)


> How can I stop this behavior

That's not the behavior I see here.  Could you tell us which version
of Emacs you're using, in which mode ?

> and instead get Emacs to (i) indent under the 
> "Blah" but (ii) prepend spaces rather than "1. "?

That's the behavior I already see in Emacs-21.2.

> adaptive-fill-regexp is set to
>     [ 	]*(?[0-9]+[.)][ 	]*

Mine has more stuff in it (by default), but nothing relevant.

> and adaptive-fill-first-line-regexp is currently empty. (The square braces
> contain a space and a tab.)

What do you mean empty?  Like ""?


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Adaptive fill question
@ 2003-10-22 14:49 Bingham, Jay
  0 siblings, 0 replies; 4+ messages in thread
From: Bingham, Jay @ 2003-10-22 14:49 UTC (permalink / raw)


In a message dated: Tuesday, October 21, 2003 8:54 PM Richard Bourgon
wrote:

>...and get to the fill column, it wraps around and starts a new line: 
>
>   1. Blah blah blah blah. The text
>   1. gets wrapped like this. Annoying!
>
>How can I stop this behavior and instead get Emacs to (i) indent under
the 
>"Blah" but (ii) prepend spaces rather than "1. "?

It is highly likely that the cause of the pre-pended "1. " is that the
fill prefix has been set, (see information on the set-fill-prefix
command).  If you did not set it overtly (which I suspect since you
probably would not be asking the question if you had) it may get set as
a feature of some mode that you are running.

-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality
Assurance
.    Austin, TX
. "Language is the apparel in which your thoughts parade in public.
.  Never clothe them in vulgar and shoddy attire."     -Dr. George W.
Crane-

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Adaptive fill question
       [not found] <mailman.2214.1066834242.21628.help-gnu-emacs@gnu.org>
@ 2003-10-23  0:46 ` Richard Bourgon
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Bourgon @ 2003-10-23  0:46 UTC (permalink / raw)


Thanks for your replies so far. 

Following up on suggestions/questions, I checked the fill-prefix variable 
and it is nil -- so that's not the problem. I am using Emacs 21.2 in text 
mode ("M-x text-mode").

My understanding is that paragraphs whose start matches the adaptive-fill-
regexp will have the matching string carried into subsequent lines when 
lines get wrapped, provided that this string also matches the adaptive-
fill-first-line-regexp. If the matched string fails to match adaptive-fill-
first-line-regexp, then it gets replaced with white space in subsequent 
lines, so you get a nice hanging indent for your paragraph number.

My adaptive-fill-regexp is detecting paragraph numbers, but for some reason 
I'm getting these numbers wrapped into the subsequent line as well.

- Richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-23  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-22  1:54 Adaptive fill question Richard Bourgon
2003-10-22 14:04 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2003-10-22 14:49 Bingham, Jay
     [not found] <mailman.2214.1066834242.21628.help-gnu-emacs@gnu.org>
2003-10-23  0:46 ` Richard Bourgon

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.