From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [ANN] Org-babel integrated into Org-mode Date: Sat, 26 Jun 2010 10:27:13 -0700 Message-ID: <877hllbt72.fsf@gmail.com> References: <87wrtp78rg.fsf@gmail.com> <87aaqkvqdi.fsf@mundaneum.com> <87iq585rb9.fsf@gmail.com> <87mxuji0n9.fsf@gmail.com> <87zkyiuqpt.fsf@gmail.com> <87fx09bx9h.fsf@gmail.com> <87k4plvjr0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56234 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSZJ5-00013r-Dd for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 13:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSZ9x-0000qi-RV for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 13:27:19 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:64453) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSZ9x-0000qd-Iv for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 13:27:17 -0400 Received: by pxi17 with SMTP id 17so6014447pxi.0 for ; Sat, 26 Jun 2010 10:27:16 -0700 (PDT) In-Reply-To: <87k4plvjr0.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Sat, 26 Jun 2010 18:30:59 +0200") 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: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Cc: emacs-orgmode@gnu.org, Rainer M Krug =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > "Eric Schulte" writes: > >> =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: >> >> [...] >>> >>> How come some of your rewrites above still use the `org-babel-' prefix? >>> (As a side note, I don't see what Emacs guidelines suggest `ob-' is more >>> appropriate than `org-babel-', and I would personally prefer to retain >>> the latter -- it's much more descriptive.) >>> >>> =C5=A0t=C4=9Bp=C3=A1n >>> >> >> Hi =C5=A0t=C4=9Bp=C3=A1n, >> >> The guidelines I mentioned (I believe) specify that all file names for >> emacs-lisp files which are part of Emacs must be unique in the first 6 >> or so characters. This is why all "(require 'ob-*)" lines (which must >> correspond to file names) now use ob-* instead of org-babel-*. Since I >> (like you) prefer the org-babel-* prefixes, those have been retained for >> all function and variable names. > > I see. Hm... could you provide some source for that? The only > restriction on file names I can recall is this section from Appendix D > of the Emacs Lisp Reference Manual: > > * Please keep the names of your Emacs Lisp source files to 13 > characters or less. This way, if the files are compiled, the > compiled files' names will be 14 characters or less, which is > short enough to fit on all kinds of Unix systems. >=20=20=20=20=20=20 > Is that perhaps what you meant? In any case, I see that the > recommendation I quote above would make the file renaming necessary, > too. > Maybe that is the ultimate source, this requirement came to me by way of a recommendation from Carsten when we first discussed merging babel into the Org-mode core. > > (Also, I believe you actually did mention renaming *functions*, which > created my confusion in the first place -- cf. the commit message of > e0e4d76094f26 for example.) > my bad. > >> Hope this explains it, I'm certainly open to other naming suggestions. > > It would make a lot of sense to at least still begin the file names with > `org' IMHO, if at all possible. > hmm, the longest (non-language-specific) file name is already 12 characters long, (length "ob-tangle.el") ;; =3D> 12 which doesn't give us much room to play around with. Looking at a couple of possible prefixes, and the related leftover characters for differentiating the *-tangle, *-comint, *-ref, etc... core babel files, yields the following | prefix | remaining characters | |----------+----------------------| | ob- | 5 | | org-b- | 2 | | orgb- | 3 | | org-bbl- | 0 | | bbl- | 4 | | babel- | 2 | #+TBLFM: $2=3D'(sbe leftover (prefix $$1)) #+source: leftover #+begin_src emacs-lisp :var prefix=3D"" (- ;; length w/o .el (- 13 (length ".el")) ;; length of prefix (length prefix)) #+end_src Personally, none of the above seem to be particularly superior to the current naming scheme, given the fact that we need to fit multiple files behind this prefix. -- Eric > > =C5=A0t=C4=9Bp=C3=A1n