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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29491 invoked from network); 27 Aug 2021 05:23:59 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2021 05:23:59 -0000 Received: from localhost ([::1]:36770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJULM-0001yU-VO for ml@inbox.vuxu.org; Fri, 27 Aug 2021 01:23:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJULK-0001yI-25 for info-gnus-english@gnu.org; Fri, 27 Aug 2021 01:23:54 -0400 Received: from www231.your-server.de ([188.40.28.11]:38358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJULH-0001J5-EU for info-gnus-english@gnu.org; Fri, 27 Aug 2021 01:23:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=enricoschumann.net; s=default2005; h=Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=uMlFWyp1ZpeZpwkSD7mTjxC4+c5Hk2UKdCkE/W5qLzs=; b=bcoJGiGKVd1T78uZg3blNTq58s FIuWeyHASdorwthad1/9prN+Shhz494T4raC1ZcQ1wOgu/TS4FYk1weWhsjAgNael5ABPZBiUZXPp FujPV49VATbTgYKNKtQLnHQkbon2iRriEwZuqngzPVFhXzt1vkfF0Df3joE+aZxJSPT8hICU99vcg ZtoJkN29sR5ExLwAzyuwzBFMqESGQMTlYpXJXbHq9bRlyN8GccZAu/oxYSgzuHM2cp4kmjVmtygN1 AgLjmN1PT9qT4vglnz4Isd0IqFsNbuGxGr/o3f9lJpkhsACCHcQOyXYKVkSGmi5nSNAbiQWh94f4F CBeyQKsQ==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www231.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mJUL7-0002DE-BG; Fri, 27 Aug 2021 07:23:41 +0200 Received: from [2a02:120b:2c0e:c5a0:9f5e:e1f:19d:e9a9] (helo=es-hp.enricoschumann.net) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJUL7-0008Bq-6e; Fri, 27 Aug 2021 07:23:41 +0200 From: Enrico Schumann To: Eric Abrahamsen Subject: Re: cut here markers for code snippets in mail In-Reply-To: <8735qvdgtm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 26 Aug 2021 14:41:41 -0700") References: <87v93snjz9.fsf@softland> <8735qvdgtm.fsf@ericabrahamsen.net> Date: Fri, 27 Aug 2021 07:23:40 +0200 Message-ID: <87czpzv4tf.fsf@enricoschumann.net> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Sender: es@enricoschumann.net X-Virus-Scanned: Clear (ClamAV 0.103.2/26275/Thu Aug 26 10:19:25 2021) Received-SPF: pass client-ip=188.40.28.11; envelope-from=es@enricoschumann.net; helo=www231.your-server.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: , Cc: info-gnus-english@gnu.org Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" 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. -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net