From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [babel] Execute checks before trying to load Babel languages Date: Wed, 09 Feb 2011 14:03:50 +0100 Message-ID: <80oc6l9x6x.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi, I am sharing my .emacs file, and this is beginning to cause problems with people who don't have the same environment as I do. In particular with the following: #+begin_src emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '( (C . t) (R . t) (calc . t) (ditaa . t) (dot . t) (emacs-lisp . t) (gnuplot . t) (haskell . nil) (latex . t) (ledger . t) (ocaml . nil) (octave . nil) (org . t) (perl . t) (python . t) (ruby . t) (screen . t) (sh . t) (sql . t) (sqlite . t))) #+end_src Someone got: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (file-error "Cannot open load file" "ob-c= alc") --8<---------------cut here---------------end--------------->8--- In fact, this is much more general than checking the Org-version: it addres= ses as well installed packages such as - Rterm (R and ess-mode) - ditaa (requires =3Dsudo aptitude install openjdk-6-jre=3D) - gnuplot (requires gnuplot-mode) - ledger (requires that =3Dob-ledger=3D is found...) - org (requires that =3Dob-org=3D is found...) - ruby Do I have to check myself for such executables in a way similar to: #+begin_src emacs-lisp (when (find-exec "Rterm") ... add R language ... ) (when (file-exists-p "ob-ledger") ... add ledger language ... ) #+end_src or could we come up with some more generic and compact solution that would easily be usable by all of us? Maybe such a check should be made, by default, in every language file? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode