From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: BEGIN_SRC..END_SRC Date: Mon, 07 May 2012 15:23:52 +0900 Message-ID: <87txzsse4n.fsf@catnip.gol.com> References: <871umzrvfw.fsf@gmail.com> <87wr4rqg6g.fsf@gmail.com> <83d36j59gv.fsf@gnu.org> <87r4uz58e3.fsf@sec.modprobe.de> <83aa1n57p4.fsf@gnu.org> <5D17181ED92C4552AE8D4404DD035CA0@us.oracle.com> <87pqai64vm.fsf@gmail.com> <93EFBD7DA657498389967C043BDF023D@us.oracle.com> <87ehqy36n1.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336371844 6449 80.91.229.3 (7 May 2012 06:24:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 06:24:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 07 08:24:03 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRHMY-0006Nl-UY for ged-emacs-devel@m.gmane.org; Mon, 07 May 2012 08:24:03 +0200 Original-Received: from localhost ([::1]:54237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHMX-0007GC-QR for ged-emacs-devel@m.gmane.org; Mon, 07 May 2012 02:24:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHMV-0007G5-FK for emacs-devel@gnu.org; Mon, 07 May 2012 02:24:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRHMT-00041t-8d for emacs-devel@gnu.org; Mon, 07 May 2012 02:23:58 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:55054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHMS-0003wo-VP; Mon, 07 May 2012 02:23:57 -0400 Original-Received: from 218.231.154.2.eo.eaccess.ne.jp ([218.231.154.2] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) (envelope-from ) id 1SRHMP-0001x0-TH; Mon, 07 May 2012 15:23:53 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id CEECEDFC1; Mon, 7 May 2012 15:23:52 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Ted Zlatanov's message of "Sun, 06 May 2012 22:25:33 -0400") Original-Lines: 28 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.216.5.73 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150335 Archived-At: Ted Zlatanov writes: > On Sat, 05 May 2012 16:38:49 -0500 John Wiegley wrote: > JW> Why not just indent code blocks with space, the way that > JW> Markdown does? It's readable to all parties. > > It makes copy+paste harder, especially with embedded newlines, and > you can't specify the language[1]. JIRA's {code:LANGUAGE} and > {code} markers are much more sensible. Still, as something to aid human comprehension -- which is presumably the main intent (even if not the only one) -- the indented form seems much better... I don't really buy the copy-paste argument. For inserting code into a message, none of these methods is effort-free; you either intent the code, or insert some magic strings around it (indenting is probably easier, at least in Emacs, unless there are special commands to deal with the situation, in which case all methods are equal). For extracting code into a file to test or something, indented code _may_ be more problematic, if indentation is significant (bad Python, bad!), but in the majority of cases, I think it isn't -- e.g. it's usually fine to compile a C program where every line has 4 spaces added... -miles -- Bacchus, n. A convenient deity invented by the ancients as an excuse for getting drunk.