Re: [O] Turn off #+BEGIN_EXAMPLE conversions?

2016-09-24 Thread Eric S Fraga
On Friday, 23 Sep 2016 at 17:39, David A. Gershman wrote: [...] > 2) Seriously re-thinking how you present the information at hand. Yes, this is key. Org, for all of its power, is not a panacea. You do need to think about the target(s). I have found that, in my case, for lectures, the simpl

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-24 Thread Nicolas Goaziou
Hello, Adam Porter writes: > The indirect feature could be left out as well, but I find it so useful > that I think it might be worth including so that users can try it. It > really transforms the way I use Org, especially in combination with some > other functions I have that use indirect buff

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
Not sure if you know Clojure, but here's what I've been toying with: #+name: my-test #+begin_src clojure :var i=[1 2] (map inc i) #+end_src #+RESULTS: my-test | 2 | 3 | looks good, but then #+name: myfun1 #+begin_src clojure (defn myfun1 [ ] [8 9]) #+end_src #+begin_src clojure :var i=myfu

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
Sorry, mis-typed: #+begin_src clojure :var i=myfun1 (map inc i) #+end_src On Sat, Sep 24, 2016 at 4:53 PM, Lawrence Bottorff wrote: > Not sure if you know Clojure, but here's what I've been toying with: > > #+name: my-test > #+begin_src clojure :var i=[1 2] > (map inc i) > #+end_src > > #+RESUL

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Thomas S. Dye
Aloha Lawrence, I don't know the Clojure dialect, but I think the problem is that the myfun1 source code block returns a function. It doesn't evaluate the function and return a result, which is I think what you are expecting. You can use noweb expansion of myfun1 to define the function inside a

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-24 Thread Adam Porter
Nicolas Goaziou writes: Hi Nicolas, > I think controlling how the bookmark locations are displayed is > a different feature, which may fit better in Bookmark than in Org. I think I see what you mean, but at the same time, it seems like an Org-specific feature since it calls org-tree-to-indirect

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
If I evaluate this: #+name: myfun1 #+begin_src clojure (defn myfun1 [ ] 9) #+end_src #+RESULTS: myfun1 : #'clojure-noob.core/myfun1 then this #+begin_src clojure (inc (myfun1)) #+end_src #+RESULTS: : 10 I've got the right answer, but I've totally bypassed the :var functionality. In my eli

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Thomas S. Dye
Aloha Lawrence, Here #+begin_src clojure :var i=(myfun1) (inc i) #+end_src you are asking emacs-lisp to evaluate myfun1, which is not an emacs-lisp function. See http://orgmode.org/manual/var.html#var, "Emacs Lisp evaluation of variables" I'm not sure why you are able to bypass the :var functi

Re: [O] Data loss when working with agenda + x

2016-09-24 Thread Michael Welle
Hello, happened again today. This time changes I made yesterday are gone this morning (the changes are still in the backup file) or more precise, I found out about the problem this morning. This time three Org files are affected. I suspended the machine over night. That means that the clock made