Re: [O] [BUG] gnuplot with dates from a table dosn't work anymore

2014-09-16 Thread Thomas Holst
Hi Nicolas

· Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Thomas Holst thomas.ho...@de.bosch.com writes:

 after a pull from this weekend generating plots with gnuplot does not
 work anymore. It was working perfectly before the pull. I get an error
 message saying:

   org-babel-gnuplot-quote-timestamp-field: Wrong type argument: stringp, nil

[ ... sinp ...]

 It should be fixed. Thank you for reporting it.

thank you for the quick fix. It works like a charm.
-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 



Re: [O] You don't like the HTML export; well, that could change!

2014-09-16 Thread Rainer M Krug
Fabrice Niessen fni-news-TA4HMoP+1wHrZ44/dzw...@public.gmane.org
writes:

 Hello,

 I'm announcing the release of Bigblow, a CSS + JS theme for the Org HTML
 exports.

 To use it in your own files, adding these lines should make it:

 #+HTML_HEAD: link rel=stylesheet type=text/css 
 href=http://www.pirilampo.org/styles/bigblow/css/htmlize.css/
 #+HTML_HEAD: link rel=stylesheet type=text/css 
 href=http://www.pirilampo.org/styles/bigblow/css/bigblow.css/
 #+HTML_HEAD: link rel=stylesheet type=text/css 
 href=http://www.pirilampo.org/styles/bigblow/css/hideshow.css/
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/jquery-1.11.0.min.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/jquery-ui-1.10.2.min.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/jquery.localscroll-min.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/jquery.scrollTo-1.4.3.1-min.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/jquery.zclip.min.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/bigblow.js;/script
 #+HTML_HEAD: script type=text/javascript 
 src=http://www.pirilampo.org/styles/bigblow/js/hideshow.js;/script

 If you clone my repo from GitHub [1], it can become as easy as adding
 just one line:

 #+SETUPFILE: path/to/Git/repo/setup/bigblow-pirilampo.setup

Thanks for this - this is awesome. I love it and I am going to use it!

One addition: the template also works with svg files, depending on
browser.

Cheers,

Rainer



 (PS- It would be very nice if we could add http references here!  Then,
 there would even be no need to copy the files locally...)

 Test it on your files, or look at the video I posted on YouTube to see
 what it looks like:

   https://www.youtube.com/watch?v=DnSGSiXYuOk

 Best regards,
 Fabrice

 PPS- I will still make some changes in a couple of days, like renaming
  the files so that they have a version number, but that I'll warn
  you when I'll get this done.

 [1] https://github.com/fniessen/org-html-themes

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpk6NRy1Dxdv.pgp
Description: PGP signature


Re: [O] Cooperating with oneself using the cloud?

2014-09-16 Thread Eric S Fraga
On Monday, 15 Sep 2014 at 19:23, Eric Abrahamsen wrote:

[...]

 Another option would be getting a mini home server that sits in a closet
 and is always on. That solves the BitTorrent Sync problem, and you'll
 suddenly find it's good for a bunch of other stuff as well: backups,
 music, printing, other torrents, LAN filesharing...

 Both options are annoying in their own way, but once you've got
 something up and running, you'll be pleased!

+1

I use git to store all my org files to my own server.

I use an old netbook as the personal cloud server.  Works like a charm!

You can also buy dedicated units from many companies, including Western
Digital for instance.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-320-gb5c9de


signature.asc
Description: PGP signature


[O] Scope of properties as variables for babel blocks

2014-09-16 Thread Dror Atariah
#+title: Scope of properties as variables for babel blocks
* Overview

I have the following scenario in mind: =func1= and =func2= are two
functions that can be executed in two modes: =foo= and =bar=. Each
mode yields a different set of results, that have to be discussed,
separately, in two different subtrees.

The goal is to have one subtree where they are executed in one mode
and a second subtree for the other mode.

The functions are defined in a dedicated [[Code][subtree]].

* Bar setting

Now, I want to execute the function in =bar= mode:
#+PROPERTY:  var mode=bar

#+CALL: func1()

#+RESULTS:
: default

#+CALL: func2()

#+RESULTS:
: default

* Foo setting

In this node I want to execute  the functions in =foo= mode:
#+PROPERTY:  var mode=foo

#+CALL: func1()

#+RESULTS:
: default

#+CALL: func2()

#+RESULTS:
: default

* Code
#+name: func1
#+begin_src python
return mode
#+end_src

#+RESULTS: func1
: foo

#+name: func2
#+begin_src python
return mode
#+end_src

#+RESULTS: func2
: default-val

* Question:

How can I implement this kind of workflow in a reproducible org mode
document?


Re: [O] org-mode-hook not called when entering org files

