Re: [O] Bug in export of call lines

2014-03-12 Thread Thomas S. Dye
Eric Schulte schulte.e...@gmail.com writes:

 I think it is allowable for raw results to include newlines.  After if R
 returns a newline, the purpose of raw results is specifically to *not*
 change the result.  I believe the best approach is to customize the
 inline results wrap as above, and then use non-raw processed results
 when inline results without newlines are desired.

 Does this sound reasonable?

I'm able to export my document correctly by removing :results raw from
the R source code blocks.

I can control wrapping of the results by making the calls :results raw,
which removes the wrap. 

I don't see any change in newline behavior by changing
org-babel-inline-result-wrap.

Unlike your shell block, I don't get an extraneous newline.

I only see unexpected behavior with R source code blocks when :results
raw is set at the source code block.

The following tables summarize what I'm seeing.

* Tables of results:noexport:

With %s, modified value of org-babel-inline-result-wrap

#+name: R-results
|| call raw   | call not raw |
|++--|
| source raw | newline| verbatim and newline |
| source not raw | no newline | no newline   |

#+name sh-results
|| call raw   | call not raw |
|++--|
| source raw | no newline | no newline   |
| source not raw | no newline | no newline   |

With =%s=, the default value of org-babel-inline-result-wrap

#+name: R-results-default
|| call raw   | call not raw|
|++-|
| source raw | newline| verbatim and newline, no texttt |
| source not raw | no newline | no newline, texttt  |

#+name sh-results-default
|| call raw   | call not raw   |
|++|
| source raw | no newline | no newline, texttt |
| source not raw | no newline | no newline, texttt |

I'll dig deeper tomorrow to see why my shell source code blocks don't
behave as yours do.  In any case, my document exports again.

Thanks,
Tom

-- 
T.S. Dye  Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] Howto: different faces for begin_src and results

2014-03-12 Thread Miguel Ruiz
Thank you Bastien, Fabrice, Jambunathan.

In the meantime I have discovered org-font-lock-keywords and related.

Miguel.

 -Original Message-
 From: rbeni...@inbox.com
 Sent: Mon, 10 Mar 2014 02:49:08 -0800
 To: emacs-orgmode@gnu.org
 Subject: [O] Howto: different faces for begin_src and results
 
 Hi
 
 I was wondering if it's possible to have different faces for
 #+begin_src/#+end_src and results so distinguishing the blocks is
 easier.
 
 TIA.
 
 
 Protect your computer files with professional cloud backup.
 Get PCRx Backup and upload unlimited files automatically.
 Learn more at http://backup.pcrx.com/mail


Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically. 
Learn more at http://backup.pcrx.com/mail





Re: [O] [PATCH] Change to org-src-preserve-indentation documentation

2014-03-12 Thread Nicolas Goaziou
Hello,

John Hendy jw.he...@gmail.com writes:

 Let me know if you have further suggestions on the change.

It looks good. Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] [OT] document scanner with ADF

2014-03-12 Thread Detlef Steuer
Am Tue, 11 Mar 2014 17:59:59 -0700
schrieb Samuel Wales samolog...@gmail.com:

 We had a great discussion about scanners and ADFs here a while back.
 The Fujitsu ScanSnap 1500 seemed to be a favorite.  We also talked
 about what resolutions to scan at.
 
 What's the current status of document scanners for Linux?  How good
 are the ADFs physically?

FWIW: As a single data point I can tell we have some Epson Workforce 3520 
working around in the department and I´m very surprised by their quality.

(light use)

Detlef

 
 Samuel
 






[O] setq: Symbol's function definition is void: org-add-archive-files

2014-03-12 Thread Rainer Stengele
All,

I not more can calculate a clocktable with

:scope agenda-with-archives

I try to create this clocktable

#+BEGIN: clocktable :maxlevel 0 :fileskip0 t :scope agenda-with-archives :block 
2014-03
#+END:

Error message is:

setq: Symbol's function definition is void: org-add-archive-files

I run

Org-mode version N/A-fixup (N/A-fixup !!check installation!! @ mixed 
installation! c:/emacs-24.3/lisp/org/ and 
c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)
GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601) of 2013-03-14 on VBOX

I see the symbol here:

$ grep -ri   org-add-archive-files .
./lisp/org-agenda.el:(declare-function org-add-archive-files org-archive 
(files))
./lisp/org-agenda.el:   (setq files (org-add-archive-files files)))
./lisp/org-archive.el:(defun org-add-archive-files (files)
./lisp/org-clock.el:(setq scope (org-add-archive-files scope)))
./lisp/org-clock.el:(setq scope (org-add-archive-files (list 
(buffer-file-name)))
./lisp/org.el:(declare-function org-add-archive-files org-archive (files))
./lisp/org.el:(setq scope (org-add-archive-files scope)))
./lisp/org.el:(setq scope (org-add-archive-files (list 
(buffer-file-name))
./lisp/org.el:  (setq files (org-add-archive-files files)))
./lisp/org.el:  (setq files (org-add-archive-files files)))


Can anybody please help finding the reason for that?

Thank you.

Rainer




Re: [O] mark parent of current heading

2014-03-12 Thread Thorsten Jolitz
Matt Price mopto...@gmail.com writes:

 is it possible to mark, not the current subtree, but one level up from
 the current subtree?  I would like to add that level to the org
 bindings for expand-region,

 https://github.com/magnars/expand-region.el/blob/master/the-org-mode-expansions.el

you are probably looking for something more sophisticated, but this
(untested) snippet should do the job when you are on a subheadline:

#+begin_src emacs-lisp
  (save-excursion
(org-up-element)
(org-mark-subtree)))
#+end_src

