[O] BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results

2012-03-07 Thread A . Major
Hi, I'm trying to set up my .org file such that export commands create all results in a certain directory rather than the directory containing the .org file. So I've added the option #+BIND: org-export-publishing-directory /tmp/export-test at the beginning of the file, which seems to work

Re: [O] BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results

2012-03-07 Thread A . Major
Christian Moe mail at christianmoe.com writes: On Wed, 7 Mar 2012 12:38:48 + (UTC), A Major said: Even worse, if the .org file uses Babel to create files (say, in PNG format) as a result (via ditaa, graphviz, etc.), then these files end up in the directory

Re: [O] automatic tangle

2012-01-17 Thread András Major
Thanks Eric, Thanks a lot for the quick reply. Any chances of this being incorporated into Org-Mode in the near future? András On 1/14/12, Eric Schulte eric.schu...@gmx.com wrote: András Major andras.g.ma...@gmail.com writes: Hi Sebastien, I have the impression it's already

[O] automatic tangle

2012-01-11 Thread András Major
Hi fellows, I've just discovered that I'm missing a feature in org-mode. These days I write much of my code in an Org buffer and tangle it into a set of source files. Currently, I follow a rather cumbersome procedure when making changes to the code: 1. I change the Org file using the C-cC-c

Re: [O] automatic tangle

2012-01-11 Thread András Major
Hi Sebastien, I have the impression it's already there: if you edit your code directly in the Org buffer, without opening an indirect buffer, the only thing you have to do is: That's precisely what I want to avoid. I'd like to use the language-specific indentation and highlighting using the

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-31 Thread András Major
Hi Eric, Can you post an example? Here is a working example. In your example, simply write asymptote in place of sh and replace the code by size(100); just to make sure it's valid asymptote (though the error occurs even if you don't). In fact, I'm quite sure that asy never gets executed in

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-30 Thread András Major
Hi Eric, This is already possible, see Indexable variable values [1]. Just tried, without success. Using the example from my original post, I appended [,0] as per the manual to use the first column only, and when I execute the code block, org throws an error Wrong type argument: listp, 0.

