emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: Clean-up of forward-paragraph [Re: Beginingless


From: Alan Mackenzie
Subject: Re: address@hidden: Re: Clean-up of forward-paragraph [Re: Beginingless paragraphs: second stab at a patch.]]
Date: Fri, 21 Oct 2005 20:49:21 +0000 (GMT)


On Fri, 21 Oct 2005, Chong Yidong wrote:

>> With the following text line:

>> First line of paragraph ;sep; second line of par third line

>> , turn on Longlines Mode.  The line acquires two "soft" newlines, and
>> now looks like this:

>> First line of paragraph
>> ;sep; second line of par
>> third line.

>> The middle line, beginning with ";sep;", is spuriously recognised as a
>> separator line by paragraph-separate.  There is buggy code in
>> forward-paragraph which tries to detect this situation.  I will fix it.

>Sorry, I don't understand.  Could you explain the precise procedure by
>which you turn ";sep;" into a separator line?

By setting paragraph-separate.  Here is a sample file which uses file
local variables to do this.  Load this file, do M-x longlines-mode, then
play with M-{ and M-}.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
First line of paragraph, extending to just after column 58 ;sep; second line of 
paragraph, going out just as far third line

Local Variables:
paragraph-start: ";s\\(tart\\|ep\\);\\|[ \t\n\f]"
paragraph-separate: ";sep;\\|[ \t\f]*$"
fill-column: 58
end:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

-- 
Alan Mackenzie (Munich, Germany)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]