-- 
cheers,
Thorsten




Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread Sebastien Vauban
Rainer M Krug wrote:
 Ken Mankoff mank...@gmail.com writes:
 On 2014-03-11 at 08:47, zwz wrote:
 In my setup, there is 
 (setq org-export-exclude-tags '(private exclude)

 and In my test.org:

 * test

 ** Not exported:exclude:
#+BEGIN_SRC ditaa :file test.png :cmdline -E
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
   x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 | 
 1 | 1 |
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
#+END_SRC

 ** blah blah
blah blah blah


 When I try to export it to pdf, the test.png is still generated,
 although it is not used for the pdf at all.
 So I think the export procedure may be optimized for more efficiency.

 No, because I often have code and sections I don't want exported, but
 I want their side-effects active. For example, code with sessions
 where part is not exported, but I need that code run so code
 elsewhere, using the same session, is able to run and be exported.

 AFAIK, this depends if you use a session. When you are using a session,
 *all* code blocks are evaluated, if you do not set the header argument
 session, only the ones which are exported are evaluated - precisely the
 reason you give.

We should know if zwz uses a session or not. Because, IIUC, what he
reports is that all code blocks are evaluated, even the ones which are
not exported.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread M
Sorry for asking again, but this issue is still a big problem for me, as I
have to load my settings file manually (open, eval-buffer, close) at each
startup...

 
I'm trying to use a custom setup for `org-mode 8.2` on `Windows 7`, but it
does not work as expected.

Sorry for pushing that, but is very annoying to have to load the file
manually at each startup.
Could anyone tell me if I'm doing something wrong here?
 
 My ´Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29
on MARVIN
 
 What I tried:
  
 
 ## ~/.emacs
 in the file `~/.emacs` I have (among others) those lines:
 
     (if (boundp 'org-mode-user-lisp-path)
     (add-to-list 'load-path org-mode-user-lisp-path)
   (add-to-list 'load-path (expand-file-name
~/org-mode/org_current/lisp)))
     
     (setq default-directory C:/Users/mypath/ )
     (if (boundp 'org-mode-user-contrib-lisp-path)
     (add-to-list 'load-path org-mode-user-contrib-lisp-path)
   (add-to-list 'load-path (expand-file-name
~/org-mode/org_current/contrib/lisp/))
   (add-to-list 'load-path (expand-file-name ~/org-mode/morelisp/)))
     
     (require 'icicles)
     (require 'dired+)
     (require 'org)
     (require 'bookmark+)
     
     (load org)
 
 and later
 
     (load C:/Users/mypath/org-config/myname_orgmodeconfig.el)
 
  
 
 ## C:/Users/mypath/org-config/myname_orgmodeconfig.el
 
 contains
 
 
 
     (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ .
org-mode))
     
     ;; Standard key bindings
     (global-set-key \C-cl 'org-store-link)
     (global-set-key \C-ca 'org-agenda)
     
     (if (boundp 'org-user-agenda-files)
     (setq org-agenda-files org-user-agenda-files)
   (setq org-agenda-files (quote (~/org
  
 
 So I try to use all org-files in the path `~/org` as agenda files.
 
 When I launch `emacs`, I get the following result in the `*Messages`
buffer:
 
     Turning OFF Icicle mode...done
     Turning ON Icicle mode...done
     Turning OFF Icicle mode...done
     Turning ON Icicle mode...done
     Turning ON Icicle mode...done
     Turning OFF Icicle mode...done
     Loading c:/Users/mypath/org-mode/org_current/lisp/org.el
(source)...done
     Loading c:/Users/mypath/org-config/myname_orgmodeconfig.el
(source)...done
     Loading paren...done
     For information about GNU Emacs and the GNU system, type C-h C-a.
 
 
 
 # The Problem
 
 So I assume, as the file `myname_orgmodeconfig.el` has been loaded, all
the elisp code inside should have been executed and it should have also set
my agenda files.
 
  
 
 **However, the list of agenda files is empty after startup.
 When I then _manually_ ofen the file `myname_orgmodeconfig.el` and execute
the command `eval-buffer`, everything is fine.**
 
 How can I fix that?
 
Kind regards

Martin






[O] Can I use an already defined agenda view in another agenda command?

2014-03-12 Thread M
Hi,

Is there a way to first create an agenda command with basic settings and
then reuse and extend those settings in another agenda?

Example:
first create a weekly agenda overview-10d, which can be invoked e. g. with
C-c a a, that shows all deadlines for the next 10 days

then create another agenda overview-today which loads the same settings
like all items, but only shows the deadlines until today.

Goals: 
- Later changes in overview-10d will also be used in overview-today.
- Standard settings can be defined once and then used in different other
agendas.

Kind regards

Martin






Re: [O] org-edit-special cannot tell ditaa from table

2014-03-12 Thread zwz
Thomas Holst thomas.ho...@de.bosch.com writes:

 Hi,

  zwz zhangwe...@gmail.com wrote:

 Here is an example:

 * test
 #+BEGIN_SRC ditaa
   ++  +-+
   ||  | |
   ||  | |
   ++  +-+
 #+END_SRC
 When I hit C-c ', the minibuffer says Recognizing tables...done,
 and the org src scratch buffer does not turn picture-mode on.

 I had the same problem. If you insert a blank line at top of the ditaa
 block and hit C-c ' with point in that line artist mode comes up. At
 least for me.

 HTH
Yes, same here.
And I also find that it works when the point is in the line
#+BEGIN_SRC without an extra blank line.




Re: [O] org-edit-special cannot tell ditaa from table

2014-03-12 Thread zwz
Thomas Holst thomas.ho...@de.bosch.com writes:

 Hi,

  zwz zhangwe...@gmail.com wrote:

 Here is an example:

 * test
 #+BEGIN_SRC ditaa
   ++  +-+
   ||  | |
   ||  | |
   ++  +-+
 #+END_SRC
 When I hit C-c ', the minibuffer says Recognizing tables...done,
 and the org src scratch buffer does not turn picture-mode on.

 I had the same problem. If you insert a blank line at top of the ditaa
 block and hit C-c ' with point in that line artist mode comes up. At
 least for me.

 HTH
Yes, same here.
And I also find that it works when the point is in the line
#+BEGIN_SRC without an extra blank line.




Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Sebastien Vauban sva-n...@mygooglest.com
writes:

 Rainer M Krug wrote:
 Ken Mankoff mank...@gmail.com writes:
 On 2014-03-11 at 08:47, zwz wrote:
 In my setup, there is 
 (setq org-export-exclude-tags '(private exclude)

 and In my test.org:

 * test

 ** Not exported:exclude:
#+BEGIN_SRC ditaa :file test.png :cmdline -E
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
   x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 
 | 1 | 1 |
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
#+END_SRC

 ** blah blah
blah blah blah


 When I try to export it to pdf, the test.png is still generated,
 although it is not used for the pdf at all.
 So I think the export procedure may be optimized for more efficiency.

 No, because I often have code and sections I don't want exported, but
 I want their side-effects active. For example, code with sessions
 where part is not exported, but I need that code run so code
 elsewhere, using the same session, is able to run and be exported.

 AFAIK, this depends if you use a session. When you are using a session,
 *all* code blocks are evaluated, if you do not set the header argument
 session, only the ones which are exported are evaluated - precisely the
 reason you give.

 We should know if zwz uses a session or not. Because, IIUC, what he
 reports is that all code blocks are evaluated, even the ones which are
 not exported.

 Best regards,
   Seb
I checked my org settings, and did not found anything about session.
And here is the options in the file:
#+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t

Is session turned on by default?




Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Ken Mankoff mank...@gmail.com writes:

 Hi Andreas,

 On 2014-03-11 at 09:41, Andreas Leha wrote:
 Hi Ken,

 Ken Mankoff mank...@gmail.com writes:

 On 2014-03-11 at 08:47, zwz wrote:
 In my setup, there is 
 (setq org-export-exclude-tags '(private exclude)

 and In my test.org:

 * test

 ** Not exported:exclude:
#+BEGIN_SRC ditaa :file test.png :cmdline -E
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
   x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 
 | 1 | 1 |
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
#+END_SRC

 ** blah blah
blah blah blah


 When I try to export it to pdf, the test.png is still generated,
 although it is not used for the pdf at all.
 So I think the export procedure may be optimized for more efficiency.

 No, because I often have code and sections I don't want exported, but
 I want their side-effects active. For example, code with sessions
 where part is not exported, but I need that code run so code
 elsewhere, using the same session, is able to run and be exported.

   -k.


 So what is your suggestion for the OP to achieve what he is after?
 noexport and noeval at the same time.


 I do not have a suggestion. I'm not very familiar with the various
 options, and didn't know noeval exists. That sounds like a good
 solution. The OP suggestion of may be optimized is vague, but I took
 it, perhaps incorrectly, to mean don't run code in noexport
 sections, hence my disagreement.

   -k.

I totally get you.
As I was not aware of the fact that it is session related, I used the
vague phrase.
Now I just want to know how to turn off session for some source block. 




Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Rainer M Krug rai...@krugs.de writes:

 Ken Mankoff mank...@gmail.com writes:

 On 2014-03-11 at 08:47, zwz wrote:
 In my setup, there is 
 (setq org-export-exclude-tags '(private exclude)

 and In my test.org:

 * test

 ** Not exported:exclude:
#+BEGIN_SRC ditaa :file test.png :cmdline -E
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
   x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 | 
 1 | 1 |
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
#+END_SRC

 ** blah blah
blah blah blah


 When I try to export it to pdf, the test.png is still generated,
 although it is not used for the pdf at all.
 So I think the export procedure may be optimized for more efficiency.

 No, because I often have code and sections I don't want exported, but
 I want their side-effects active. For example, code with sessions
 where part is not exported, but I need that code run so code
 elsewhere, using the same session, is able to run and be exported.

 AFAIK, this depends if you use a session. When you are using a session,
 *all* code blocks are evaluated, if you do not set the header argument
 session, only the ones which are exported are evaluated - precisely the
 reason you give.

 Rainer


   -k.



In my example, I did not set the header argument session, and variable
org-babel-default-header-args has the value:
 (:results . replace)
 (:exports . code)
 (:cache . no)
 (:noweb . no)
 (:hlines . no)
 (:tangle . no))
However, the block still runs.




[O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Alan Schmitt
Hello,

I'm playing with manipulating some data in org-mode format from the
command line (OK, I admit that I'm playing with acme).

I'm wondering if there is a tool, or a way to call emacs, to do the
following:

- get some data in org-mode format from stdin
- nicely format the text
- spit the result on stdout

I tried using pandoc -t org but the results are not satisfactory,
especially in the presence of lists inside lists. For instance, I would
like to convert:

#+begin_example
- This is a very long line. This is a very long line. This is a very long line. 
This is a very long line.
  - This is a very long line. This is a very long line. This is a very long 
line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This is a 
very long line. This is a very long line.
#+end_example

into this

#+begin_example
- This is a very long line. This is a very long line. This is a very
  long line. This is a very long line.
  - This is a very long line. This is a very long line. This is a very
long line. This is a very long line.
  - This is a yet another very long line. This is a very long line. This
is a very long line. This is a very long line.
#+end_example

Do you have tools or an approach using emacs (as a command line tool) to
suggest?

Thanks,

Alan



Re: [O] tabs inserted in code blocks

2014-03-12 Thread John Hendy
On Mar 11, 2014 11:21 PM, Nick Dokos ndo...@gmail.com wrote:

 Stephen J. Barr stev...@uw.edu writes:

  Hello,
 
  I have the following code block in an org-mode file:
 
 

 
  #+CAPTION: Matlab Dynamic Programming Solution
  #+LABEL: code:matlab-outer-loop-reference
  #+BEGIN_SRC octave
Normal_BuildT = realmax * ones(T, i_max, j_max);
for i=(1:i_max)
for j=(1:j_max)
Normal_BuildT(T,i,j) = compute_cell_final(i,j);
end
end
 
for t=((T-1):-1:1)
for i=(1:i_max)
for j=(1:j_max)
   Normal_BuildT(t,i,j) = compute_cell(t,i,j,
Normal_BuildT(t+1,:,:));
end
end
end
  #+END_SRC
 
 

 
  I am exporting this to LaTeX, which gives me the following code.
  See that there are tab characters inserted before the lines with
Normal_BuildT.
  This is causing minted to render with these strange ^^I characters.
 
 

 
  \begin{listing}[H]
  \begin{minted}[]{octave}
  Normal_BuildT = realmax * ones(T, i_max, j_max);
  for i=(1:i_max)
  for j=(1:j_max)
Normal_BuildT(T,i,j) = compute_cell_final(i,j);
  end
  end
 
  for t=((T-1):-1:1)
  for i=(1:i_max)
for j=(1:j_max)
   Normal_BuildT(t,i,j) = compute_cell(t,i,j,
Normal_BuildT(t+1,:,:));
end
  end
  end
  \end{minted}
  \caption{\label{code:matlab-outer-loop-reference}Matlab Dynamic
Programming Solution}
  \end{listing}
 
 

 
  How do I disable this behavior?
 

 Untested and not sure it'll work: (setq indent-tabs-mode nil) or perhaps
 (setq-default indent-tabs-mode nil) - in the latter case, you might have
 to turn it on in specific modes. You will also have to restart emacs.


Would org-src-preserve-indentation be relevant?

John

 --
 Nick




[O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz

Hi List, 

while 

,-
| M-x org-display-outline-path 
`-

works as expected for me, neither

,---
| M-: (org-display-outline-path)
`---

nor

,---
| M-: (call-interactively 'org-display-outline-path)
`---

return what they should. Can anybody confirm this?

How is this function supposed to be called from another program? Why
does it have (interactive P) if the prefix arg is never used? Or do I
simply miss something important here?

-- 
cheers,
Thorsten





Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread John Hendy
 In my example, I did not set the header argument session, and variable
 org-babel-default-header-args has the value:
  (:results . replace)
  (:exports . code)
  (:cache . no)
  (:noweb . no)
  (:hlines . no)
  (:tangle . no))
 However, the block still runs.

I wanted to try and reproduce this, as I thought I had the *opposite*
issue previously. I was correct, granted it was on Org  8.0:
- http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00762.html

Code in :noexport: sections was not running, and I wanted to know how
I could get it to run (and I even had a :session argument). I took a
stab at your document with R and can't reproduce (behavior is the same
as in my post above). /However/, I get the same with you using ditaa,
even with no :session argument. Test file:

* Trying with R
Uses no =:session= argument; =R-yes.png= should be be created and
=R-no.png= should not.

** Don't run this   :noexport:

#+header: :file ./R-no.png :height 200
#+begin_src R :results output graphics

x - 1:10
y - x^2
plot(x,y)

#+end_src

** Run this

#+header: :file ./R-yes.png :height 200
#+begin_src R :results output graphics :exports results

x - 1:10
y - x^2
plot(x,y)

#+end_src
* Trying with ditaa

Uses no =:session= argument; =ditaa-yes.png= should be be created and
=ditaa-no.png= should not.

** Don't run this   :noexport:

#+BEGIN_SRC ditaa :file ./ditaa-no.png :cmdline -E
++---+---+---+---+---+---+---+  +---+---+---+---+---+---+---+---+
x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
++---+---+---+---+---+---+---+  +---+---+---+---+---+---+---+---+
#+END_SRC

** Run this

#+BEGIN_SRC ditaa :file ditaa-yes.png :cmdline -E
++---+---+---+---+---+---+---+  +---+---+---+---+---+---+---+---+
x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
++---+---+---+---+---+---+---+  +---+---+---+---+---+---+---+---+
#+END_SRC

And here's my minimal config:

;; change accordingly
(add-to-list 'load-path ~/.elisp/org.git/lisp/)
(add-to-list 'load-path ~/.elisp/org.git/contrib/lisp)
(add-to-list 'load-path ~/.elisp/site-lisp/ess/lisp/)

(require 'ox-latex)

(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
(ditaa . t)))


So, I can reproduce, but the behavior is not the same with R. My
directory ends up with R-yes.png, and both ditaa-no.png *and*
ditaa-yes.png. Is there a way to track down the source of the
difference?


John



Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Hi Thorsten,

Thorsten Jolitz tjol...@gmail.com writes:

 How is this function supposed to be called from another program? Why
 does it have (interactive P) if the prefix arg is never used? Or do I
 simply miss something important here?

I think you miss the fact that it displays a path only if the headline
is not a top-level headline.

HTH,

-- 
 Bastien



Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Bastien
Hi Alan,

Alan Schmitt alan.schm...@polytechnique.org writes:

 Do you have tools or an approach using emacs (as a command line tool) to
 suggest?

I would call emacs in batch mode, applying some Elisp code to fill
each element.  See `org-forward-element' and `org-fill-paragraph'.

HTH,

-- 
 Bastien



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread Bastien
M elwood...@web.de writes:

  (load org)

Replace this with (require 'org)

And make sure (1) you have been running ~$ make (or ~$ make autoloads)
in your Org directory.

If this does not work, please use M-x org-version RET and report the
exact version number.

Thanks,

-- 
 Bastien



Re: [O] setq: Symbol's function definition is void: org-add-archive-files

2014-03-12 Thread Bastien
Rainer Stengele rainer.steng...@online.de writes:

 Org-mode version N/A-fixup (N/A-fixup !!check installation!! @ mixed
^^
Did you run ~$ make or ~$ make autoloads?

-- 
 Bastien



Re: [O] mark parent of current heading

2014-03-12 Thread Bastien
Matt Price mopto...@gmail.com writes:

 is it possible to mark, not the current subtree, but one level up from
 the current subtree?

Interactively, this would be

C-c C-^ M-h

if point is on the headline,

C-c C-^ C-c C-^ M-h

if point is within the subtree.

HTH,

-- 
 Bastien



Re: [O] Export problem with #+BEGIN_EXAMPLE block

2014-03-12 Thread Bastien
Hi Christian,

Christian Wittern cwitt...@gmail.com writes:

 The following minimal example shows a problem I have with export (tested 
 with 8.25 from git and the one bundled in Emacs 24.3.1):

Can you run M-x org-version RET just to give the full version number?
This helps spotting possible installation problems.

 #+OPTIONS: toc:nil ^:nil
 * Page numbers
The page number is given in the following form:
 #+BEGIN_EXAMPLE
 pb:ZB6i0076_T_0537a
 #+END_EXAMPLE

 Whatever I do, neither an export to HTML nor to PDF shows the part within 
 the example block.  In the real file, there is in fact a part of the text 
 after the example also falling out, but I tried to remove everything to make 
 a minimal example.  Any ideas what might wrong here are welcome.

Weird, I can export this well with Emacs 24.3/Org 7.9.3e and latest
Emacs/Org.

Please try to reproduce the problem with a bare emacs -q and by just
loading your Org config.

Thanks,

-- 
 Bastien



Re: [O] [PATCH] Update documentation for :exports (applicable to blocks only, not inline)

2014-03-12 Thread Bastien
Hi John,

John Hendy jw.he...@gmail.com writes:

 Feel free to counter my changes with suggestions/improvements and I'll
 re-submit.

Looks good, except for the trailing whitespaces on a line.

Can you resubmit this with a proper ChangeLog entry?

Thanks!

-- 
 Bastien



Re: [O] Bug -- Tag with space

2014-03-12 Thread Bastien
Hi David,

David Masterson dsmaster...@gmail.com writes:

 Had that suspicion which is why I didn't file it as an official bug.  I
 ran across this when setting up org-toodledo which will sync Org tasks
 with Toodledo tasks.  Org-toodledo treats Toodledo Contexts as Org Tags
 (with a prepended '@') and Toodledo allows Contexts with spaces.

 Something to add to the documentation...

I suggest we instead tell org-toodledo maintainers to convert spaces
in Toodledo contexts into underscore.  Can you do this?

Thanks,

-- 
 Bastien



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread John Hendy
On Mar 12, 2014 10:17 AM, Bastien b...@gnu.org wrote:

 M elwood...@web.de writes:

   (load org)

 Replace this with (require 'org)

 And make sure (1) you have been running ~$ make (or ~$ make autoloads)
 in your Org directory.


I thought requiring org wasn't required anymore?

John

 If this does not work, please use M-x org-version RET and report the
 exact version number.

 Thanks,

 --
  Bastien



Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Alan Schmitt
Bastien b...@gnu.org writes:

 Hi Alan,

 Alan Schmitt alan.schm...@polytechnique.org writes:

 Do you have tools or an approach using emacs (as a command line tool) to
 suggest?

 I would call emacs in batch mode, applying some Elisp code to fill
 each element.  See `org-forward-element' and `org-fill-paragraph'.

Thanks a lot for the suggestion, it works. I did not use
`org-forward-element' as it does not iterate on sub-items. I simply do
a `forward-line' to go done.

Here is the code, if it's helpful to others.

--8---cut here---start-8---
#!/usr/local/bin/emacs --script
;;-*- mode: emacs-lisp;-*-

;; Found at http://superuser.com/a/487329/155265 from question
;; 
https://superuser.com/questions/31404/how-to-make-emacs-read-buffer-from-stdin-on-start

(require 'org)

(with-temp-buffer
  (progn
; read the file in the temporary buffer
; do not add a \n at the end
(condition-case nil
(let ((line (read-from-minibuffer )))
  (insert line)
  (while (setq line (read-from-minibuffer ))
(insert \n)
(insert line)))
(error nil))
; do what you want here
(goto-char (point-min))
(while ( (point) (point-max))
  (org-fill-paragraph)
  (forward-line))
(princ (buffer-string
--8---cut here---end---8---

Thanks again,

Alan



Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes:

Hi Bastien,

 Thorsten Jolitz tjol...@gmail.com writes:

 How is this function supposed to be called from another program? Why
 does it have (interactive P) if the prefix arg is never used? Or do I
 simply miss something important here?

 I think you miss the fact that it displays a path only if the headline
 is not a top-level headline.

Not really, on the same 2nd level headline calling it with M-x and M-:
give different messages, and only in the first case a useful one. 

With point at start of ** 2nd level

#+begin_src org
* 1st level
Hello 
** 2nd level
Work
#+end_src

,-
| Eval: (org-display-outline-path)
| Eval: (call-interactively 'org-display-outline-path)
`-

both print this in the message buffer

,--
| byte-code: End of buffer
| #(1st level 0 9 (face org-level-1))
`--

while using M-x shows the string 1st Level as expected.

-- 
cheers,
Thorsten




Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Bastien
Alan Schmitt alan.schm...@polytechnique.org writes:

 Here is the code, if it's helpful to others.

Thanks for sharing this!

-- 
 Bastien



Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Thorsten Jolitz tjol...@gmail.com writes:

 both print this in the message buffer

 ,--
 | byte-code: End of buffer
 | #(1st level 0 9 (face org-level-1))
 `--

 while using M-x shows the string 1st Level as expected.

There is no problem here.

#(1st level 0 9 (face org-level-1))

is just the internal representation of a fontified string.

Or am I missing something?

-- 
 Bastien



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread Bastien
John Hendy jw.he...@gmail.com writes:

 I thought requiring org wasn't required anymore?

Yes, it is not required, but better than (load org).

-- 
 Bastien



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread Jambunathan K
M elwood...@web.de writes:

 have to load my settings file manually (open, eval-buffer, close) at
 each startup...

By hand, do

   M-x load-file RET path-to-file RET

Now after you have done this, do

  M-x list-command-history RET

And copy-paste the relevant portion to your .emacs.  That is all.  No
need to mess with load-path.



Here is what I get, when I follow the above sequence on one of my files.

(load-file ~/.emacs.d/lisp/hx.el)



[O] [PATCH] org.el (org-delete-property): Remove bogus properties

2014-03-12 Thread Oleh
Hi all,

Can someone have a look at this patch and check it in?

It fixes `org-delete-property` offering to delete CATEGORY property although
it's not present. Also skip completion when there's only one candidate.

regards,
Oleh
From ad4415a4cbf67955c636b8a3384f3163cac61462 Mon Sep 17 00:00:00 2001
From: Oleh Krehel ohwoeo...@gmail.com
Date: Wed, 12 Mar 2014 17:11:12 +0100
Subject: [PATCH] org.el (org-delete-property): Remove bogus properties

* lisp/org.el (org-delete-property): Don't offer to delete CATEGORY
  property, since it's not really there. If there's only one property
  to delete, don't call `org-icompleting-read'.
---
 lisp/org.el | 15 +--
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2f3820f..3a64d1d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15895,13 +15895,16 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (org-icompleting-read Property: 
-  (org-entry-properties nil 'standard
- (list prop)))
+	 (props (org-remove-if
+		 (lambda (x) (string= (car x) CATEGORY))
+		 (org-entry-properties nil 'standard
+ (if (= 1 (length props))
+	 (list (caar props))
+   (list (org-icompleting-read Property:  props)
   (message Property %s %s property
-	   (if (org-entry-delete nil property)
-	   deleted
-	 was not present in the entry)))
+	 (if (org-entry-delete nil property)
+	 deleted
+	 was not present in the entry)))
 
 (defun org-delete-property-globally (property)
   Remove PROPERTY globally, from all entries.
-- 
1.8.4



Re: [O] Single Search Hit and Quick Jump

2014-03-12 Thread Bastien
Hi Esben,

Esben Stien b...@esben-stien.name writes:

 Now, If I f.ex do C-c a s corge, I get multiple hits, but I really only
 search for level 3 items always. Is there any way to restrict the search
 to only level 3 items?

You can have a custom agenda command like this one:

(setq org-agenda-custom-commands
   '((c Level 3 courge tags +LEVEL=3
  ((org-agenda-regexp-filter-preset '(+corge))

 Also, when I find a result, I want to jump to the last item in that
 tree, so if I search for corge, I want to end up with point on the
 level 4 item  garply

You can hack around `org-agenda-after-show-hook'.

HTH,

-- 
 Bastien



[O] [FYI] Outshine can now do Tags and Todo's and more ...

2014-03-12 Thread Thorsten Jolitz

Hi List, 

by adding a soft-dependency to outorg.el and a generic function
`outshine-use-outorg', it is now possible to call all kinds of Org-mode
functionality from an outshine buffer (i.e. a source-code buffer with
outline-minor-mode and outshine extensions enabled).

Its a first version, so not everything works, but here is an example of
what can be done:

Assume point is on headline *** Point in a (PicoLisp) outshine buffer:

#+begin_src picolisp
## *** Point
## :LOGBOOK:
## CLOCK: [2014-03-12 Mi 17:02]--[2014-03-12 Mi 17:09] =  0:07
## CLOCK: [2014-03-12 Mi 16:02]--[2014-03-12 Mi 16:06] =  0:04
## :END:

## A Point is a 0-dimensional geometry and represents a single location
## in coordinate space. A Point has a x- coordinate value and a
## y-coordinate value.

(dm x ()
   () ) # return Double (x-coordinate)
#+end_src

Then outshine-speed-commands 

,
| , A RET
`

will produce

#+begin_src org
## *** [#A] Point
## :LOGBOOK:
#+end_src

and outshine-speed-command

,--
| 2
`--

will change it to 

#+begin_src org
## *** [#B] Point
## :LOGBOOK:
#+end_src

because of this code in outshine.el:

#+begin_src emacs-lisp
(defconst outshine-speed-commands-default
  '(
(Outline Navigation)
(n . (outshine-speed-move-safe
'outline-next-visible-heading))
(p . (outshine-speed-move-safe
'outline-previous-visible-heading))
;; [...]
(Meta Data Editing)
(t . (outshine-use-outorg 'org-todo))
(, . (outshine-use-outorg 'org-priority))
(0 . (outshine-use-outorg (lambda () (org-priority ?\ 
(1 . (outshine-use-outorg (lambda () (org-priority ?A
(2 . (outshine-use-outorg (lambda () (org-priority ?B
(3 . (outshine-use-outorg (lambda () (org-priority ?C
;; [...] ))
#+end_src

that will look very familar to Org-mode users, since it is copied and
adapted from there.

I think there is great potential for this, one should be able to clock
in and out, set todos and priorities etc etc directly in all kinds of
(outshine-structured) source-code buffers - using the existing Org-mode
functionality, without rewriting anything. So I wanted to let you know.

PS 

No doubt there will be many cases where things don't work out of the box
right now, since I just started to code this today, but with time there
will be hacks and fixes that will enable more and more Org-functionality
in outshine buffers.

-- 
cheers,
Thorsten




Re: [O] Insert TODO Item at Bottom

2014-03-12 Thread Bastien
Hi Esben,

Esben Stien b...@esben-stien.name writes:

 ** foo
 *** TODO 1
 *** TODO 2
 *** TODO 3

 If I stand on foo and hit a key combination, I want to insert a new
 TODO at the bottom of the current node, so that it becomes TODO 4

When point is on foo,

C-c C-_ C-u C-u S-M-RET

will do it.

Otherwise you can check `org-insert-heading-hook'.

HTH,

-- 
 Bastien



Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes:

 Thorsten Jolitz tjol...@gmail.com writes:

 both print this in the message buffer

 ,--
 | byte-code: End of buffer
 | #(1st level 0 9 (face org-level-1))
 `--

 while using M-x shows the string 1st Level as expected.

 There is no problem here.

 #(1st level 0 9 (face org-level-1))

 is just the internal representation of a fontified string.

I know, but...

 Or am I missing something?

can you write a function (not a command) that calls this function, and
you see in the minibuffer what you expect?

#+begin_src emacs-lisp
  (defun callOrgDisplay ()
(call-interactively 'org-display-outline-path))
#+end_src

#+results:
: callOrgDisplay

#+begin_src org
* 1st Level
** 2nd Level 
#+end_src

,-
| M-: (callOrgDisplay)
`-

with point on the second level headline shows that internal string
representation. Only if I make `callOrgDisplay' itself a command by
adding (interactive) and call it with M-x, the string without properties
is shown.

-- 
cheers,
Thorsten




Re: [O] [PATCH] Support for links to Ebib's entries

2014-03-12 Thread Bastien
Hi Greg,

Daimrod daim...@gmail.com writes:

 I've attached a small patch to support links (opening and storing) to
 Ebib's[1] entries.

 Can I integrate it?

Sure, please go ahead, thanks!

-- 
 Bastien



Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Bastien
Thorsten Jolitz tjol...@gmail.com writes:

 ,-
 | M-: (callOrgDisplay)
 `-

 with point on the second level headline shows that internal string
 representation. Only if I make `callOrgDisplay' itself a command by
 adding (interactive) and call it with M-x, the string without properties
 is shown.

... yes, that's on purpose.  In a program, the output of the
non-interactive version will be a string: you can safely ignore
text properties of this string if you want to further process it.

-- 
 Bastien



[O] Is anyone spending money for Org-mode?

2014-03-12 Thread Carsten Dominik
Dear all,

I am still receiving donations for Org-mode, even though right now I am
only formally the maintainer of Org (it is very difficult to make time free
for me, currently).  I would like to pass donations on to someone here who
has expenses related to Org, because this does not feel right anymore.

We used to have to pay for webhosting (which was generously donated by
Jason), but dreamhost is hosting us now for free.  Therefore i am not aware
of any costs beyond the $15/yr I am paying for the domain.  Please let me
know if you know a good way to spend donations at this moment.

- Carsten


Re: [O] [bug] #+constants line has to be at column 0

2014-03-12 Thread Bastien
Hi Eric,

Eric S Fraga e.fr...@ucl.ac.uk writes:

 Unlike some other #+ directives, the #+constants: one has to be at
 column 0 or else it is not understood/parsed by org.

This is the same behavior than all #+ directives except these four:

#+TITLE: 
#+AUTHOR: 
#+DATE: 
#+EMAIL:

Fontification should tell you in all cases.

HTH,

-- 
 Bastien



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread John Hendy
On Wed, Mar 12, 2014 at 11:14 AM, Bastien b...@gnu.org wrote:
 John Hendy jw.he...@gmail.com writes:

 I thought requiring org wasn't required anymore?

 Yes, it is not required, but better than (load org).

Great -- just making sure I'm not goofing my own setup. Looks like he
actually has both:

#+begin_quote
 (require 'icicles)
 (require 'dired+)
 (require 'org)
 (require 'bookmark+)

 (load org)
#+end_quote

John


 --
  Bastien



Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-12 Thread Bastien
Hi Arun,

Arun Persaud apers...@lbl.gov writes:

 I tried to fix this in org. It seems to work over here, but my elisp as
 well as my understanding of org-mode is not perfect ;) Let me know if it
 needs more work.

Applied, thanks!

-- 
 Bastien



Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Joost Helberg
Carsten,

back in the time when me and my friend created and sold the Snow Linux
Distribution, we donated all excess money to the FSF.

This was 20 years ago, but I think the FSF serves as much a purpose
then as it does nowadays.

regards,

Joost Helberg

 Carsten == Carsten Dominik carsten.domi...@gmail.com writes:
  From: Carsten Dominik carsten.domi...@gmail.com
  To: org-mode list emacs-orgmode@gnu.org
  Subject: [O] Is anyone spending money for Org-mode?
  Date: 12-Mar-14 18:53

  Dear all,

  I am still receiving donations for Org-mode, even though right now I am
  only formally the maintainer of Org (it is very difficult to make time free
  for me, currently).  I would like to pass donations on to someone here who
  has expenses related to Org, because this does not feel right anymore.

  We used to have to pay for webhosting (which was generously donated by
  Jason), but dreamhost is hosting us now for free.  Therefore i am not aware
  of any costs beyond the $15/yr I am paying for the domain.  Please let me
  know if you know a good way to spend donations at this moment.

  - Carsten

-- 
Snow B.V.




Re: [O] M-: (org-display-outline-path) doesn't work correctly

2014-03-12 Thread Thorsten Jolitz
Bastien b...@gnu.org writes:

 Thorsten Jolitz tjol...@gmail.com writes:

 ,-
 | M-: (callOrgDisplay)
 `-

 with point on the second level headline shows that internal string
 representation. Only if I make `callOrgDisplay' itself a command by
 adding (interactive) and call it with M-x, the string without properties
 is shown.

 ... yes, that's on purpose.  In a program, the output of the
 non-interactive version will be a string: you can safely ignore
 text properties of this string if you want to further process it.

Ok, I see ...  that seems to be a common pattern in Org-mode to make
functions behave differently if called (non-)interactively, that
sometimes causes confusion when using M-: instead of M-x.

-- 
cheers,
Thorsten




Re: [O] [bug] #+constants line has to be at column 0

2014-03-12 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 This is the same behavior than all #+ directives except these four:

 #+TITLE: 
 #+AUTHOR: 
 #+DATE: 
 #+EMAIL:

 Fontification should tell you in all cases.

Most user-defined keywords ignore indentation
(e.g., #+LATEX_HEADER:, #+MACRO: ...).

I think we should remove this historical limitation, as there is no
reason to keep it any longer. The benefit is that such a change will be
backward compatible.


Regards,

-- 
Nicolas Goaziou



Re: [O] [bug] #+constants line has to be at column 0

2014-03-12 Thread Bastien
Hi Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 I think we should remove this historical limitation, as there is no
 reason to keep it any longer. The benefit is that such a change will be
 backward compatible.

Agreed, please go ahead,

-- 
 Bastien



Re: [O] [PATCH] org.el (org-delete-property): Remove bogus properties

2014-03-12 Thread Bastien
Hi Oleh,

Oleh ohwoeo...@gmail.com writes:

 Can someone have a look at this patch and check it in?

I applied a different patch, things are a bit more complicate:
(org-get-category) always returns a non-empty string (at least
after `org-refresh-category-properties' as been called once),
while (org-entry-get (point) CATEGORY) is the real check we
need to perform.

Thanks for raising this!

-- 
 Bastien



Re: [O] org-edit-special cannot tell ditaa from table

2014-03-12 Thread Bastien
Hi,

zwz zhangwe...@gmail.com writes:

 When I hit C-c ', the minibuffer says Recognizing tables...done,
 and the org src scratch buffer does not turn picture-mode on.

This should be fixed now, thanks for reporting this.

-- 
 Bastien



Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Thorsten Jolitz
Joost Helberg jo...@snow.nl writes:

 back in the time when me and my friend created and sold the Snow Linux
 Distribution, we donated all excess money to the FSF.

 This was 20 years ago, but I think the FSF serves as much a purpose
 then as it does nowadays.

Wouldn't it be a better idea to compensate those who currently maintain
Org-mode informally, i.e. who still keep things (and the mailing list)
running and responsive?

I would suggest to pass donations to Bastien and/or anybody who is
actually doing the job of a maintainer, even if not with full
intensity, to compensate him/them for time and effort. 

 Carsten == Carsten Dominik carsten.domi...@gmail.com writes:
   From: Carsten Dominik carsten.domi...@gmail.com
   To: org-mode list emacs-orgmode@gnu.org
   Subject: [O] Is anyone spending money for Org-mode?
   Date: 12-Mar-14 18:53

   Dear all,

   I am still receiving donations for Org-mode, even though right now I am
   only formally the maintainer of Org (it is very difficult to make
   time free
   for me, currently).  I would like to pass donations on to someone
   here who
   has expenses related to Org, because this does not feel right anymore.

   We used to have to pay for webhosting (which was generously donated by
   Jason), but dreamhost is hosting us now for free.  Therefore i am
   not aware
   of any costs beyond the $15/yr I am paying for the domain.  Please
   let me
   know if you know a good way to spend donations at this moment.


-- 
cheers,
Thorsten




Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Achim Gratz
Carsten Dominik writes:
 I am still receiving donations for Org-mode, even though right now I
 am only formally the maintainer of Org (it is very difficult to make
 time free for me, currently). I would like to pass donations on to
 someone here who has expenses related to Org, because this does not
 feel right anymore.

 We used to have to pay for webhosting (which was generously donated by
 Jason), but dreamhost is hosting us now for free. Therefore i am not
 aware of any costs beyond the $15/yr I am paying for the domain.
 Please let me know if you know a good way to spend donations at this
 moment.

That's an interesting problem to have... :-)

Since Org certainly builds on Emacs, there's always the possibility to
see if Emacs' folks could need some support.  If package manager would
grow up to deal correctly with packages as large and complex as Org and
actually install them correctly without horrible workarounds, that would
certainly be something that Org would benefit from enormously.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Bastien
Hi Carsten and all,

Achim Gratz strom...@nexgo.de writes:

 That's an interesting problem to have... :-)

FWIW I support Joost proposal to donate to the FSF.

But I'd be interested to know if Emacs maintainers accept donations.
If they do, I'd split donations between FSF and Emacs maintainers.

 Since Org certainly builds on Emacs, there's always the possibility to
 see if Emacs' folks could need some support.  If package manager would
 grow up to deal correctly with packages as large and complex as Org and
 actually install them correctly without horrible workarounds, that would
 certainly be something that Org would benefit from enormously.

Well... yes, except I doubt we can make such a targetted donation.
(I would love to, though.)

-- 
 Bastien



Re: [O] `org-attach-file-list' doesn't allow dotfiles

2014-03-12 Thread Bastien
Hi Oleh,

Oleh ohwoeo...@gmail.com writes:

 I wanted to store this file as an attachment in an org document, so I
 don't forget about it, but this attachment can't be opened due
 to `org-attach-file-list` ignoring all files that start with a dot.

I'm copying John to this email, to see if there is any reason why
files starting with a dot cannot be attached.

Otherwise the change looks okay to me.

Thanks,

-- 
 Bastien



Re: [O] Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]

2014-03-12 Thread Bastien
Hi Michael,

Michael Brand michael.ch.br...@gmail.com writes:

 On Sat, Mar 1, 2014 at 12:13 PM, Bastien b...@gnu.org wrote:
 I see.  The following patch fixes it but it's just a quick try,
 I need to review possible side-effects more carefully.  In the
 meantime, if you can confirm it works for you, that'd help.

 The patch works, thank you. I'll continue to use it.

I've now applied this patch, thanks for testing it so far.

-- 
 Bastien



Re: [O] org-table can't narrow

2014-03-12 Thread Bastien
Hi Rasmus,

Rasmus ras...@gmx.us writes:

 Is it a feature that the second column doesn't narrow?  I don't
 recognize it as a feature from

 http://orgmode.org/org.html#Column-width-and-alignment

 On the other hand it could be a technical limitation.

Yes, it is a technical limitation.  I may have a look later on.

Thanks,

-- 
 Bastien



Re: [O] Incorrect hexification in URLs in LaTeX Export

2014-03-12 Thread Bastien
R. Michael Weylandt michael.weyla...@gmail.com
michael.weyla...@gmail.com writes:

 I've tried this with Org 7.9.3 and 8.2.5h to the same result:

 --
 #+TITLE: Test
 * One
 Here is a [[http://google.com/search?q=orgmode][link]]
 --

 Exporting to HTML doesn't transform the link but exporting to LaTeX
 results in the (non-working) http://google.com/search?%3Dorgmode

I think this is now fixed in master.  Can anyone confirm this?

-- 
 Bastien



Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Sebastien Vauban
Hello Carsten,

 I am still receiving donations for Org-mode, even though right now I am
 only formally the maintainer of Org (it is very difficult to make time free
 for me, currently).  I would like to pass donations on to someone here who
 has expenses related to Org, because this does not feel right anymore.

I'd say that Bastien and Nicolas should be in that list, for sure.

 We used to have to pay for webhosting (which was generously donated by
 Jason), but dreamhost is hosting us now for free.  Therefore i am not aware
 of any costs beyond the $15/yr I am paying for the domain.  Please let me
 know if you know a good way to spend donations at this moment.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] How do I make org-mode columnview show all file results?

2014-03-12 Thread Bill Harris
I'm trying to create a set of files that describe project data and have a
column view block in a summary file, but the columnview is only picking up
one project, and I need it to pick up all.

P1.org and P2.org are two sample project files, and MasterP.org is the
summary file.

P1.org:

#+COLUMNS: %15PROJ(Project) %35ITEM(Task) %Start %End %8Effort{+} %TODO

* Tasks
  :PROPERTIES:
  :ID:   simple
  :PROJ: P1
  :END:

** TODO Phase 1 :testbed:
   :PROPERTIES:
   :End:  [2014-03-19 Wed]
   :Start:[2014-03-11 Tue]
   :END:
** TODO Phase 2 :testbed:
   :PROPERTIES:
   :Start:[2014-03-20 Tue]
   :Effort:   32h
   :End:  [2014-04-01 Tue]
   :END:
** TODO Phase 3 :testbed:
   :PROPERTIES:
   :Start:[2014-04-02 Fri]
   :Effort:   20h
   :End:  [2014-04-11 Fri]
   :END:

P2.org:

#+COLUMNS: %15PROJ(Project) %35ITEM(Task) %Start %End %8Effort{+} %TODO

* Tasks
  :PROPERTIES:
  :ID:   simple
  :PROJ: P2
  :END:

** TODO Phase A :testbed:
   :PROPERTIES:
   :Start:[2014-03-24 Mon]
   :Effort:   10h
   :End:  [2014-03-24 Mon]
   :END:
** TODO Phase B :testbed:
   :PROPERTIES:
   :Start:[2014-04-23 Wed]
   :Effort:   10h
   :End:  [2014-04-23 Wed]
   :END:

** TODO Phase C :testbed:
   :PROPERTIES:
   :Start:[2014-05-13 Tue]
   :Effort:   10h
   :End:  [2014-05-13 Tue]
   :END:

MasterP.org:

When I execute MasterP.org with C-c C-c, I get:

#+COLUMNS: %15PROJ(Project) %35ITEM(Task) %Start %End %8Effort{+} %TODO

* Table
#+BEGIN: columnview :hlines 1 :id simple
| Project | Task | Start| End
| Effort | TODO |
|-+--+--+--++--|
| P2  | * Tasks  |  |
| 30.0   |  |
| | ** Phase A :testbed: | [2014-03-24 Mon] | [2014-03-24 Mon]
| 10h| TODO |
| | ** Phase B :testbed: | [2014-04-23 Wed] | [2014-04-23 Wed]
| 10h| TODO |
| | ** Phase C :testbed: | [2014-05-13 Tue] | [2014-05-13 Tue]
| 10h| TODO |
#+END:

I want to see the data for P1, too, with the total effort at least being
summed by project. If I could also get the total effort across projects, so
much the better!

What do I need to change?

I discovered it works if I have unique :id entries for P1.org and P2.org
and then create two tables in MasterP.org. While that could work, it does
lead to two refinements to the question: how can I merge the two tables,
and is there a way to do it without distinct :id entries?

Thanks,

Bill

-- 
Bill Harris
http://facilitatedsystems.com/weblog/


[O] data tables produced by shell source block

2014-03-12 Thread Ken Mankoff

The babel sh example here:
http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-execution
 
says (and shows), Babel automatically converts the output into an
Org-mode table.. When I run that same code 

#+name: directories
#+begin_src sh :results replace
  cd ~  du -sc * |grep -v total
#+end_src

I do not get a table. Rather, I get the results in two columns and a
#+begin_example

#+RESULTS: directories
#+begin_example
etc

Can anyone provide a working example for generating a table in shell
mode that can then be used with Python code?

Thanks,

  -k.




Re: [O] data tables produced by shell source block

2014-03-12 Thread Ken Mankoff

Ohp. Nevermind. Sorry for the noise. I have a default of :results
output, and when I set :results value it works.

  -k.


On 2014-03-12 at 16:08, Ken Mankoff wrote:
 The babel sh example here:
 http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-execution
  
 says (and shows), Babel automatically converts the output into an
 Org-mode table.. When I run that same code 

 #+name: directories
 #+begin_src sh :results replace
   cd ~  du -sc * |grep -v total
 #+end_src

 I do not get a table. Rather, I get the results in two columns and a
 #+begin_example

 #+RESULTS: directories
 #+begin_example
 etc

 Can anyone provide a working example for generating a table in shell
 mode that can then be used with Python code?

 Thanks,

   -k.




Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Xebar Saram
+1 for Bastien for what its worth (im a relatively neewb but Bastien has
been truly epic in helping new users)

best

Z


On Wed, Mar 12, 2014 at 9:32 PM, Sebastien Vauban
sva-n...@mygooglest.comwrote:

 Hello Carsten,

  I am still receiving donations for Org-mode, even though right now I am
  only formally the maintainer of Org (it is very difficult to make time
 free
  for me, currently).  I would like to pass donations on to someone here
 who
  has expenses related to Org, because this does not feel right anymore.

 I'd say that Bastien and Nicolas should be in that list, for sure.

  We used to have to pay for webhosting (which was generously donated by
  Jason), but dreamhost is hosting us now for free.  Therefore i am not
 aware
  of any costs beyond the $15/yr I am paying for the domain.  Please let me
  know if you know a good way to spend donations at this moment.

 Best regards,
   Seb

 --
 Sebastien Vauban





Re: [O] [bug] #+constants line has to be at column 0

2014-03-12 Thread Nicolas Goaziou
Bastien b...@gnu.org writes:

 Agreed, please go ahead,

Done.


Regards,

-- 
Nicolas Goaziou



Re: [O] data tables produced by shell source block

2014-03-12 Thread Thomas S. Dye
Aloha Ken,

Running emacs -Q, initialized to point to an up-to-date Org mode, this
works for me.

I evaluate this source code block so babel recognizes shell source code
blocks:

#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
 'org-babel-load-languages
 '((sh . t)))
#+END_SRC

#+RESULTS:
| (sh . t) |

Then run the directories source code block to get this:

#+RESULTS: directories
|   184 | Documents  |
|548528 | Downloads  |
|   3852088 | Library|
|  10208696 | Mail   |
| 0 | Movies |
...

Perhaps you have something in an initialization file?

hth,
Tom

Ken Mankoff mank...@gmail.com writes:

 The babel sh example here:
 http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-execution
  
 says (and shows), Babel automatically converts the output into an
 Org-mode table.. When I run that same code 

 #+name: directories
 #+begin_src sh :results replace
   cd ~  du -sc * |grep -v total
 #+end_src

 I do not get a table. Rather, I get the results in two columns and a
 #+begin_example

 #+RESULTS: directories
 #+begin_example
 etc

 Can anyone provide a working example for generating a table in shell
 mode that can then be used with Python code?

 Thanks,

   -k.




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



Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread William Denton
How much money is coming in?  Might there be something that could be paid for 
that would be helpful, such as getting professionally done subtitles/captions on 
one of the videos?  Or something else that's in the class of tasks that someone 
could volunteer to do but if it's possible to spend a bit of money to get it 
really well done then it ends up being worth it.  I have no strong opinion about 
the money but wanted to mention this as a possible idea.


My continuing thanks to Bastien, Nicholas, Carsten and everyone else for such 
amazing work on Org!


Bill
--
▮ William Denton ▮ Toronto, Canada ▮ http://www.miskatonic.org/ ▮

Re: [O] Single Search Hit and Quick Jump

2014-03-12 Thread Esben Stien
Bastien b...@gnu.org writes:

 You can have a custom agenda command like this one:

 (setq org-agenda-custom-commands
'((c Level 3 courge tags +LEVEL=3
   ((org-agenda-regexp-filter-preset '(+corge))

Yeah, that works nicely;), but it's a hardcoded search string. How would
you pass a search string, like C-c a s? I looked at org-search-view, but
got lost pretty quick. 

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] Insert TODO Item at Bottom

2014-03-12 Thread Esben Stien
Bastien b...@gnu.org writes:

 When point is on foo,
 C-c C-_ C-u C-u S-M-RET

I wonder if my terminal blocks the shift:

M-x describe-key S-M-RET

..gives me: 

C-M-j runs the command org-insert-todo-heading, which is an
interactive compiled Lisp function in `org.el'.

I'm running emacs -nw -q in terminal inside gnome-terminal.

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread Ilya Shlyakhter

On 3/12/14 2:14 PM, Joost Helberg wrote:

back in the time when me and my friend created and sold the Snow Linux
Distribution, we donated all excess money to the FSF.


If people wanted to give to the FSF, they would have done it directly.
I've donated to Org in the past not to defray expenses but as a small 
token of thanks to Carsten  the principal maintainers.  Putting the 
donations to whatever personal use they want was the intention.






Re: [O] Org Bash Utils

2014-03-12 Thread Esben Stien
OSiUX xu...@osiux.com.ar writes:

 Try: org-clock | org-timeline

 https://github.com/osiris/org-bash-utils

Yeah, that's wicked coolness;) Thanks for thanks. 

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] Google + org-mode agenda? can it be done?

2014-03-12 Thread Dror Atariah
It seems like the function org-export-icalendar-combine-agenda-files (as 
discussed in the first link provided by @Matt) has to be replace with 
org-icalendar-combine-agenda-files when working with a new version of org. Am 
I right?

Cheers,
Dror
On Mar 5, 2014, at 22:50 PM, Matt Lundin wrote:

 Sharon Kimble boudic...@talktalk.net writes:
 
 Can the google calendar work with org-mode agenda please? I haven't
 seen any indication that it can be done when I've been googling around.
 But I thought that I would ask anyway. 
 
 Synchronization is not seamless, but it can be accomplished with some
 setup. See:
 
 http://orgmode.org/worg/org-tutorials/org-google-sync.html
 
 And on the same tack, can google tasks work with org-modes TODO lists
 please?
 
 This tool does bi-directional synchronization (org-files - google
 tasks). Note: it synchronizes files, not the agenda's todo list.
 
 https://bitbucket.org/edgimar/michel-orgmode
 
 Matt



Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread Andreas Leha
Hi zwz,

zwz zhangwe...@gmail.com writes:

 Ken Mankoff mank...@gmail.com writes:

 Hi Andreas,

 On 2014-03-11 at 09:41, Andreas Leha wrote:
 Hi Ken,

 Ken Mankoff mank...@gmail.com writes:

 On 2014-03-11 at 08:47, zwz wrote:
 In my setup, there is 
 (setq org-export-exclude-tags '(private exclude)

 and In my test.org:

 * test

 ** Not exported:exclude:
#+BEGIN_SRC ditaa :file test.png :cmdline -E
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
   x   | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 |  | 0 | 0 | 0 | 0 | 1 | 0 
 | 1 | 1 |
   ++---+---+---+---+---+---+---+  
 +---+---+---+---+---+---+---+---+
#+END_SRC

 ** blah blah
blah blah blah


 When I try to export it to pdf, the test.png is still generated,
 although it is not used for the pdf at all.
 So I think the export procedure may be optimized for more efficiency.

 No, because I often have code and sections I don't want exported, but
 I want their side-effects active. For example, code with sessions
 where part is not exported, but I need that code run so code
 elsewhere, using the same session, is able to run and be exported.

   -k.


 So what is your suggestion for the OP to achieve what he is after?
 noexport and noeval at the same time.


 I do not have a suggestion. I'm not very familiar with the various
 options, and didn't know noeval exists. That sounds like a good
 solution. The OP suggestion of may be optimized is vague, but I took
 it, perhaps incorrectly, to mean don't run code in noexport
 sections, hence my disagreement.

   -k.

 I totally get you.
 As I was not aware of the fact that it is session related, I used the
 vague phrase.
 Now I just want to know how to turn off session for some source block. 


That can be done with ':session none'.

- Andreas




Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-12 Thread Charles Berry
Bastien bzg at gnu.org writes:

 
 Hi Arun,
 
 Arun Persaud apersaud at lbl.gov writes:
 
  I tried to fix this in org. It seems to work over here, but my elisp as
  well as my understanding of org-mode is not perfect ;) Let me know if it
  needs more work.
 
 Applied, thanks!
 


Bastien,

This seems to have broken org-edit-src-exit. :-(

I cannot figure out what triggers it (hence no ECM), but I sometimes get an
'End of buffer' error from inside the while loop.

I cannot exit the src edit buffer until I revert org-edit-src-exit to its
old version.

HTH,

Chuck




Re: [O] Export problem with #+BEGIN_EXAMPLE block

2014-03-12 Thread Christian Wittern

Hi Bastien,

On 2014-03-13, 00:22, Bastien wrote:

Weird, I can export this well with Emacs 24.3/Org 7.9.3e and latest
Emacs/Org.

Please try to reproduce the problem with a bare emacs -q and by just
loading your Org config.

Thank you for your help.

Now I can report that I succeeded getting the expected output with org-mode 
8.25a and 7.93f.  However, with my own setup, which is loading 8.25a, I 
still get the disappearing example block.  Now I have no idea where to look 
for the culprit. Do you have any suggestion at how to proceed with the 
investigation?  I am not consciously doing anything with the export settings 
at all, but I have used org for 8 years now, so something might have crept 
in during that time...


All the best,

Christian

--
Christian Wittern, Kyoto




Re: [O] [PATCH] Update documentation for :exports (applicable to blocks only, not inline)

2014-03-12 Thread John Hendy
Whoops, completely glossed over the ChangeLog bit of the patch
submission guide. Sorry about that; I'll resubmit shortly.

The trailing whitespace is the result of my texi ignorance. In a
previous patch, Nicolas clarified that sentences needed to end in two
spaces, and I add them at the end of my last sentence thinking they
might be required to identify a new next bit. Understanding now that
an endline/carriage return is sufficient and the spaces are not
needed.


Thanks,
John

On Wed, Mar 12, 2014 at 10:23 AM, Bastien b...@gnu.org wrote:
 Hi John,

 John Hendy jw.he...@gmail.com writes:

 Feel free to counter my changes with suggestions/improvements and I'll
 re-submit.

 Looks good, except for the trailing whitespaces on a line.

 Can you resubmit this with a proper ChangeLog entry?

 Thanks!

 --
  Bastien



Re: [O] [PATCH] Support for links to Ebib's entries

2014-03-12 Thread Daimrod
Bastien b...@gnu.org writes:

 Hi Greg,

 Daimrod daim...@gmail.com writes:

 I've attached a small patch to support links (opening and storing) to
 Ebib's[1] entries.

 Can I integrate it?

 Sure, please go ahead, thanks!

Done.

Best,
-- 
Daimrod/Greg



Re: [O] Strange newline characters in org-export-as-html

2014-03-12 Thread Grant Rettke
Nick, thanks for looking.

After upgrading to the latest Org release 8.2.5h I did narrow it down
to fci-mode being activated in lisp mode manifesting the issue.

https://github.com/alpaker/Fill-Column-Indicator


On Mon, Mar 10, 2014 at 12:14 AM, Nick Dokos ndo...@gmail.com wrote:
 Grant Rettke g...@wisdomandwonder.com writes:

 This is the simplest example:

 #+BEGIN_SRC emacs-lisp
 (message Hello, world.)
 #+END_SRC


 This  gives me:

 pre class=src src-emacs-lisp(message span style=color: 
 #ffa07a;Hello, world./span)
 /pre

 so it's probably some setting of yours. Try with emacs -q and a minimal
 .emacs file perhaps?

 On Sun, Mar 9, 2014 at 11:09 PM, Grant Rettke g...@wisdomandwonder.com 
 wrote:
 Hi,

 Org version 7.9.3f with Emacs version 24. Running org-export-as-html.
 Have these options:

 #+TITLE: Creation and conservation of computer files (C3F)
 #+AUTHOR: Grant Rettke
 #+EMAIL: g...@wisdomandwonder.com
 #+DESCRIPTION: A literate programming style exposition of my Emacs 
 configuration
 #+KEYWORDS: Literate Programming, Reproducible Research, Programming
 Language, Lisp, Elisp, IDE, Emacs, Babel, org-mode
 #+LANGUAGE: en

 Just noticed tonight that in my exported source blocks, mostly
 emacs-lisp, wherever there is a newline in the code, I get the
 following
 sequence exported for example this:

   (setq auto-mode-alist
 (append
  '((\\.scm\\' . scheme-mode)

 becomes

 pre class=src src-emacs-lisp(setq 
 auto-mode-alist#57344;#57345;#57345;
   (append#57344;#57345;#57345;
'((span style=color: #2aa198;\\.scm\\'/span .
 scheme-mode)#57344;#57345;#57345;

 which looks like this

 Auto Modes 83
 (setq auto-mode-alist
   (append
'((\\.scm\\' . scheme-mode)
  (\\.rkt\\' . scheme-mode)

 In a web browser, those block line things are not what I expect.

 Thoughts:
 1. My org document is using unicode symbols. Perhaps this is a bad thing.
 2. I have wrong export as html settings.
 3. I'm missing something.

 Thoughts?

 Regards,

 --
 Grant Rettke | ACM, AMA, COG, IEEE
 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --Thompson

 --
 Nick





-- 
Grant Rettke | ACM, AMA, COG, IEEE
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] Creation and conservation of computer files (C3F)

2014-03-12 Thread Grant Rettke
Wanting to learn literate programming in org-mode I figured that my Emacs
configuration would be the simplest place to start. In that regard I was
right, it just took a lot more work then I had expected, and that is OK. It
was a non-trivial effort and I learned a lot. In my mind, the door is now
wide open to utilize literate programming; the org-mode team has truly
unleashed an amazing gift to the world and it may take the world some time
to really understand and appreciate it.

My configs and document follow; the first one, C3F.html, is the
human-readable document:

http://www.wisdomandwonder.com/article/8284/creation-and-conservation-of-computer-files-c3f


[O] Octave/Matlab Code Export Issue?

2014-03-12 Thread Phil Regier
I'm having trouble with Octave export, and I am not quite sure where to look.

In an Org file I have the following:

   #+BEGIN_SRC octave
 a = [1;3;5;7;9]
 b = [2;4;6;8]
 ans=a;
   #+END_SRC octave

When exporting to LaTeX I get the following:

\#+BEGIN\_SRC octave
  a = [1;3;5;7;9]
  b = [2;4;6;8]
  ans=a;
\#+END\_SRC octave

The style is consistent whether I export to LaTeX (buffer or PDF) or HTML; I've 
tried 'matlab' in lieu of 'octave', and various :results and :exports 
combinations, and I always get the literal output of the org syntax itself for 
the code, though I get a proper verbatim block of output contents when I export 
results.  'sh' and 'latex' blocks work properly (as do 'org' and 'awk' in other 
documents), exporting code and results alike without passing Org markup 
through, but this issue persists with octave on older and newer (emacs 24.3.1 
with org 8.2.5h) builds.  I've set the usual execution confirmation options and 
added matlab and octave to the loaded languages, and even disabled 
super/subscript rendering, all through customize, and even tried wiping out my 
.emacs and starting over just in case.

I've tried poking around the source but I don't know what I'm looking for; I 
don't see direct references to export/publish in ob-octave, and ox is way 
beyond me, I'm afraid.  Can anyone guess either what I'm doing wrong or where I 
might start looking look for such a language-specific, non-option-specific, 
non-backend-specific export glitch?

Thanks for any suggestions...

Phil



[O] [RFC] Association list between major-mode-names and babel identifiers

2014-03-12 Thread Thorsten Jolitz

Hi List, 

due to the relatively frequent mismatches between language names
extracted from major-mode names and language identifiers used by
Org-Babel I try to build the definite translation alist between both
names. 

To avoid checking myself by hand what 

,---
| M-: major-mode RET
`---

really returns in all those modes, I would like to ask those who
actually use these languages for help. Here is the list of languages
that needs to be completed: 


|+++-+--|
| Language   | Requirements   | Identifier | M-: major-mode  | checked? 
|
|+++-+--|
| ABC| abcm2ps, abc-mode  | abc| |  
|
|+++-+--|
| Asymptote  | asymptote, asy-mode| asymptote  | |  
|
|+++-+--|
| Awk| awk| awk| |  
|
|+++-+--|
| C  | none   | C  | c-mode  | X
|
|+++-+--|
| C++| none   | cpp| c++-mode| X
|
|+++-+--|
| Calc   | none   | calc   | |  
|
|+++-+--|
| Clojure| Clojure, Clojure Mode, | clojure| |  
|
|| CIDER, Leiningen   || |  
|
|+++-+--|
| CSS| none   | css| |  
|
|+++-+--|
| D  | D  | D  | d-mode  | X
|
|+++-+--|
| Ditaa  | ditaa (bundled with| ditaa  | |  
|
|| Org-mode)  || |  
|
|+++-+--|
| Dot| dot| dot| |  
|
| (Graphviz) ||| |  
|
|+++-+--|
| Emacs Lisp | none   | emacs-lisp | emacs-lisp-mode | X
|
|+++-+--|
| Eukleides  | eukleides  | eukleides  | |  
|
||| (contrib)  | |  
|
|+++-+--|
| Fomus  | fomus (music notation) | fomus  | |  
|
||| (contrib)  | |  
|
|+++-+--|
| Fortran| fortran| F90| |  
|
|+++-+--|
| Gnuplot| gnuplot, gnuplot-mode  | gnuplot| |  
|
|+++-+--|
| Groovy | Emacs-Groovy-Mode  | groovy | |  
|
||| (contrib)  | |  
|
|+++-+--|
| Haskell| haskell, haskell-mode, | haskell| |  
|
|| inf-haskell, lhs2tex   || |  
|
|+++-+--|
| J  | J, j-mode  | J  | |  
|
|+++-+--|
| Java   | java   | java   | |  
|
|+++-+--|
| Javascript | node.js| js | |  
|
|+++-+--|
| Julia  | ess| julia  | |  
|
||| (contrib)  | |  
|

Re: [O] [RFC] Association list between major-mode-names and babel identifiers

2014-03-12 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes:

 due to the relatively frequent mismatches between language names
 extracted from major-mode names and language identifiers used by
 Org-Babel I try to build the definite translation alist between both
 names. 

 To avoid checking myself by hand what 

 ,---
 | M-: major-mode RET
 `---

 really returns in all those modes, I would like to ask those who
 actually use these languages for help. Here is the list of languages
 that needs to be completed: 


 |+++-+--|
 | Language | Requirements | Identifier | M-: major-mode | checked? |
 |+++-+--|
 | ABC | abcm2ps, abc-mode | abc | | |


too bad, that table did not make it to the mailing list keeping its
format ...

so here is the association list with mostly *unchecked* major-mode names
I made up purely by gut-feeling (those actually checked have an ; behind
them:

#+begin_src emacs-lisp
  (defconst outorg-language-name-assocs
'((abc-mode . abc)
  (asymptote-mode . asymptote)
  (awk-mode . awk)
  (c-mode . C)  ;
  (c++-mode . cpp)  ;
  (calc-mode . calc)
  (clojure-mode . clojure)
  (css-mode . css)
  (d-mode . D)  ;
  (ditaa-mode . ditaa)
  (dot-mode . dot)
  (emacs-lisp-mode . emacs-lisp);
  (eukleides-mode . eukleides)
  (fomus-mode . fomus)
  (fortran-mode . F90)
  (gnuplot-mode . gnuplot)
  (groovy-mode . groovy)
  (haskell-mode . haskell)
  (j-mode . J)
  (java-mode . java)
  (javascript-mode . js)
  (julia-mode . julia)
  (latex-mode . latex)
  (ledger-mode . ledger)
  (lilypond-mode . ly)
  (lisp-mode . lisp)
  (make-mode . makefile)
  (mathomatic-mode . mathomatic)
  (matlab-mode . matlab)
  (maxima-mode . max)
  (mscgen-mode . mscgen)
  (objective-caml-mode . ocaml)
  (octave-mode . octave)
  (org-mode . org)  ;
  (oz-mode . oz)
  (perl-mode . perl)
  (picolisp-mode . picolisp);
  (plantuml-mode . plantuml)
  (python-mode . python)
  (ess . R) ;
  (ruby-mode . ruby)
  (sass-mode . sass)
  (scala-mode . scala)
  (scheme-mode . scheme)
  (shen-mode . shen)
  (shell-mode . sh)
  (sql-mode . sql)
  (sqlite-mode . sqlite)
  (tcl-mode . tcl))
  Associations between major-mode-names and org-babel language
  names.)
#+end_src


-- 
cheers,
Thorsten