[O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-29 Thread Major A
\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

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-29 Thread András Major
Hi Nicolas, I'd like to use asymptote to plot the values in an Org table. The table has cells with numbers but also cells with strings in them. This table gets converted to an array of strings in the resulting asymptote file, with the strings escaped with double-quotes but not the

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-29 Thread András Major
Hi Nick, I don't know anything about asymptote and I am not sure whether this will help: it does produce a temp file with everything quoted and running asy on the temp file produces an .eps file that contains the diagonal line, but it produces a png file which seems somewhat peculiar to me

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-29 Thread András Major
Why? You can always write an intermediary step to stringify every cell. Choose your language. Nick Dokos showed you one way. Apparently, only if you set a global/per-user option in .emacs or suchlike, which I think is a bad way of doing it. Why isn't it possible to force ob-asymptote to make

Re: [O] Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table

2011-08-29 Thread András Major
Hi Eric, Given that asymptote can not make use of heterogeneous tables, it seems that it would be easiest to simply silently converted any table containing a single string element to a table of all strings. I've just applied your previous patch (thanks for the patch!). If this proves

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-24 Thread András Major
Hi Tom, To me, the documentation is the leading specification of a piece of software. Anything the software doesn't do that is in the docs is a bug, but likewise anything it does do which the docs don't cover is also a bug. Aloha Andras, As an avocational programmer who has had the

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-24 Thread András Major
Eric Schulte schulte.eric at gmail.com writes: Are you /sure/ that this doesn't work for you? On my system C-c C-e A in the following attached org-mode file (posted earlier in this thread) I've just pulled the code again, now it seems to work. I'm not sure what went wrong last night

Re: [O] Bug: Babel: haskell code evaluation inconsistency [7.7 (release_7.7.160.g3e33)]

2011-08-23 Thread András Major
Hi Eric, I personally don't have time to make these changes right now, but I'd be happy to provide guidance and answer questions to anyone who wanted to try to submit a patch. Also, there are a number of files which can serve as examples of how to compile and execute code with Babel e.g.,

[O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
\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

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Sebastian, I will let answer the ones who decide on such things. Though, I am amazed you put a tag on the table itself. I'd have expected the noexport tag to be on a section containing the table. I forgot to mention in the report that of course I tried that too: if I place the table and

[O] Bug: named columns in tables not working if name contains _

2011-08-23 Thread András Major
Hi, Yet another one I just stumbled across: if I create a table and use ! in the first column to assign names to the columns, I can only reference those columns by name in #+TBLFM: if the names don't contain a _ character. This isn't mentioned in the docs and shouldn't be so, IMHO. I haven't

Re: [O] Bug: named columns in tables not working if name contains

2011-08-23 Thread András Major
Try adding an underscore to the regexp on line 2179 of org-table.el - something like this (untested): ... (if (string-match ^[a-zA-Z][a-zA-Z0-9_]*$ name) (push (cons name (int-to-string cnt)) org-table-column-names The only characters permitted are

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Eric, This is the first time I've seen a tag applied to a table. I've updated the results regular expression so that it will now admit examples like yours above. Please let me know if this doesn't work with the latest Org-mode. That's good news! Well, the bad news is that it doesn't

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Eric, That's good news! Well, the bad news is that it doesn't work. I've just pulled the current version (release_7.7.174.g63fae) and now the behaviour is different: - :noexport: in the #+tblname: has no effect. I'm not sure that it is legal to apply tags to tables, so I'm not

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Bastien, I'm not sure I understand -- does it mean that C-cC-c on #+begin_src fails in the example below? No, it means that exporting to HTML fails with that error message. It should actually evaluate the code and include the resulting PNG in the output (and that's what it does when

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Bastien, I think that anything that works despite being designed and documented otherwise is confusing to the user and should be considered a bug. I'm happy that it no longer works and hope that it stays that way. I think tags are clearly documented as being properties of the

Re: [O] Bug: :noexport: tag prevents table functioning as babel code block input [7.7 (release_7.7.167.gfceb)]

2011-08-23 Thread András Major
Hi Eric, Your file uses #+data: where I use #+tblname: -- which one is the official one? I have the impression that it's #+data:, but I haven't come across that in the manual or elsewhere before. If #+tblname: isn't supposed to be used as a target for a variable in the code block,

[O] Bug: babel: results switch (output vs. value) has no or wrong effect for sh source block [7.7 (release_7.7.107.g7a82)]

2011-08-19 Thread Andras Major
) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) 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

[O] Wishlist: LaTeX export: automatically append backslash to . unless at end of sentence

2011-08-19 Thread Andras Major
Hi, in TeX and LaTeX, the width of the glue (blank space) after a . can be one of two different values, depending on the context. There is always a longer space between sentences than after a . that doesn't mark the end of a sentence (abbreviations, dates, etc.). Since TeX/LaTeX usually can't

[O] Wishlist: allow range of table elements to be filled by sbe

2011-08-19 Thread András Major
Hi, I'd like to use a babel code block to fill a table with values. The sbe elisp function looks like the right thing for this task, but it appears that the result of the code block always goes into a single cell of a table. I can specify ranges of values, but then the entire output is placed

[O] Bug: column names in tables cannot be used as target in table formula [7.7 (release_7.7.107.g7a82)]

2011-08-19 Thread András Major
-modifiers) 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

Re: [O] Bug: babel: results switch (output vs. value) has no or wrong effect for sh source block [7.7 (release_7.7.107.g7a82)]

2011-08-19 Thread András Major
Hi Eric, If we did return the value of shell scripts then :results value would almost always simply return 0 (or possibly an error message). For this reason shell code blocks do not implement value returns, but rather will always collect results from STDOUT. I think that this unnecessarily

Re: [O] Wishlist: allow range of table elements to be filled by sbe

2011-08-19 Thread András Major
Hi Eric, sbe is just an elisp function which is called by the Org-mode spreadsheet's function evaluation mechanisms. The spreadsheet does not allow for insertion of results into multiple cells and thus neither does the use of sbe. Hmmm. It appears that one can make sbe set multiple cells

[O] Bug: Babel: haskell :results options output and value work contrary to docs [7.7 (release_7.7.107.g7a82)]

2011-08-19 Thread András Major
-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5

[O] Bug: Babel: haskell code evaluation inconsistency [7.7 (release_7.7.160.g3e33)]

2011-08-19 Thread Major A
-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode

[O] Babel woes

2011-08-17 Thread Andras Major
Hi everyone, I've been trying to use org-mode for report generation lately, and haven't really succeeded. Here's a list of issues I encounter: - Babel offers a way of generating a code block from the output or value of a code block. That new block, however, is forced to the same language as

Re: [O] making coloured tables

2011-08-01 Thread Andras Major
, not for PDF in the way I've just described. András On 8/1/11, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Andras, Andras Major wrote: Andras Major wrote: I'm really intrigued by org-mode's table and spreadsheet functionality and would like to use it for those cases where I found

Re: [O] making coloured tables

2011-07-31 Thread Andras Major
Hi Sebastian, Andras Major wrote: I'm really intrigued by org-mode's table and spreadsheet functionality and would like to use it for those cases where I found excel and gnumeric impractically cumbersome. What I want are two slightly diffent things: - Make tables that have cells

[O] making coloured tables

2011-07-27 Thread Andras Major
Hi there, I'm really intrigued by org-mode's table and spreadsheet functionality and would like to use it for those cases where I found excel and gnumeric impractically cumbersome. What I want are two slightly diffent things: - Make tables that have cells with individual background colours when