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 wrote: > András Major writes: > >> Hi Sebastien, >> >>> I have the impression it's already there: if yo

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 th

[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 key

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

2011-08-30 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

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: lis

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

2011-08-30 Thread András Major
Hi Eric, > > I've been away since my last post and now you've already applied a patch > > -- wow! Here's another thought though: change the behaviour of the :var > > header argument such that you can specify a range of rows, columns, or > > a rectangle just like in table references. > > This is

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 > c

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

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

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 th

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 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 (release_7.7.174.g63f

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 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

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 > > b

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 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 :noe

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, s

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: 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

[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: :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 a

[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, here is an example that delivers an error "reference 'table1' not found in this buffer" when trying to export to HTML (others not tried yet): #+tblname: table1 :noexport: | n | x | y1 | y2 | |---+---+-+--| | 0 | 1 | 2.0 | 3.0 | | 1 | 2 | 2.1 | 2.0 | | 2 | 3 | 2.

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: 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
Here's another one: In a haskell code, the :results options value and output both work erroneously. "value" returns the output, "output" returns nothing into the :results block. Example code: #+begin_src haskell :results value putStrLn "hello" #+end_src #+results: : hello #+begin_src haskell

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 cell

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 unnecessa

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

2011-08-19 Thread András Major
Hi Will, > > I'm fully aware of that, but that also messes up the spacing between > > sentences. My proposed solution should be robust enough to be > > more-or-less foolproof yet produce nice-looking output. > > What is nice-looking is a matter of personal taste. Personally, I tend > to prefer e

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

2011-08-19 Thread András Major
> > There is always a longer space between sentences than after a "." > > that doesn't mark the end of a sentence > > This could easily be turned off with the use of a single \frenchspacing > in the preamble (or in the document; you may switch between the two in > the document as often as you like

[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
Hi again, I think that naming columns in tables is a very nice feature. It only works, however, as a reference, i.e. on the right-hand side of a formula specification. That is, I can refer to a column by name to read its value, not to write it (using TBLFM). Example: | ! | name1 | name2 | | #

[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 in