emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BEGIN_SRC..END_SRC


From: Thien-Thi Nguyen
Subject: Re: BEGIN_SRC..END_SRC
Date: Mon, 07 May 2012 11:37:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

() Miles Bader <address@hidden>
() Mon, 07 May 2012 15:23:52 +0900

   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...

How about indented but w/ only opening markup, minus the org-mode
syntax and plus language-specific comment syntax (redundant, but
that's good) as the first line.  Something like:

  ;; -*- emacs-lisp -*-
  (setq confused (not confused))

Here is an intervening column-0 text blurb that also serves to
delimit the code block.

  # -*- shell-script -*-
  confused=`expr 1 - ${confused-1}`
  
This makes copy/paste even more straightforward, and is
recognizable by humans and programs alike (w/ some simple
heuristics, begged/borrowed/stolen from Emacs itself, bonus!).

[Insert your choice of Antoine de Saint-Exupéry quote here. ;-]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]