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 29027 invoked from network); 27 Aug 2021 00:22:22 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2021 00:22:22 -0000 Received: from localhost ([::1]:37970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJPdU-00044l-P2 for ml@inbox.vuxu.org; Thu, 26 Aug 2021 20:22:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJPdR-00044Y-Q3 for info-gnus-english@gnu.org; Thu, 26 Aug 2021 20:22:17 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJPdP-0005fD-DQ for info-gnus-english@gnu.org; Thu, 26 Aug 2021 20:22:17 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1630023731; cv=none; d=zohomail.com; s=zohoarc; b=SeGw3kI4LsyxGhIc9tChOa7Gii9lt00iVaS3556w575TccoX7X6NwsfFg7K6zVBOn3jnzhy0dUUllI6z3CKy271K7ZANcPr11pAOuv+0Y8SHubNvIngSNBAq4DJ/4rwLrIdH7D/GEpCMdlzcjTyIgg/5IF1wGgqWTo0N6AdS7t4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630023731; h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=GqEBYCRE/ZvaWFJ0lgLPe9iOjqK6Epcrkr05+RQK5SQ=; b=bcD7PCuJ8yCO0Vpq/rmyOFOE2J6iwK43nvgl6flM1kSAO4B9I6ZB0QWNK2ptN0lgQKu+wlaW+ZO+IAIO98AXhAIFmx8ivYHjPcDfMKxRYAO9LkCvgbcp51VXm51OzHfZmq9uwsx/Ftn+ayLJifhw114yyVoVBuVGyS0XN57BSyg= 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=1630023731; 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=GqEBYCRE/ZvaWFJ0lgLPe9iOjqK6Epcrkr05+RQK5SQ=; b=GhejJIGoxrdXX77gMiyqd59rAL0vy5ydFLx4IZRWSKq7/WbOqweDfc4P+G+14wk0 VN2Md1rrGJaLKTRtpoRE4eCq+3ph6qI+lNjZFOIjvbfHS0T0FqvFU1xfVFKDvztTmiY MkgeJu7S1lO1io/KgwsjuV/JUh0DNqfSwwehEkqM= Received: from softland (host5-81-182-101.range5-81.btcentralplus.com [5.81.182.101]) by mx.zohomail.com with SMTPS id 16300237279831020.574770215879; Thu, 26 Aug 2021 17:22:07 -0700 (PDT) Received: from rx by softland with local (Exim 4.94.2) (envelope-from ) id 1mJPdE-008iaj-LY for info-gnus-english@gnu.org; Fri, 27 Aug 2021 01:22:04 +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> Date: Fri, 27 Aug 2021 01:22:04 +0100 In-Reply-To: <8735qvdgtm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 26 Aug 2021 14:41:41 -0700") Message-ID: <8735qv68k3.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" Ah, OK, I see, thanks a lot. And doing it w/ C-c M-m is definitely faster than cut & paste by hand. -A 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.