From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel and capitalization Date: Mon, 21 May 2012 09:48:42 -0400 Message-ID: <871umdwsp1.fsf@gmx.com> References: <86k405r36l.fsf@mercure.progiciels-bpi.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWUqz-0006zg-FP for emacs-orgmode@gnu.org; Mon, 21 May 2012 11:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWUqs-0001PF-I3 for emacs-orgmode@gnu.org; Mon, 21 May 2012 11:49:01 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:44039) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SWUqs-0001Oi-C7 for emacs-orgmode@gnu.org; Mon, 21 May 2012 11:48:54 -0400 In-Reply-To: <86k405r36l.fsf@mercure.progiciels-bpi.ca> (=?utf-8?Q?=22Fran?= =?utf-8?Q?=C3=A7ois?= Pinard"'s message of "Mon, 21 May 2012 10:58:42 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org Fran=C3=A7ois Pinard writes: > Hi, Org people! > > A while ago, we discussed capitalization on this list, as the manual was > irregular on things like #+BEGIN_SRC and #+begin_src. After some > discussion and hesitation, Bastien decided to stick to upper case in the > manual, and despite it was not my own preference, I amended all my Org > files to use upper case, for consistency. > > Now, I have a script, run at least daily, which checks all my Org files > for a lot of nits. After I started to study some of Babel facilities > (yesterday), my script now trips on Babel results: > > --8<---------------cut here---------------start------------->8--- > ~/fp/notes/notes.org:33: Wrong capitalization > ~/fp/notes/notes.org:57: Wrong capitalization > --8<---------------cut here---------------end--------------->8--- > > And indeed, I get, trying an example taken from this mailing list: > > --8<---------------cut here---------------start------------->8--- > #+BEGIN_SRC R :results output > citation() > #+END_SRC > > #+RESULTS: > #+begin_example > > To cite R in publications use: > > R Development Core Team (2011). R: A language and environment for > statistical computing. R Foundation for Statistical Computing, > Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/. > > A BibTeX entry for LaTeX users is > > @Manual{, > title =3D {R: A Language and Environment for Statistical Computing}, > author =3D {{R Development Core Team}}, > organization =3D {R Foundation for Statistical Computing}, > address =3D {Vienna, Austria}, > year =3D {2011}, > note =3D {{ISBN} 3-900051-07-0}, > url =3D {http://www.R-project.org/}, > } > > We have invested a lot of time and effort in creating R, please cite it > when using it for data analysis. See also =E2=80=98citation("pkgname")=E2= =80=99 for > citing R packages. > #+end_example > --8<---------------cut here---------------end--------------->8--- > > If I correct #+begin_example to #+BEGIN_EXAMPLE, etc. and retry, the > result returns to lower case. > > I could of course modify my nit-picking program so it recognizes the > #+RESULTS: case, but my feeling is that Org should be consistent overall > on capitalization. And by telling this, of course, I disregard my own > preference. Consistency has a stronger appeal to me. > > Fran=C3=A7ois > Hi Fran=C3=A7ois, I've just added a new variable which may be customized to control the capitalization of these example delimiters. Add the following to your config ;; -*- emacs-lisp -*- (setq org-babel-capitalize-examplize-region-markers t) and the latest version of Org-mode will insert capitalized versions of all begin/end example delimiters. Best, --=20 Eric Schulte http://cs.unm.edu/~eschulte