From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: layout org-babel menu WAS: About org-babel menu Date: Fri, 06 Apr 2012 05:40:31 -1000 Message-ID: References: <87d388lo8f.fsf@gmail.com> <87pqc8acwy.fsf@gmx.com> <4F67458D.5090904@gmail.com> <87mx71mymu.fsf@gnu.org> <4F7D6125.40309@gmail.com> <87pqbm8i0t.fsf@gmx.com> 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]:41168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGBHP-0004ws-VM for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 11:40:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGBHM-0007oV-Cp for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 11:40:51 -0400 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:45966) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SGBHL-0007oB-NR for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 11:40:48 -0400 In-Reply-To: (Torsten Wagner's message of "Fri, 6 Apr 2012 10:51:56 +0900") 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: Torsten Wagner Cc: FengShu , emacs-orgmode@gnu.org, Eric Schulte Torsten Wagner writes: > Hi, > > for me the biggest "trouble" with babel is to remember the possible > keywords in the header for different languages. > There were a lot of ongoing syntax change which did not make it easier > for me to remember all this. > Thus a menu which is organised by languages offering all possible > settings for each language would be very helpful. > | > Python > | | > | export - code - result - both - none > | | > | tangle - no - yes- filename > | | > | result - value - output > | | > | ... > | > ... > > Not sure how effectual this would be in a main menu. It would be > definitely awesome in a context menu > > That would be (copied from worg) [*] indicates cursor position > > #+NAME: factorial > #+BEGIN_SRC haskell [*] :results silent :exports code :var n=3D0 > > a context menu would appear presenting all possible header arguments for = haskell > > #+NAME: factorial > #+BEGIN_SRC haskell :results [*] :exports code :var n=3D0 > > a context menu presenting all possible values for the header argument > :results in haskell > I guess that together with the possibility to call this menu by > keyboard strokes or alternatively show the same infos in the > minibuffer would be a great win for babel and it would make many > questions here on the list unnecessary. > Furthermore, any change or extension in the syntax for a certain > language would be directly reflected to the end-user. E.g., If I > suddenly see the menu entry :exports 3dprint, I would be curious and > check it out on worg and the manual ;) > > Totti Aloha Totti, I wonder if your context menu idea might be easy to accomplish with a function template? YASnippet has a way to choose a value from a list. All the best, Tom > > > > On 5 April 2012 21:44, Eric Schulte wrote: >> Rainer M Krug writes: >> >>> On 28/03/12 01:07, Bastien wrote: >>>> Hi Rainer, >>>> >>>> Rainer M Krug writes: >>>> >>>>> So I would see it as a useful way of promoting babel (and therefore o= rg-mode) and also as a >>>>> nice reminder of less frequently (but nevertheless usefull) functiona= lity. >>>> >>>> Agreed. >>>> >>>> Is anyone volunteering for listing the items in such a menu for Babel? >>>> >>>> If so, I'm willing to implement this. >>> OK - let me start this. >>> >>> Org >>> | >>> + Babel >>> =C2=A0 | >>> =C2=A0 + edit >>> =C2=A0 | =C2=A0| >>> =C2=A0 | =C2=A0+ open surce buffer (that C-c ') >>> =C2=A0 | =C2=A0+ insert source block skeleton >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | >>> =C2=A0 + tangle >>> =C2=A0 | =C2=A0| >>> =C2=A0 | =C2=A0+ tangle buffer >>> =C2=A0 | =C2=A0+ inverse tangle >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | >>> =C2=A0 + evaluate >>> =C2=A0 | =C2=A0| >>> =C2=A0 | =C2=A0+ evaluate code block >>> =C2=A0 | =C2=A0+ evaluate subtree >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | >>> =C2=A0 + help >>> =C2=A0 | =C2=A0| >>> =C2=A0 | =C2=A0+ Link to info help on header arguments >>> =C2=A0 | =C2=A0+ Link to info help on how to enable languages >>> =C2=A0 | =C2=A0+ URL to language specific help on worg >>> =C2=A0 | =C2=A0+ ... >>> =C2=A0 | =C2=A0+ ... >>> >>> >>> So - At the moment this is a skeleton of the babel menu - Comments? for= gotten commands (I assume >>> many? >>> >> >> Hi Rainer, >> >> Thanks for starting this. =C2=A0It looks like a great skeleton. =C2=A0He= re are a >> couple of comments which I hope are helpful. >> >> To find more publicly available Babel function you can do C-c C-v h in >> an Org-mode buffer or run the org-babel-describe-bindings command >> >> There are two high level sub-menus which I may suggest be added to the >> above, namely "languages" and "library of babel", which could list >> information on available languages and list library of babel functions >> respectively. >> >> I'm not sure how menus are normally used, specifically how Emacs breaks >> functionality between the menu, configuration and help sub-systems. =C2= =A0It >> is possible that because of such boundaries both the "help" and >> "languages" submenus may not be appropriate. >> >> Two other pieces of menu content which occur to me are a list of the >> code blocks available in the current buffer including some information >> on each block (e.g., name, arguments,), and a way to show the user what >> the current file wide header arguments are -- note: there already exists >> a function for displaying this information on the code block level >> `org-babel-view-source-block-info' which may be sufficient. >> >> Cheers, >> >>> >>>> >>>> I'm not convince we should have a menu item to (de)activate each langu= age though -- more a menu >>>> that exposes the basics. >>> >>> Agreed. >>> >>> Cheers, >>> >>> Rainer >>> >>> >>> >>> >>>> >>>> Thanks, >>>> >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> > > --=20 Thomas S. Dye http://www.tsdye.com