2014-09-16 Thread Rémi Letot
Nick Dokos ndo...@gmail.com writes:

 hob...@poukram.net (Rémi Letot) writes:

 Nick Dokos ndo...@gmail.com writes:

 hob...@poukram.net (Rémi Letot) writes:

 all org seems to work fine, but for some reason org-mode-hook is not
 called when I open an org file...


 That's very unlikely: the hook is run using a general emacs mechanism,
 so if it were broken, a *lot* of things would be broken.

 You can check with

 (setq org-mode-hook nil)
 (add-hook 'org-mode-hook (function (lambda () (message RL - my
 org-mode-hook ran this

 emacs -Q, copied your instructions in scratch buffer and C-x C-e them
 both, then opened my test.org file, and nothing happened.


 Not sure where you get your org-mode, but unless you are using the
 org-mode that was bundled with your emacs, this may not be enough:
 you might have to do some org-mode initialization (hence the suggestion
 for a minimal .emacs file below).

That's the org-mode bundled with my emacs:
Org-mode version 8.2.6 (release_8.2.6-1 @ /usr/share/emacs/24.4.50/lisp/org/)
GNU Emacs 24.4.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-08-23 on 
gkar, modified by Debian

it seems that emacs -Q is enough to get org-mode working since opening
an org file does trigger the error below :-)

...

 My advice would be to leave org-crypt to one side until you can get the
 simpler test above to pass.

