From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6168 invoked from network); 27 Aug 2021 11:30:31 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2021 11:30:31 -0000 Received: from localhost ([::1]:60942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJa45-0001TK-2v for ml@inbox.vuxu.org; Fri, 27 Aug 2021 07:30:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJa2p-0000Or-Qm for info-gnus-english@gnu.org; Fri, 27 Aug 2021 07:29:11 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJa2n-0001gI-57 for info-gnus-english@gnu.org; Fri, 27 Aug 2021 07:29:11 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1630063743; cv=none; d=zohomail.com; s=zohoarc; b=EhsZ3cIupbpXn44SsudpIFhUZi/jZ1TaXo2iBTILmixO9i4E90yWdJ+F2VFzgMVfNvdsG0I/cVPGSJq16w3VApwFmyiIRTsJ+YSVvoWa7MIusd7t2Z/ntDg5eNM3pLQr5qmyYLGEmP4yiKSNibLefyw64V3ZwNSStBK2JKUb0iQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630063743; h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Yf2lcuLE4xoGrObEXOnYaOvyvUPos0R/agC+Bsoj2MM=; b=MLwVNdWVbZ2g1VfgU61APNp6UJOAsIrkr+MHH/5n97U/Ef/FgAFLYl0OSjHYkCOnvrpyIv8gvjOY4BdX5TRoPIqKGsD6SkAj6VuHq/UaD+LCb+CaVqdS+NfXtZ4WMbwYmmbKcOz61YiuKy+GyP0xnIYvP3/CpTZvd+yWB/ktrUA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=a-rx.info; spf=pass smtp.mailfrom=rx@a-rx.info; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1630063743; s=zoho; d=a-rx.info; i=rx@a-rx.info; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=Yf2lcuLE4xoGrObEXOnYaOvyvUPos0R/agC+Bsoj2MM=; b=o3u+FYShQ5GULcrsxfb/O/Z53TH6iozfz3+56/bX6eo0h3uBx1cjWw8hbQ21YTqL jAVD8Ay2MHSSqtbBnOOU0+I0RJFf5JVA7DzUqQIChppqnYWI+oeJob+lqu6zNRB8suZ NpAk0bRQ1fPqvFPb1A6VEgUjW+0MSxQ/n8QI/AqA= Received: from softland (host5-81-182-101.range5-81.btcentralplus.com [5.81.182.101]) by mx.zohomail.com with SMTPS id 1630063740938260.2822013779928; Fri, 27 Aug 2021 04:29:00 -0700 (PDT) Received: from rx by softland with local (Exim 4.94.2) (envelope-from ) id 1mJa2c-009t0j-L7 for info-gnus-english@gnu.org; Fri, 27 Aug 2021 12:28:58 +0100 From: Andreas Reuleaux To: info-gnus-english@gnu.org Subject: Re: cut here markers for code snippets in mail References: <87v93snjz9.fsf@softland> <8735qvdgtm.fsf@ericabrahamsen.net> <87czpzv4tf.fsf@enricoschumann.net> Date: Fri, 27 Aug 2021 12:28:58 +0100 In-Reply-To: <87czpzv4tf.fsf@enricoschumann.net> (Enrico Schumann's message of "Fri, 27 Aug 2021 07:23:40 +0200") Message-ID: <87zgt32kjp.fsf@softland> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rx@a-rx.info; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" OK, works fine for me, and thanks for sharing. -A (and sorry if you get this message twice now: I meant to send this to the list) Enrico Schumann writes: > On Thu, 26 Aug 2021, Eric Abrahamsen writes: > >> Andreas Reuleaux writes: >> >>> Hi, >>> >>> I have seen people highlighting code snippets in mail >>> with "cut here markers": some ascii art for scissors, "cut here", >>> "start", "end", ..., like so: >>> >>> rm -f /etc/fonts/conf.d/70-no-bitmaps.conf >>> ln -f -s /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf /etc/fonts/conf.d >>> >>> >>> which is kind of nice, and simple (as I don't want to get into >>> composing html mails with org-mime or the like). >>> >>> I get to see them "green on yellow" in gnus (once I have received >>> such mails), or when in draft status (in my drafts folder). >>> >>> Two questions (at least): >>> >>> For one thing, I wonder if this behaviour is anywhere >>> documented/specified/explained in more detail? >>> >>> And then: I would like to see my code green-on-yellow snippets in >>> message mode as well (when composing mail), or at least as a toggle: >>> see how my mail would look to the recipient. >>> >>> And how are people actually using these "cut here markers": >>> insert them by hand, as I did above? Or is there some automatic support >>> for this hidden somewhere? - Or any other mechanisms for >>> such code snippets highlighting - in org mode nevertheless perhaps [?]: >>> I don't want to send html mails, but maybe org-mime / orgmsg / etc. >>> are useful for composing mails? >> >> The command to run is `message-mark-inserted-region', bound to "C-c M-m" >> by default in message-mode. It's not terribly discoverable, but it is >> there in the "Message" menu. >> >> I don't believe there's currently any way to get a "preview" in >> message-mode, of how your outgoing message will look to the recipient. >> > > It seems that 'mml-preview' (C-c RET P) shows the highlighting.