From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [BUG] #+begin_src wo. language blocks XHTML export Date: Mon, 05 Jul 2010 16:56:39 +0200 Message-ID: <87fwzyj7tk.wl%dmaus@ictsoc.de> References: <87fx0abtr1.fsf@gmx.de> <87mxu7nxoy.wl%dmaus@ictsoc.de> <87iq4uzynf.fsf@gmx.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============0494185433==" Return-path: Received: from [140.186.70.92] (port=34075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVn6V-0006Uy-4n for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 10:57:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVn6T-0004VE-0X for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 10:57:02 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:54339) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVn6S-0004Uo-Rv for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 10:57:00 -0400 In-Reply-To: <87iq4uzynf.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Emacs-orgmode mailing list --===============0494185433== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Jul__5_16:56:38_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Mon_Jul__5_16:56:38_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sebastian Rose wrote: >> >> I suppose a source block without languag should be considered an >> error, shouldn't it? Maybe Org should fail more gracefully when it >> encounters such a block during export? >The current behaviour is new. The file I tried to export worked for >quite a while locally and on orgmode.org. The fallback was to behave >like `#+begin_example', I believe. >It can be considered an error, since the docs say:=20 > "...This is done with the =E2=80=98src=E2=80=99 block, where you also ne= ed to specify > the name of the major mode that should be used to fontify the > example..." >But think of batch export. >But I'd like to see some kind of error message, or better be asked for >the language (i.e. a major-mode). The mode could be inserted after the >`#+begin_src'.=20 If I understand the latest changes (i.e. integration of Babel into Org core) than Babel is responsible for formatting the code blocks. Merely I couldn't (yet) get the fingers into Babel's magic, but definitely agree that there should be at least a more useful error message -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Mon_Jul__5_16:56:38_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkwx8qcACgkQma24O1pEeOZm3wEAkU2zkyRb84WmQC99fmypN3qJ /DQbH1C2yohx01JxDsEBAJAsN0M+YsKYSrEfkwL2fIvWlIVuBDA7X6GeGMj4sUMl =tx+X -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Jul__5_16:56:38_2010-1-- --===============0494185433== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0494185433==--