Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"cut here" (and message formatting in general)

6 views
Skip to first unread message

Tamas K Papp

unread,
Apr 28, 2013, 5:14:47 AM4/28/13
to info-gnu...@gnu.org
Hi,

Reading a newsgroup recently in Gnus I found a message which had code
nicely highlighted in the Emacs buffer. Looking at the raw message
source I found something like

--8<---------------cut here---------

around the code.

I was not aware of this possibility, so now I am interested in the
following:

1. What's the "standard" format for this, or at least the format
recognized by Gnus?

2. Is there an emacs function or some other shortcut to enter it?

3. Is there a list of similar constructs that Gnus would recognize (I am
aware of *bold*, _underline_ and /italic/, but I am interested in what I
am missing). If there is no user-friendly list I am happy to look at EL
sources, but some directions would be useful.

Best,

Tamas


Teemu Likonen

unread,
Apr 28, 2013, 5:28:01 AM4/28/13
to Tamas K. Papp, info-gnu...@gnu.org
Tamas K. Papp [2013-04-28 11:14:47 +02:00] wrote:

> Reading a newsgroup recently in Gnus I found a message which had code
> nicely highlighted in the Emacs buffer. Looking at the raw message
> source I found something like
>
> --8<---------------cut here---------

> 2. Is there an emacs function or some other shortcut to enter it?

Yes, there is:

C-c M-m runs the command message-mark-inserted-region, which is an
interactive compiled Lisp function in `message.el'.

It is bound to C-c M-m, <menu-bar> <Message> <Insert Region Marked>.

(message-mark-inserted-region BEG END &optional VERBATIM)

Mark some region in the current article with enclosing tags. See
`message-mark-insert-begin' and `message-mark-insert-end'. If
VERBATIM, use slrn style verbatim marks ("#v+" and "#v-").

Lars Magne Ingebrigtsen

unread,
Aug 1, 2013, 8:09:14 AM8/1/13
to Tamas K Papp, info-gnu...@gnu.org
Tamas K Papp <tkp...@gmail.com> writes:

> Reading a newsgroup recently in Gnus I found a message which had code
> nicely highlighted in the Emacs buffer. Looking at the raw message
> source I found something like
>
> --8<---------------cut here---------
>
> around the code.
>
> I was not aware of this possibility, so now I am interested in the
> following:
>
> 1. What's the "standard" format for this, or at least the format
> recognized by Gnus?

These are inserted by the `message-mark-inserted-region' command, and
Gnus parses what that inserts.

--
(domestic pets only, the antidote for overdose, milk.)
No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php

0 new messages