* bulleting and numbering paragraphs in messages
@ 2001-11-25 21:55 Arcady Genkin
2001-11-25 22:03 ` Robin S. Socha
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Arcady Genkin @ 2001-11-25 21:55 UTC (permalink / raw)
Is there any automation available for indenting bulleted/numbered
paragraphs when composing a message?
Many thanks,
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bulleting and numbering paragraphs in messages
2001-11-25 21:55 bulleting and numbering paragraphs in messages Arcady Genkin
@ 2001-11-25 22:03 ` Robin S. Socha
2001-11-26 0:38 ` Arcady Genkin
2001-11-26 8:20 ` Kai Großjohann
2001-11-26 17:05 ` Toby Speight
2 siblings, 1 reply; 6+ messages in thread
From: Robin S. Socha @ 2001-11-25 22:03 UTC (permalink / raw)
* Arcady Genkin <antipode@thpoon.com> writes:
> Is there any automation available for indenting bulleted/numbered
> paragraphs when composing a message?
Have you tried "C-h k C-x ."?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bulleting and numbering paragraphs in messages
2001-11-25 22:03 ` Robin S. Socha
@ 2001-11-26 0:38 ` Arcady Genkin
0 siblings, 0 replies; 6+ messages in thread
From: Arcady Genkin @ 2001-11-26 0:38 UTC (permalink / raw)
"Robin S. Socha" <robin-dated-1006984972.aca63e@socha.net> writes:
> * Arcady Genkin <antipode@thpoon.com> writes:
>
> > Is there any automation available for indenting bulleted/numbered
> > paragraphs when composing a message?
>
> Have you tried "C-h k C-x ."?
Thanks. This /almost/ does what I wanted. For example:
- I type a bunch of text at a bulleted line, and then, when it wraps
to the other line, I need to type "C-a <TAB> C-x ." This is a bit
troublesome, but acceptable.
Now, imagine that I decide to edit the first line of the paragraph
above, and insert a few more words into it; it's too long now. I
press a shortcut for `fill-paragraph', but it doesn't do anything. :(
Any further ideas?
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bulleting and numbering paragraphs in messages
2001-11-25 21:55 bulleting and numbering paragraphs in messages Arcady Genkin
2001-11-25 22:03 ` Robin S. Socha
@ 2001-11-26 8:20 ` Kai Großjohann
2001-11-26 16:15 ` Arcady Genkin
2001-11-26 17:05 ` Toby Speight
2 siblings, 1 reply; 6+ messages in thread
From: Kai Großjohann @ 2001-11-26 8:20 UTC (permalink / raw)
Arcady Genkin <antipode@thpoon.com> writes:
> Is there any automation available for indenting bulleted/numbered
> paragraphs when composing a message?
* This is just some text to show what happens when one inserts text
after an item like this.
M-q works as you would expect. But you need to have empty lines
between items.
Some time ago, message mode would also grok "(42)" as a "bullet", but
that happens no more. Dunno why.
kai
--
Simplification good! Oversimplification bad! (Larry Wall)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bulleting and numbering paragraphs in messages
2001-11-26 8:20 ` Kai Großjohann
@ 2001-11-26 16:15 ` Arcady Genkin
0 siblings, 0 replies; 6+ messages in thread
From: Arcady Genkin @ 2001-11-26 16:15 UTC (permalink / raw)
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Groъjohann) writes:
> Arcady Genkin <antipode@thpoon.com> writes:
>
> > Is there any automation available for indenting bulleted/numbered
> > paragraphs when composing a message?
>
> * This is just some text to show what happens when one inserts text
> after an item like this.
How did you get it to work this way? In my setup, the word `after'
would start at column 0, not 2.
> M-q works as you would expect.
Funny, in my case M-q inserts "* " before *every* line in the
paragraph as your example; but that only happens when an asterisk is
used as a bullet. I routinely use hyphen as a bullet character, so I
guess that's why I haven't noticed this behaviour before.
> Some time ago, message mode would also grok "(42)" as a "bullet", but
> that happens no more. Dunno why.
Well, it seems that asterisk is still treated as somewhat special (at
least for me), but only when it comes to filling a paragraph.
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bulleting and numbering paragraphs in messages
2001-11-25 21:55 bulleting and numbering paragraphs in messages Arcady Genkin
2001-11-25 22:03 ` Robin S. Socha
2001-11-26 8:20 ` Kai Großjohann
@ 2001-11-26 17:05 ` Toby Speight
2 siblings, 0 replies; 6+ messages in thread
From: Toby Speight @ 2001-11-26 17:05 UTC (permalink / raw)
0> In article <871yimplbi.fsf@tea.thpoon.com>,
0> Arcady Genkin <URL:mailto:antipode@thpoon.com> ("Arcady") wrote:
Arcady> Is there any automation available for indenting bulleted/numbered
Arcady> paragraphs when composing a message?
Filladapt (though you have to write the bullet or number yourself - it
can't do auto-numbering for you).
For messages, I have
(setq paragraph-separate
(concat "^" (regexp-quote mail-header-separator) "$"
"\\|-- $\\|[ ]*[-_][-_][-_]+$\\|[ \t\C-l]*$"
"\\|^[ >]*>\\s-*$\\|[A-Za-z0-9][^'`\"< \t\n]*>\\s-*$"))
(setq paragraph-start paragraph-separate)
(set (make-local-variable 'filladapt-token-table)
'(
;; this must be first
("^" beginning-of-line)
;; Blank (magic) lines
("--text follows this line--$" end-of-line)
("--\\[\\[\\([^][]\\|\\]\\[\\)*\\]\\]$" end-of-line)
;; Included text in news or mail replies
("[ >]*>" citation->)
;; Included text generated by SUPERCITE. We can't hope to match all
;; the possible variations, your mileage may vary.
("[A-Za-z0-9][^'`\"< \t\n]*>[ \t]*" supercite-citation)
("[#=]+>[ \t]*" supercite-citation)
;; Boxquote
("|" citation->)
;; "root" (authoritative) quotes
("#+>?" sh-comment)
;; RFC-822 headers are kind-of hanging
("^[A-Z][-A-Za-z0-9]+:[ \t]+" bullet)
;; Hanging lists; see filladapt.el
("[A-Za-z]\\.[ \t]+" bullet)
("(?[A-Za-z])[ \t]+" bullet)
("[0-9]+[A-Za-z]?\\.[ \t]+" bullet)
("(?[0-9]+[A-Za-z]?)[ \t]+" bullet)
("\\[[0-9]+[A-Za-z]?\\][ \t]" bullet)
("X?X?\\(X\\|I[XV]\\|V\\|V?I\\(\\|I\\(\\|I\\)?\\)?\\)\\.[ \t]+" bullet)
("x?x?\\(x\\|i[xv]\\|v\\|v?i\\(\\|i\\(\\|i\\)?\\)?\\)\\.[ \t]+" bullet)
("\\[[-~*+#!]\\][ \t]+" bullet)
("[-~*+]+[ \t]+" bullet)
("o[ \t]+" bullet)
("[ \t]*\\[\\Sw\\][ \t] +" bullet)
("N\\.?B\\.?:?[ \t]" bullet)
("[?!~*+--- ]+[ \t]" bullet)
;; don't touch
("[ \t]+" space)
("$" end-of-line)
))
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-11-26 17:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-25 21:55 bulleting and numbering paragraphs in messages Arcady Genkin
2001-11-25 22:03 ` Robin S. Socha
2001-11-26 0:38 ` Arcady Genkin
2001-11-26 8:20 ` Kai Großjohann
2001-11-26 16:15 ` Arcady Genkin
2001-11-26 17:05 ` Toby Speight
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 NNTP newsgroup(s).