Fill Prefix Qs: Smarter Inference, Paragraphs by Their Repeat Count, Making Them Read-only
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Fill Prefix Qs: Smarter Inference, Paragraphs by Their Repeat Count, Making Them Read-only         


Author: Veli-Pekka Tätilä
Date: Aug 31, 2008 23:06

Hi list,
After doing some studying on my own I can now better rephrase one of my key
questions about citing e-mail and news posts.
Briefly put:

How do I make emacs: a) infer the fil prefix from a line, b) make paragraphs
a set of contiguous lines with the same fill prefix repeat count, c) protect
the fill prefix from editing?

I really like refill mode legally blind, it let's me concentrate on the text
rather than caring about line breaks. Snipping quoted text then becomes a
matter of setting the appropriate fill prefix and editing the paragraph in
question. I can also just regexp search for the next level n quote (
^\(>\s-?\)\{n\} ) and kill from my search start position to the destination
quite easily. Pretty nice.

The only things Emacs does not do is infer the fill prefix directly from
line beginning, set paragraphs to be equal to a particular quoting level
(fill prefix n times), and make sure that I don't snip the fill prefix (>)
when killing sentences, for instance. So the question is, can it do these
three?
Show full article (1.86Kb)
1 Comment
Re: Fill Prefix Qs: Correction         


Author: Veli-Pekka Tätilä
Date: Sep 1, 2008 07:21

Hi,
Oops, I ment the underscore not the dash. Not that relevant about my
question, but the regexp I
ment for matching level n e-mail quotes was:

^\(>\s_?\)\{n\}

[my RE knowledge is very much PCRE-based]

--
With kind regards Veli-Pekka T
no comments

RELATED THREADS
SubjectArticles qty Group
Genes make Jews smarter: researcher Charles Murray says natural selection made Jews smarter11 soc.culture.british ·