unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Fill Prefix Qs: Smarter Inference, Paragraphs by Their Repeat Count, Making Them Read-only
@ 2008-09-01  6:08 Veli-Pekka Tätilä
  2008-09-01 14:21 ` Fill Prefix Qs: Correction Veli-Pekka Tätilä
  0 siblings, 1 reply; 2+ messages in thread
From: Veli-Pekka Tätilä @ 2008-09-01  6:08 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

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?

I have looked at various modes like post, filladapt and so on but none of 
these are quite what I'm looking for. The best solution I can think of right 
now is to simply use single space indentation for e-mail quoting levels and 
convert between the equivalent number of spaces and > signs via a global 
regexp replace both before, and after writing. Maybe that will due the trick 
once I get used to it.

it still doesn't protect killing and movement in textual units like 
sentences and beginnings of a line, I guess, and neither does it handle code 
snippets with indentation.

If Emacs can manage the > signs on its own, there's absolutely no need for 
me to cursor to them let alone edit them, much the same attitude as levels 
of indent in code in a smart IDE.

Any help appreciated.

-- 
With kind regards Veli-Pekka Tätilä
Accessibility, Apps and Coding plus Synths and Music:
http://vtatila.kapsi.fi




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

* Re: Fill Prefix Qs: Correction
  2008-09-01  6:08 Fill Prefix Qs: Smarter Inference, Paragraphs by Their Repeat Count, Making Them Read-only Veli-Pekka Tätilä
@ 2008-09-01 14:21 ` Veli-Pekka Tätilä
  0 siblings, 0 replies; 2+ messages in thread
From: Veli-Pekka Tätilä @ 2008-09-01 14:21 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

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ätilä
Accessibility, Apps and Coding plus Synths and Music:
http://vtatila.kapsi.fi




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

end of thread, other threads:[~2008-09-01 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01  6:08 Fill Prefix Qs: Smarter Inference, Paragraphs by Their Repeat Count, Making Them Read-only Veli-Pekka Tätilä
2008-09-01 14:21 ` Fill Prefix Qs: Correction Veli-Pekka Tätilä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).