From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Moving my init.el to Org Date: Mon, 01 Sep 2014 23:24:19 +0200 Message-ID: <87ha0r2fwc.fsf@gmail.com> References: <20140831103706.549dc45b@aga-netbook> <87oav1582f.fsf@gmail.com> <87tx4svjda.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOZ5a-0000jO-4n for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 17:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOZ5U-0003eL-01 for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 17:24:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:54596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOZ5T-0003eH-Q3 for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 17:24:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOZ5S-0006nJ-Ti for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 23:24:30 +0200 Received: from e178063228.adsl.alicedsl.de ([85.178.63.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2014 23:24:30 +0200 Received: from tjolitz by e178063228.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2014 23:24:30 +0200 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: emacs-orgmode@gnu.org Alan Schmitt writes: Hello Thorsten, > I gave this a try, and here are some observations. > > On 2014-08-31 16:12, Thorsten Jolitz writes: > >> on your src-blocks before conversion, as an alternative, like this >> >> ,---- >> | (org-dp-toggle-headers &optional 'header) >> `---- >> >> to avoid losing the src-block header-args during conversion. > > I don't use headers in that file so I skipped that step. > >> 2. Call 'outorg-convert-org-to-outshine' just once, its only for the >> initial conversion. Then you have an outshine file that you convert to >> org occasionally with the usual 'outorg-edit-as-org'. > > As it's not interactive, I had to evaluate it. The only thing I then saw > is the reply "nil". I searched for a created buffer and I found it, but Yes, since this is most likely a seldom used function (every file is converted just once) I did not bother to make it interactive. And IIRC it returns nil and doesn't change window-config because it was written with batch calls in mind. > the results are surprising. With this small input file: > > * test > ** test2 > #+begin_src emacs-lisp > (+ 2 2) > #+end_src > > I got this output > > ;; * test > > ;; #+header: > ;; #+header: ** test2 > ;; #+begin_src emacs-lisp > ;; (+ 2 2) > ;; #+end_src Thats a bug, it should be fixed now in branch tj-outorg (which should actually be faster and better than master anyway and will hopefully be merged in a few weeks or so). Here is my org-mode test buffer: #+BEGIN_ORG * test ** test2 #+begin_src emacs-lisp (+ 2 2) #+end_src #+begin_src picolisp :exports code (+ 2 2) #+end_src #+begin_src emacs-lisp :results value :cache no (+ 2 2) #+end_src #+END_ORG and here the emacs-lisp-mode output buffer: #+BEGIN_SRC emacs-lisp ;; * test ;; ** test2 (+ 2 2) ;; #+begin_src picolisp :exports code ;; (+ 2 2) ;; #+end_src ;; #+header: :cache no ;; #+header: :results value (+ 2 2) #+END_SRC which looks ok so far. can you test it too? PS What about switches? AFAIK they don't work yet as #+header args, is that correct? If so, is it planned to make them work as #+header args in the future? -- cheers, Thorsten