<html><head></head><body style="zoom: 0%;"><div dir="auto">Hi,<br></div>
<div dir="auto">Boxquote.el might be of help.<br><br></div>
<div dir="auto">-Dieter<br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Gesendet mit <!-- tmjah_g_1299e --><a href="https://bluemail.me"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >Am 26. März 2023, um 14:05, jman <<a href="mailto:emacs-berlin@city17.xyz" target="_blank">emacs-berlin@city17.xyz</a>> schrieb:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue"><br>hey!<br><br>I was looking again at one of the last email from Michael in this<br>list[0], there is a special marker for code snippets that gnus<br>recognizes and applies a special coloring (a "face", I guess?).<br><br>So, the command is `message-mark-inserted-region` (C-c M-m), described<br>as "Mark some region in the current article with enclosing tags."<br><br>--8<---------------cut here---------------start------------->8---<br>whatever goes inside here will appear different, right?<br>--8<---------------cut here---------------end--------------->8---<br><br>I was curious, so I've tried hacking this long marker string<br>(`message-mark-insert-begin` and `message-mark-insert-end`), can it be<br>made shorter?<br><br>If I am not wrong this is defined by a regexp in mm-ul.el:<br><br>--8<---------------cut here---------------start------------->8---<br>(message-marks<br>     ;; Text enclosed with tags similar to `message-mark-insert-begin' and<br>     ;; `message-mark-insert-end'.  Don't use those variables to avoid<br>     ;; dependency on `message.el'.<br>     "^-+[8<>]*-\\{9,\\}[a-z ]+-\\{9,\\}[a-z ]+-\\{9,\\}[8<>]*-+$"<br>     "^-+[8<>]*-\\{9,\\}[a-z ]+-\\{9,\\}[a-z ]+-\\{9,\\}[8<>]*-+$"<br>     ,(lambda () (mm-uu-verbatim-marks-extract 0 0 1 -1))<br>     nil)<br>--8<---------------cut here---------------end--------------->8---<br><br>Which translated to English should be:<br>1. one "-" optionally followed by one "8" and one of "<" or ">"<br>2. nine times "-"<br>3. one alphabetic string (or space)<br>4. nine times "-"<br>5. one alphabetic string (or space)<br>6. nine times "-"<br>7. optionally one "8" and one of "<" or ">"<br>8. a closing "-"<br><br>and this leads me to think that these delimiters ...<br><br>----------s---------s----------<br>... can be reduced to this, but not any further, right?<br>----------e---------e----------<br><br>Wow, 47% of the original length! I'm sure this will save some trees when<br>sending emails around! :D<br><br>Anyway, it was fun digging into this completely useless thing and<br>customize my own shorter snippet message markers :)<br><br>happy hacking!<br><br>[0]: <a href="https://mailb.org/pipermail/emacs-berlin/2023/000997.html">https://mailb.org/pipermail/emacs-berlin/2023/000997.html</a><br><hr><br>emacs-berlin mailing list<br>emacs-berlin@emacs-berlin.org<br><a href="https://mailb.org/mailman/listinfo/emacs-berlin">https://mailb.org/mailman/listinfo/emacs-berlin</a><br></pre></blockquote></div></body></html>