ok

 Now I noticed a message that I have received for some times when I open
 an org file:

 File mode specification error: (error `recenter'ing a window that does
 not display current-buffer.)

 I didn't notice it before since it has happened for quite some times and
 didn't appear to cause any problem, but could it be the cause of this
 problem ?


 perhaps in a minimal .emacs, and then opening a foo.org file (assuming
 your auto-mode-alist is set up correctly).

 auto-mode-alist does include org-mode for org files.

 Any idea ? is the error message that I receive a possible cause ?


 Yes, it might: Eric Fraga reported a problem where an error that's
 caught causes buffer initialization to not run the hook:

 http://thread.gmane.org/gmane.emacs.orgmode/90711

 That *might* happen with your error too, although I cannot find the error
 message either in current org-mode or current-emacs. Maybe I'm looking
 in the wrong place, but which version of org-mode and which version of
 emacs are you running?

See above, that's org currently bundled with emacs. I could be coerced
to try trunk if it has a chance to solve the problem and the test is
of some use to you, but then i have some docs to read first :-)

Thanks,
--
Rémi




Re: [O] Cooperating with oneself using the cloud?

2014-09-16 Thread Ramon Diaz-Uriarte
Along the lines of what Bruno suggested, at least these two services also
claim to be encrypted locally (so during transit through the net and 
while on their servers things are always encrypted):

https://mega.co.nz/
http://www.wuala.com/



In fact, for files that you really want to be kept private a paranoid setup
could involve encrypting the org file with pgp[1] AND then sharing it via
one of the cloud services that say things are encrypted there. Note,
though, that many people report that those two (and spideroak) are not as
fast as dropbox and/or not as easy to setup.

Best,

R.



[1] Either a mechanism somewhat like Thierry suggested or a mechanism like
the one, now incorporate into org (I think) and that was started with this
thread from Jorge Alfaro:
http://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg00422.html






On Mon, 15-09-2014, at 16:51, Bruno Bigras bigras.br...@gmail.com wrote:
 - Maybe http://git-annex.branchable.com/assistant/ (it seems the xmpp
 feature is not activated on Windows right now but it could be the best
 tool soon)

 - Maybe https://github.com/joeyh/git-remote-gcrypt with a free
 bitbucket private repo. (this is a fork maintained by joeyh, the
 git-annex assistant creator)

 - Spideroak (non-free) has a dropbox like folder but the data is
 supposed to be encrypted.

 2014-09-15 6:59 GMT-04:00 Martin Schöön martin.sch...@gmail.com:
 One of the things I use org-mode for is making and maintaining TODO-lists. I
 do this at home and at work and I want the org-files of interest to be
 available and up-to-date at home and at work. The work-related org-file can
 not be publicly available for obvious reasons.

 I have emailed these files back and forth. This works but it isn't
 fool-proof (sometimes I forget) and I think there should be a less clumsy
 way to do this.

 I have tried a  free and secure web-dav service. They are closing down and
 it also was a bit on the clumsy side since I never got their windows client
 to work at work. (Linux at home using cadaver.)

 I have seen Git being mentioned in this context in these nooks of the woods.
 That should work if I can find a free Git repository allowing me to keep
 files secret. I have looked at a few but have not seen (key word!) clear
 information on this.

 Options like BitTorrent Sync work really well but only if both computers run
 simultaneous which is not the case.

 Other options? Dropboxish services that keep prying eyes at bay?

 --
 Martin Schöön

 http://hem.bredband.net/b262106/index.html

-- 
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25
Facultad de Medicina
Universidad Autónoma de Madrid 
Arzobispo Morcillo, 4
28029 Madrid
Spain

Phone: +34-91-497-2412

Email: rdia...@gmail.com
   ramon.d...@iib.uam.es

http://ligarto.org/rdiaz



[O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Uwe Brauer


Hello

Consider the following table.


| Name   | Ex 1 | Ex2 | Ex + Ex2 |
| smith  |1 |   2 |3 |
| miller |  | |0 |
#+TBLFM: $4=$2+$3


Miller has no entries in Ex1 and Ex2 but when using C-u C-u C-c C-c also
Ex2+Ex3 gets an entry namely zero. I don't like this I would prefer if
this field remains empty.

Any way of achieving this?

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Thorsten Jolitz
Uwe Brauer o...@mat.ucm.es writes:

 Hello

 Consider the following table.


 | Name   | Ex 1 | Ex2 | Ex + Ex2 |
 | smith  |1 |   2 |3 |
 | miller |  | |0 |
 #+TBLFM: $4=$2+$3


 Miller has no entries in Ex1 and Ex2 but when using C-u C-u C-c C-c also
 Ex2+Ex3 gets an entry namely zero. I don't like this I would prefer if
 this field remains empty.

 Any way of achieving this?

I think something like NaN was introduced to Org-tbls, but I don't
remember the exact syntax, maybe try with 'nan':

http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

-- 
cheers,
Thorsten




Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Michael Brand
On Tue, Sep 16, 2014 at 11:42 AM, Thorsten Jolitz tjol...@gmail.com wrote:
 I think something like NaN was introduced to Org-tbls, but I don't
 remember the exact syntax, maybe try with 'nan':

 http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

Yes, and I already documented the OP use case in the second example here:
http://orgmode.org/manual/Formula-syntax-for-Calc.html

Michael



Re: [O] Babel support for Processing-language

2014-09-16 Thread Jarmo Hurri
Nick Dokos ndo...@gmail.com writes:

 Jarmo Hurri jarmo.hu...@syk.fi writes:

 ...
 However, I have _no idea_ what kind of work supporting output capture of
 both static mode (image) and active mode (animation) would
 require. Ideally, Babel support for Processing output would mean that in
 the case of
 1. an animation 
- HTML export it would export the entire animation
- PDF export it would export, e.g., the first frame from the
  animation
 2. a static picture, the picture would be exported.

 Here's a possible starting point in your research:

   http://orgmode.org/worg/org-contrib/babel/languages.html#develop

 My next step would be to find an ob-lang.el that is as similar
 as possible to what Processing does and what I'd want to achieve
 and go from there.

Yep, I am going to start doing this if no-one is working on it yet.

I woke up in the middle of the night to realize how amazingly easily
this can be done if I drop out the support for PDF export, that is, only
leave the option to export as HTML. There is no need to even execute the
code at export time to draw the image or the animation, because in HTML
you can just wrap the original Processing code in a canvas element and
the Processing.js code will draw it in the browser.

http://en.wikipedia.org/wiki/Processing.js

Let me repeat: by just exporting the code suitably embedded in the HTML
document, the _browser_ will draw the image or the animation. I just
tested it and it works perfectly.

So I will implement this in Org/Babel so that
- executing Processing code will result in the image / animation being
  shown in an external window via processing-java
- exporting the results of Processing code is only sensible in HTML
  export, which will produce a web page with the code embedded as
  described above; the browser does the drawing.

These operations will require the availability of processing-java and
processing.js in the system where the code is executed/exported.
  
Any objections?

Jarmo




Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Nicolas Richard
Michael Brand michael.ch.br...@gmail.com writes:

 On Tue, Sep 16, 2014 at 11:42 AM, Thorsten Jolitz tjol...@gmail.com wrote:
 I think something like NaN was introduced to Org-tbls, but I don't
 remember the exact syntax, maybe try with 'nan':

 http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

 Yes, and I already documented the OP use case in the second example here:
 http://orgmode.org/manual/Formula-syntax-for-Calc.html

This is something I tend to forget (and usually work around with some
lisp). Thanks for the reminder.

-- 
Nicolas Richard



Re: [O] org-ref no key found

2014-09-16 Thread Julian M. Burgos
Yes, you were right.  An update of org-mode fixed everything.  Thanks again!

John Kitchin writes:

 If you look in your messages do you see something like jit-lock errors?
 I do not recall exactly what the errors are but the ones I have seen
 that resemble what you describe have jit in them. 

 I saw this recently in an ELPA version (maybe around Sept 1), and it went 
 away when I updated
 the ELPA org version to the most recent one.


 Julian M. Burgos jul...@hafro.is writes:

 John, another issue...a really minor one, and I am not sure if it is
 org-ref related.  When I open the notes file, the org faces are not
 applied evenly.  In particular, 

 a) Text after #TITLE: or #AUTHOR appears as regular text.  If I use M-x
 describe face, I get default.  If modify in any way the face changes
 to org-document-info as it should be.

 b) Within the heading of each reference, the TODO statement appears
 with the same face as the rest of the heading (org-level-2 face).

 c) Links to pdf files appear like this, with default face:
  
 [[cite:Collie2000]] [[file:/home/julian/Documents/Refs/Collie2000.pdf][pdf]]

 And not as clickable links 
 cite:Collie2000 pdf (underlined, in blue, with org-link face)

 Again, as soon as I change anything the org-link face is applied and I
 get a clickable link.

 Of all this, the pdf links are the real issue, as they are
 non-functional until I edit them.

 Strangely, :PROPERTIES: and :END: appear in their correct face.  Also,
 if I fix the faces (editing the text or pressing enter so I get the
 right faces) and close the notes files, I get the same wriong faces when I
 reopen the file.

 Does this makes sense?  Do you know what could be the issue?
 Many thanks again,

 Julian


 Julian M. Burgos writes:

 Excellent! Many thanks... now it works like a charm.

 John Kitchin writes:

 No problem. Thanks for the tips to replicate this. It was pretty helpful
 in solving the problem (and thanks again to Nick who pointed me towards
 edebug-defun a while ago!)

 I think I have fixed this. The problem was org-ref was not finding a key
 that exists in a file. the way that is done all over org-ref is to
 insert the contents of the bibfile in temp buffer, and then use
 bibtex-search-entry on that buffer. It works like a charm usually, but
 not in the replicated steps you have below. once it works once, though,
 it seems to always work. 

 Anyway, I think it is fixed now. there is a new version at
 https://github.com/jkitchin/jmax/blob/master/org/org-ref.org

 Thanks for reporting the bug!

 Julian M. Burgos jul...@hafro.is writes:

 Hi John,

 I am resending this... I think it did not went through the previous
 time.

 I think I can replicate the org-ref bug now (if it is a bug).  This is
 the situation:

 a) If I open emacs, load a file that already has some link, and click on
 the link (or place the cursor on it and press enter) I get the no key
 found message and I cannot open the notes file (I get a Wrong type
 argument: stringp, nil), although the link to the pdf file works.  If I
 open more than one file, links do not work in any of them.  At this
 point if I check the value of the org-ref-default-bibliography
 variable, I get the correct path and filename of my .bib file.

 b) If I insert a new citation (using Ctrl-]) in any of the documents,
 links work as they should in all documents (this is, I get the title and
 I can open the notes file).

 I should say that I am not using the org-ref-insert-bibliography-link
 function, because I use biblatex and I prefer to insert the Latex
 \printbibliography command.  But if use it and insert the bibliography
 link, the behaviour does not change.

 This is what I have in my .emacs file that is related to RefTex and
 org-ref:

 --
 ;; Load RefTex
 (add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
 (autoload 'reftex-mode reftex RefTeX Minor Mode t)
 (autoload 'turn-on-reftex  reftex RefTeX Minor Mode nil)
 (autoload 'reftex-citation reftex-cite Make citation nil)
 (autoload 'reftex-index-phrase-mode reftex-index Phrase mode t)
 (add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
 (add-hook 'latex-mode-hook 'turn-on-reftex)   ; with Emacs latex mode

 ;; Make RefTeX faster
 (setq reftex-enable-partial-scans t)
 (setq reftex-save-parse-info t)
 (setq reftex-use-multiple-selection-buffers t)
 (setq reftex-plug-into-AUCTeX t)

 (setq reftex-default-bibliography 
 '(/home/julian/Documents/Refs/BibTex/references.bib))
 (setq reftex-sort-bibtex-matches author)   ; Sort entries found in 
 BibTex database 
 (setq bibtex-dialect biblatex)

 --
 (require 'org-ref)

 (setq org-ref-bibliography-notes /home/julian/Documents/org 
 files/notes.org
   org-ref-default-bibliography 
 '(/home/julian/Documents/Refs/BibTex/references.bib)
   

Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Uwe Brauer

Uwe Brauer o...@mat.ucm.es writes:

I think something like NaN was introduced to Org-tbls, but I don't
remember the exact syntax, maybe try with 'nan':

Http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

Aha, so I would indeed get:

| Name   | Ex 1 | Ex2 | Ex + Ex2 |
| smith  |1 |   2 |3 |
| miller |  | |  |
#+TBLFM: $4=$2+$3

this is patch is from 2012, which orgmode version did it enter then?

Uwe Brauer 




Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Michael Brand
Hi Uwe

On Tue, Sep 16, 2014 at 1:02 PM, Uwe Brauer o...@mat.ucm.es wrote:
 this is patch is from 2012, which orgmode version did it enter then?

I implemented it in release_7.9.2-908-ga77442b and git tag
--contains tells that it is available since Org release 8.0 which is
newer than the pre-packaged Org mode of the currently newest released
Emacs 23.3. So you need to upgrade Org mode as described here:
http://orgmode.org/manual/Installation.html

Michael



[O] Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 @ /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Ed Kademan
I can't evaluate R code blocks in org files. For example the file with
contents:

--8---cut here---start-8---
#+property: header-args:R :session R-foo

#+BEGIN_SRC R
  print(pi)
#+END_SRC
--8---cut here---end---8---

spawns an R session that reports:

--8---cut here---start-8---
  Error: could not find function .ess.eval
--8---cut here---end---8---

and does not give me a result.
I am running ess-version: 14.09 and am invoking emacs as follows:

--8---cut here---start-8---
#!/bin/sh

o=/usr/local/share/emacs/site-lisp/org
emacs -Q --eval=(progn
  (add-to-list 'load-path \$o\)
  (require 'org)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)))
  (package-initialize)
  (setq ess-ask-for-ess-directory 'nil
ess-directory \~/R/\))
--8---cut here---end---8---

EdK

Emacs  : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23)
 of 2014-08-23 on dl
Package: Org-mode version 8.3beta (release_8.3beta-362-ga92789 @ 
/usr/local/share/emacs/site-lisp/org/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-load-languages '((R . t))
 org-confirm-shell-link-function 'yes-or-no-p
 )


signature.asc
Description: PGP signature


[O] Emacs Lisp Depth

2014-09-16 Thread Fabrice Popineau
Hi,

Am I the only one to have hit the bottom of the default max_specpdl_size
and max_lisp_eval_depth values ?
I had already set max_specpdl_size to 2600 and I had to raise it again.

I have an Org file of about 1 lines, and I am exporting x100 beamer
slides and a latex document for about 200 pages .

Curious to hear about other reports.

Fabrice


Re: [O] Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 @ /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Rainer M Krug
Thanks - you came before me. I get the same error but managed to work around.

This is likely caused by the upgrade of ess, as I realized it after
upgrading to ess 14.09.

You can work around by 
1) evaluating the R code which gives the error message
2) quitting the R session
3) re-starting the R session manually in the same window (where the old
R session was)

I also send this to the ess mailing list.

Cheers,

Rainer


Ed Kademan e...@kademan.org writes:

 I can't evaluate R code blocks in org files. For example the file with
 contents:

 #+property: header-args:R :session R-foo

 #+BEGIN_SRC R
   print(pi)
 #+END_SRC

 spawns an R session that reports:

   Error: could not find function .ess.eval

 and does not give me a result.
 I am running ess-version: 14.09 and am invoking emacs as follows:

 #!/bin/sh

 o=/usr/local/share/emacs/site-lisp/org
 emacs -Q --eval=(progn
   (add-to-list 'load-path \$o\)
   (require 'org)
   (org-babel-do-load-languages
'org-babel-load-languages
'((R . t)))
   (package-initialize)
   (setq ess-ask-for-ess-directory 'nil
 ess-directory \~/R/\))

 EdK

 Emacs  : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23)
  of 2014-08-23 on dl
 Package: Org-mode version 8.3beta (release_8.3beta-362-ga92789 @ 
 /usr/local/share/emacs/site-lisp/org/)

 current state:
 ==
 (setq
  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
 org-babel-execute-safely-maybe)
  org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe
 org-babel-header-arg-expand)
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-hide-inline-tasks org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-speed-command-hook '(org-speed-command-default-hook
 org-babel-speed-command-hook)
  org-babel-pre-tangle-hook '(save-buffer)
  org-occur-hook '(org-first-headline-recenter)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-confirm-elisp-link-function 'yes-or-no-p
  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
  org-mode-hook '(#[nil \300\301\302\303\304$\207
  [org-add-hook change-major-mode-hook org-show-block-all
   append local]
  5]
#[nil \300\301\302\303\304$\207
  [org-add-hook change-major-mode-hook
   org-babel-show-result-all append local]
  5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-babel-load-languages '((R . t))
  org-confirm-shell-link-function 'yes-or-no-p
  )

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpufjzeifxSH.pgp
Description: PGP signature


Re: [O] Emacs Lisp Depth

2014-09-16 Thread Doug Lewan
No, you're not the only one. I've run across it several times. I'd say about 
half of them revealed bugs on my part, but there's no doubt that it 
occasionally has to be raised for legitimate reasons. I assume that the default 
value is somewhat arbitrary, but chosen pragmatically.

,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335

This is a slow pup, he said continuing his ascent.

From: emacs-orgmode-bounces+dougl=shubertticketing@gnu.org 
[mailto:emacs-orgmode-bounces+dougl=shubertticketing@gnu.org] On Behalf Of 
Fabrice Popineau
Sent: Tuesday, 2014 September 16 09:01
To: emacs-orgmode@gnu.org; Emacs developers
Subject: [O] Emacs Lisp Depth

Hi,

Am I the only one to have hit the bottom of the default max_specpdl_size and 
max_lisp_eval_depth values ?
I had already set max_specpdl_size to 2600 and I had to raise it again.

I have an Org file of about 1 lines, and I am exporting x100 beamer slides 
and a latex document for about 200 pages .

Curious to hear about other reports.

Fabrice


Re: [O] Emacs Lisp Depth

2014-09-16 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@gmail.com writes:

 Am I the only one to have hit the bottom of the default max_specpdl_size
 and max_lisp_eval_depth values ?
 I had already set max_specpdl_size to 2600 and I had to raise it again.

 I have an Org file of about 1 lines, and I am exporting x100 beamer
 slides and a latex document for about 200 pages .

 Curious to hear about other reports.

This is likely due to a bug or an inefficient algorithm. Does it happen
with other back-ends as well? Does it happen when parsing (i.e., simply
calling `org-element-parse-buffer'?

Could you send the file you're exporting in private? If needed, you can
use the following function (provided you can parse the buffer) to hide
contents

  (defun ngz-scramble-contents ()
(interactive)
(let ((tree (org-element-parse-buffer)))
  (org-element-map tree '(code comment comment-block example-block 
fixed-width
   keyword link node-property plain-text 
verbatim)
(lambda (obj)
  (case (org-element-type obj)
((code comment comment-block example-block fixed-width keyword
   node-property verbatim)
 (let ((value (org-element-property :value obj)))
   (org-element-put-property
obj :value (replace-regexp-in-string [[:alnum:]] x value
(link
 (unless (string= (org-element-property :type obj) radio)
   (org-element-put-property obj :raw-link http://orgmode.org;)))
(plain-text
 (org-element-set-element
  obj (replace-regexp-in-string [[:alnum:]] x obj)
nil nil nil t)
  (let ((buffer (get-buffer-create *Scrambled text*)))
(with-current-buffer buffer
  (insert (org-element-interpret-data tree))
  (goto-char (point-min)))
(switch-to-buffer buffer


Regards,

-- 
Nicolas Goaziou



Re: [O] Export filters question

2014-09-16 Thread Fabrice Popineau
2014-09-15 18:30 GMT+02:00 Nicolas Goaziou m...@nicolasgoaziou.fr:

 Hello,

 Since filters are meant for tweaking generated output, the information
 you're looking after is not readily accessible at this level. Your
 request makes sense, but I think you really want to write a derived
 back-end with a custom headline transcoder instead.


Thanks a lot. I was wondering if I had missed an option.

I may have an option to change my LaTeX macros and if it is does not work,
I'll try to derive a new backend.

Fabrice


Re: [O] spreadsheet: empty field should be an empty field.

2014-09-16 Thread Michael Brand
On Tue, Sep 16, 2014 at 1:56 PM, Michael Brand
michael.ch.br...@gmail.com wrote:
 the currently newest released Emacs 23.3.

This was (hopefully obviously) a typo and should have been

the currently newest released Emacs 24.3.

Michael



Re: [O] org-mode-hook not called when entering org files

2014-09-16 Thread Nick Dokos
hob...@poukram.net (Rémi Letot) writes:


 That's the org-mode bundled with my emacs:
 Org-mode version 8.2.6 (release_8.2.6-1 @ /usr/share/emacs/24.4.50/lisp/org/)
 GNU Emacs 24.4.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-08-23 
 on gkar, modified by Debian

 ...

 See above, that's org currently bundled with emacs. I could be coerced
 to try trunk if it has a chance to solve the problem and the test is
 of some use to you, but then i have some docs to read first :-)


OK, it's probably caused by

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17724

then. It's your choice what you want to do: you can wait until it's
fixed in emacs, or you can upgrade. The test is of no use to me: my
org-mode is working :-)

-- 
Nick




[O] Headline text special property

2014-09-16 Thread Brett Witty
Hi,

Is there a special property that contains the text of a headline but not
the stars, todo, tags or any of that other data?

Alternatively, is there a way to clean up %ITEM before giving it to a
column-view?

BrettW


Re: [O] Headline text special property

2014-09-16 Thread Thorsten Jolitz
Brett Witty brettwi...@brettwitty.net writes:

Hi,

 Is there a special property that contains the text of a headline but
 not the stars, todo, tags or any of that other data?

not a property, but functions:

,[ C-h f org-heading-components RET ]
| org-heading-components is a compiled Lisp function in `org.el'.
| 
| (org-heading-components)
| 
| Return the components of the current heading.
| This is a list with the following elements:
| - the level as an integer
| - the reduced level, different if `org-odd-levels-only' is set.
| - the TODO keyword, or nil
| - the priority character, like ?A, or nil if no priority is given
| - the headline text itself, or the tags string if no headline text
| - the tags string, or nil.
`

* TODO Test :mytag:

#+BEGIN_SRC emacs-lisp
(save-excursion
 (outline-previous-heading)
  (nth 4 (org-heading-components)))
#+END_SRC

#+results:
: Test

or 

,[ C-h f org-get-heading RET ]
| org-get-heading is a compiled Lisp function in `org.el'.
| 
| (org-get-heading optional NO-TAGS NO-TODO)
| 
| Return the heading of the current entry, without the stars.
| When NO-TAGS is non-nil, don't include tags.
| When NO-TODO is non-nil, don't include TODO keywords.
`

#+BEGIN_SRC emacs-lisp
(save-excursion
 (outline-previous-heading) 
  (org-get-heading t t)) 
#+END_SRC

#+results:
: Test

-- 
cheers,
Thorsten




[O] resizing windows from an org buffer, reqest for org-shiftcontrolcursor-final-hook

2014-09-16 Thread Brady Trainor



I have

(global-set-key (kbd S-C-left) 'shrink-window-horizontally)
(global-set-key (kbd S-C-right) 'enlarge-window-horizontally)
(global-set-key (kbd S-C-down) 'shrink-window)
(global-set-key (kbd S-C-up) 'enlarge-window)

in my init file, as suggested at 
http://www.emacswiki.org/emacs-en/WindowResize. However, when I am in an 
org file, the binding fails.


I had hoped that (setq org-support-shift-select t) would fix this, but 
it only seems to want to allow selection.


A solution might be similar to the one

;; quick keys for switching windows
(windmove-default-keybindings)
;; fix windmove in org-mode
(add-hook 'org-shiftup-final-hook 'windmove-up)
(add-hook 'org-shiftleft-final-hook 'windmove-left)
(add-hook 'org-shiftdown-final-hook 'windmove-down)
(add-hook 'org-shiftright-final-hook 'windmove-right)

as suggested at http://orgmode.org/manual/Conflicts.html.

Looking at the code in org.el, it seems org-shiftcontrolup and the like 
were not so lucky to get such a final-hook. Can this be added? I am 
currently using package.el org-mode, so I may not immediately get to try 
it out, but would look forward to adding it to my workflow soon.


Or do others have another solution to resizing windows in org-mode?

Brady




Re: [O] Cooperating with oneself using the cloud?

2014-09-16 Thread Martin Schöön
Thanks guys, great response so far.
I now have a lot of options to consider and even though a home server might
be the end game that will have to wait till I have more time to spare.

Those of you into home servers might find this interesting:
http://www.linuxjournal.com/content/raspberry-pi-perfect-home-server

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


[O] TODO items in lists (not headings)

2014-09-16 Thread Gary Oberbrunner
Is there any way to have TODO items in bullet lists rather than headings:

* Meeting report
** Meeting 1
  - a thing that happened
  - another thing that happened
  - TODO: email everyone about all the things
  - some more things that happened

org-mode seems to only allow TODO in headings as far as I can tell.

-- 
Gary


Re: [O] TODO items in lists (not headings)

2014-09-16 Thread Tory S. Anderson
Does the - [ ] form not work for you? They are generally considered the 
equivalent in my experience. C-c checks them. 

Gary Oberbrunner ga...@oberbrunner.com writes:

 Is there any way to have TODO items in bullet lists rather than headings:

 * Meeting report
 ** Meeting 1
   - a thing that happened
   - another thing that happened
   - TODO: email everyone about all the things
   - some more things that happened

 org-mode seems to only allow TODO in headings as far as I can tell.



Re: [O] Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 at /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Charles Berry
Rainer M Krug Rainer at krugs.de writes:

 
 Thanks - you came before me. I get the same error but managed to work 
 around.
 
 This is likely caused by the upgrade of ess, 

Likely.

But it may not be an ESS problem per se. 

M-x R starts a process that runs asynchronously. In interactive use there 
is no issue (barring something in .First() that slows the startup for
a very long time).

But, ...

If the  (rename-buffer ...) in org-babel-R-initiate-session
runs before all the setup that ESS performs in the process buffer is 
complete, chaos can result.

Not sure what the best way is to fix this.

A simple hack to temporarily solve the OP's problem is to force a pause 
before (rename-buffer ...) with (sleep-for 0.1) or something.

HTH,

Chuck




Re: [O] You don't like the HTML export; well, that could change!

2014-09-16 Thread Joseph Vidal-Rosset
Many thanks Fabrice for this very nice html theme. I am going to use it
also.

I cannot use another emacs-theme than your emacs-leuven-theme, and it is
going to be probably the same with your html theme !

Again, thanks !

Jo.

2014-09-15 20:58 GMT+02:00 Fabrice Niessen fni-n...@pirilampo.org:

 Hello,

 I'm announcing the release of Bigblow, a CSS + JS theme for the Org HTML
 exports.

 To use it in your own files, adding these lines should make it:

 --8---cut here---start-8---
 #+HTML_HEAD: link rel=stylesheet type=text/css href=
 http://www.pirilampo.org/styles/bigblow/css/htmlize.css/
 #+HTML_HEAD: link rel=stylesheet type=text/css href=
 http://www.pirilampo.org/styles/bigblow/css/bigblow.css/
 #+HTML_HEAD: link rel=stylesheet type=text/css href=
 http://www.pirilampo.org/styles/bigblow/css/hideshow.css/
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/jquery-1.11.0.min.js;/script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/jquery-ui-1.10.2.min.js
 /script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/jquery.localscroll-min.js
 /script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/jquery.scrollTo-1.4.3.1-min.js
 /script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/jquery.zclip.min.js;/script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/bigblow.js;/script
 #+HTML_HEAD: script type=text/javascript src=
 http://www.pirilampo.org/styles/bigblow/js/hideshow.js;/script
 --8---cut here---end---8---

 If you clone my repo from GitHub [1], it can become as easy as adding
 just one line:

 --8---cut here---start-8---
 #+SETUPFILE: path/to/Git/repo/setup/bigblow-pirilampo.setup
 --8---cut here---end---8---

 (PS- It would be very nice if we could add http references here!  Then,
 there would even be no need to copy the files locally...)

 Test it on your files, or look at the video I posted on YouTube to see
 what it looks like:

   https://www.youtube.com/watch?v=DnSGSiXYuOk

 Best regards,
 Fabrice

 PPS- I will still make some changes in a couple of days, like renaming
  the files so that they have a version number, but that I'll warn
  you when I'll get this done.

 [1] https://github.com/fniessen/org-html-themes

 --
 Fabrice Niessen
 Leuven, Belgium
 http://www.pirilampo.org/





Re: [O] TODO items in lists (not headings)

2014-09-16 Thread Gary Oberbrunner
[Sorry, I'm going to mess up the quoting here because I replied to Tory,
not the list. - gco]

On Tue, Sep 16, 2014 at 4:32 PM, Tory S. Anderson torys.ander...@gmail.com
wrote:

 Does the - [ ] form not work for you? They are generally considered the
 equivalent in my experience. C-c checks them.

 Gary Oberbrunner ga...@oberbrunner.com writes:

  Is there any way to have TODO items in bullet lists rather than headings:
 
  * Meeting report
  ** Meeting 1
- a thing that happened
- another thing that happened
- TODO: email everyone about all the things
- some more things that happened
 
  org-mode seems to only allow TODO in headings as far as I can tell.


Gary replied:
  Hi Tory; I don't think checkboxes (- [ ]) are the same as todo items.
 They don't show up with C-c / t or in the global TODO list, you can't use
regular todo workflows.

Tory:
  Ah; Yeah, you're right. You have a different work flow than I do with
TODO items. What's your reason for not using TODO items themselves?

Gary:
  My reason for not using TODO is just that it'd be ugly and confusing to
put a heading in the middle of a list.

  Compare this:
* Meeting report
** Meeting 1
  - a thing that happened
  - another thing that happened
  - TODO: email everyone about all the things
  - some more things that happened

  to this:
* Meeting report
** Meeting 1
  - a thing that happened
  - another thing that happened
***TODO: email everyone about all the things
  - some more things that happened


Tory:
  Perfect sense; yeah, TODO headers have a tendency to clobber later stuff,
and list stuff doesn't make it into the workflow. Makes good sense.

-- 
Gary


[O] get C-c C-o to act similar to C-x C-j

2014-09-16 Thread Steven Arntson
Can C-c C-o, when invoked on a [file:] link at point jump to the file
in a dired buffer, the way C-x C-j jumps me to a buffer's dired entry?
C-u C-c C-o isn't it, either---I don't want to actually open the file,
just see it in dired so I can do whatever needs to be done with it
(attach to an email, copy to an external drive, etc).

I have a list of video files in this case, and when I do C-c C-o, they
open automatically in VLC. This isn't so useful for me.

Alternatively, are there ways to do such diredlike things as copying,
deleting, attaching, from org mode? If I just need to RTFM here, I'd
apprecaite a nudge in the right direction!

Thank you,
steven arntson




[O] [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 at /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Charles Berry
Charles Berry ccberry at ucsd.edu writes:

 
 Rainer M Krug Rainer at krugs.de writes:
 
  
  Thanks - you came before me. I get the same error but managed to work 
  around.
  
  This is likely caused by the upgrade of ess, 
 
 Likely.
 
 But it may not be an ESS problem per se. 
 
 M-x R starts a process that runs asynchronously. In interactive use there 
 is no issue (barring something in .First() that slows the startup for
 a very long time).
 
 But, ...
 
 If the  (rename-buffer ...) in org-babel-R-initiate-session
 runs before all the setup that ESS performs in the process buffer is 
 complete, chaos can result.
 
 Not sure what the best way is to fix this.


OK. Looks like (ess-wait-for-process) fixes this. Here is a patch.

Chuck
==

From 89472012d80ce9ad4c8722f304c0d29327efa1fc Mon Sep 17 00:00:00 2001
From: chasberry ccbe...@ucsd.edu
Date: Tue, 16 Sep 2014 19:57:59 -0700
Subject: [PATCH] lisp/ob-R.el: use `ess-wait-for-process' to assure clean
 session startup

* lisp/ob-R.el (org-babel-R-initiate-session): Make sure that (R) has
finished before `rename-buffer' is run.

TINYCHANGE
---
 lisp/ob-R.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index 41b943c..7575acf 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -35,6 +35,8 @@
 (declare-function inferior-ess-send-input ext:ess-inf ())
 (declare-function ess-make-buffer-current ext:ess-inf ())
 (declare-function ess-eval-buffer ext:ess-inf (vis))
+(declare-function ess-wait-for-process ext:ess-inf 
+ (optional proc sec-prompt wait force-redisplay))
 (declare-function org-number-sequence org-compat (from optional to inc))
 (declare-function org-remove-if-not org (predicate seq))
 (declare-function org-every org (pred seq))
@@ -262,6 +264,7 @@ This function is called by `org-babel-execute-src-block'.
;; Session buffer exists, but with dead process
(set-buffer session))
  (require 'ess) (R)
+ (ess-wait-for-process)
  (rename-buffer
   (if (bufferp session)
   (buffer-name session)
-- 
1.8.5.2 (Apple Git-48)






Re: [O] TODO items in lists (not headings)

2014-09-16 Thread Thomas S. Dye
Aloha Gary,

Gary Oberbrunner ga...@oberbrunner.com writes:

 Gary:
   My reason for not using TODO is just that it'd be ugly and confusing to
 put a heading in the middle of a list.

   Compare this:
 * Meeting report
 ** Meeting 1
   - a thing that happened
   - another thing that happened
   - TODO: email everyone about all the things
   - some more things that happened

   to this:
 * Meeting report
 ** Meeting 1
   - a thing that happened
   - another thing that happened
 ***TODO: email everyone about all the things
   - some more things that happened

One solution is to use a capture template for TODO items and then refile
them.  I picked this up from Bernt Hansen and like it a lot:

http://doc.norang.ca/org-mode.html#Capture

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com