From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Yet another literate programming application Date: Mon, 29 Jul 2013 20:00:01 +0200 Message-ID: References: <87k3k9o3vu.fsf@gmail.com> <87bo5lnw2q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3rjy-00061Z-PQ for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 14:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3rjo-0001mN-43 for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 14:00:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:1501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3rjn-0001hi-UY for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 14:00:04 -0400 In-reply-to: <87bo5lnw2q.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode schulte.eric@gmail.com writes: > Very cool, thanks for sharing. I would note, that one nice thing about > embedded mode is that there is no need for the #+begin/end_src calc > blocks, rather the formulas may be placed directly in the Org-mode > file. Yes, but I was thinking of exporting the result to something nice, so I wanted to tell org I was in calc mode. In fact, I'm not sure to like how calc deals with delimiters: it's not liking the "#+..." if there is no blank line. I know it's configurable, though. > Using embedded mode is still fairly awkward for me. I would benefit > greatly from some sort of quick reference card explaining the key > bindings and maybe an easier way to switch to/from embedded mode. Yes, I basically read through the info page. The useful shortcuts I picked were: - C-x * u: update the formula (it's almost C-x * e C-x * e, except it will still work if another formula is currently in embedded mode) - C-x * d: duplicate the formula and enter embedded calc mode - s = in calc mode: add the nice => thingy > I'm not clear on how the even/odd example works in calc, could you share > a link to the specific manual page you're referencing? I've long felt > that calc would be a *very* powerful tool, if only I could climb the > learning curve. Well, it does not work as such. I don't know how to define mutually recursive functions in calc, and that was basically my question. (But then one may then use a real programming language at that point.) The manual never really defines functions, and it seems that what I want to do is rewrite things, but I cannot find a way to do it correctly. Alan