Re: [O] Advice needed: Cant find a decent way to autosync my work TODO org file between laptop and work pc

2014-05-26 Thread Thierry Banel
You can try GIT-ANNEX https://git-annex.branchable.com/ It is a synchronizer built on top of GIT Le 24/05/2014 07:11, Xebar Saram a écrit : Hi all i need to sync my main work TODO org file between my work PC and laptop i carry around on work related trips and when im at home. i have tried

Re: [O] Difference between two rows

2014-06-01 Thread Thierry Banel
Le 01/06/2014 13:38, Cecil Westerhof a écrit : I like to calculate in a table the difference between the value in a field in the current row and the previous field. How would I do that? Something like: |---+| | value | difference | |---+| |12 |

[O] babel C, C++, D enhancement

2014-06-01 Thread Thierry Banel
: Thierry Banel tbanelweb...@free.fr Date: Sun, 1 Jun 2014 23:30:20 +0200 Subject: [PATCH] enhanced table handling in Babel C, C++, D --- lisp/ob-C.el | 302 +++- testing/examples/ob-C-test.org | 88 testing/lisp/test-ob-C.el

Re: [O] babel C, C++, D enhancement

2014-06-07 Thread Thierry Banel
Thanks Eric for your feed-back. Bastien told me the same as you about the commit message. So I will take time to clear all those issues. Le 06/06/2014 18:31, Eric Schulte a écrit : Hi Thierry, This looks wonderful, however after applying this patch I get the following errors when running

Re: [O] Dired-like agenda

2014-06-07 Thread Thierry Banel
+1 Le 07/06/2014 07:11, Samuel Wales a écrit : Here is a brainstorm/RFC/FR. It is not entirely worked out, but it gives the flavor. The idea is to make Org agenda act more like Dired for consistency. For example, we might have commands like: 1) %m -- mark headers with regexp 2) %g

Re: [O] babel C, C++, D enhancement

2014-06-08 Thread Thierry Banel
/org-contribute.html)? Many Thanks, Eric From 06996e7af7c24b8b6adc16b13c183dcc46b5362c Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Sun, 8 Jun 2014 22:01:56 +0200 Subject: [PATCH] Babel C, C++, D support for non-homogeneous input tables * ob-C.el

Re: [O] babel C, C++, D enhancement

2014-06-09 Thread Thierry Banel
Good ! Now I will update the documentation (worg/org-contrib/babel/languages/ob-doc-C.org) and... that's it. Le 09/06/2014 01:22, Eric Schulte a écrit : Hi Theirry, This new patch looks great, and the test suite passes locally. I've just applied it. Thanks! Eric also, thanks for taking

Re: [O] babel C, C++, D enhancement

2014-06-13 Thread Thierry Banel
Thanks Achim for finding and fixing this bug. I do agree about fuzziness between int and float. My Emacs considers 2305843009213693951 as an integer, 2305843009213693952 too large to be an integer. My C++ compiler sees 4294967295 as an integer, 4294967296 as too large to fit an int. So

[O] customizable C, C++, D, Java, Groovy compilers

2014-06-15 Thread Thierry Banel
00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Sun, 15 Jun 2014 14:53:34 +0200 Subject: [PATCH] Make C, C++, D, Java, Groovy compilers customizable * ob-C.el (org-babel-C-compiler): (org-babel-C++-compiler): (org-babel-D-compiler): changed defvar to defcustom * ob-java.el (org

Re: [O] babel C, C++, D enhancement

2014-06-16 Thread Thierry Banel
, and so on), not just C++. Or we could assume that INT_MAX is always 2147483647. (Which of course is not true). Not so easy... Regards Thierry Le 16/06/2014 20:28, Achim Gratz a écrit : Thierry Banel writes: So Babel C++ may cause problem for large integers. I am not sure how we can fix

Re: [O] babel C, C++, D enhancement

2014-06-17 Thread Thierry Banel
Le 17/06/2014 19:16, Achim Gratz a écrit : Thierry Banel writes: You are right, INT_MAX is the C++ constant to compare to. It is defined in limits.h I'm not sure I want to locate limits.h (where is it ? are there several versions ?), and parse it, all from within Emacs-lisp

Re: [O] Bug: org-babel tries to execute raw output of C code

2014-06-20 Thread Thierry Banel
Hi William. I got this error by using the same version of ORG as you (elpa/org-20140616). The bug is fixed by the latest version. You can get it here: http://orgmode.org/cgit.cgi/org-mode.git/plain/lisp/ob-C.el Regards Thierry Le 20/06/2014 01:46, William Everett a écrit : Emacs apparently

Re: [O] [PATCH] ob-java.el: Add `:var' variables import

2014-06-22 Thread Thierry Banel
Hi Bart Good, this was a missing feature. Is there any reason to embed variables in an inner Data class ? Regards Thierry Le 22/06/2014 00:30, Bart Post a écrit : * lisp/ob-java.el: (org-babel-execute:java): Inject a private static class inside the Java class designated by `:classname'.

[O] make orgtbl-ascii-plot easier to install

2014-07-13 Thread Thierry Banel
Hi The List I moved orgtbl-ascii-plot to MELPA (it was in Worg). (orgtbl-ascii-plot draws plots in pure Emacs by typing C-c p). Of course, I am still open to Dominik Carsten suggestion to add it into the core (org-table.el). http://thread.gmane.org/gmane.emacs.orgmode/79668 In the process I

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-10 Thread Thierry Banel
for the late answer, I was on the road. The patch is attached hereafter. Have fun Thierry From 5fddaba2208c2cb4ce3b6bc24d0d10571124fb39 Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Mon, 11 Aug 2014 00:00:21 +0200 Subject: [PATCH] * org-table.el: add ascii plotting in tables

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-11 Thread Thierry Banel
Le 04/08/2014 18:16, Ernesto Durante a écrit : One suggestion. It will be nice to put the error buffer in compilation-mode, this way errors are highlighted and we can jump directly into the source code. I modified org-babel-eval to launch the compilation mode in case of errors. I also removed

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-12 Thread Thierry Banel
Le 12/08/2014 16:24, Ernesto Durante a écrit : Hi Thierry, Thanks you but I don't know who is responsible to apply the patch. I have been in touch with Eric Schulte and Bastien Guerry who are both maintainers. Probably Eric is the right person, as he is very involved in all Babel subjects. I

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-14 Thread Thierry Banel
Le 13/08/2014 22:58, Ernesto Durante a écrit : Thank you Thierry for your answer and all the details. I really want to be a contributor and help ob-C to improve (as well as can do a modest lisper). Any help is welcome ! I tried to find a way to master Cx11 and babel is helping me a lot. I

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-17 Thread Thierry Banel
Le 15/08/2014 19:22, Ernesto Durante a écrit : I agree with you. Creating a new syntax is not a good idea. However, in some way, ob-C has created a new syntax implicitly by instantiating a new main in absence of such a function in the source block. True. And to achieve that the :includes

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-18 Thread Thierry Banel
Le 18/08/2014 13:19, Ernesto Durante a écrit : I think the problem we are trying to integrate C++/C like Lisp,Python,Haskell or programming languages which can rely on a session to share their content. In a way, the idea of Babel originated from such a session

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-21 Thread Thierry Banel
Le 20/08/2014 22:40, Ernesto Durante a crit: Another question if you allow me ? Looking at code in Ob-C you transform a table/list variable in a C array of char*. Should it not be std::wstring ? some unicode string ? Best Ernesto Absolutely!

Re: [O] contribute: three pane mode for org

2014-08-24 Thread Thierry Banel
Good job ! You may be new to Emacs, but you already master a lot: - hiding-showing, - indirect buffers, - save-excursion, - faces, - overlays, - post-command-hook, - and emacs lisp Le 23/08/2014 17:06, Florian Knupfer a écrit : Hello, I've written a function that enables a three pane view on

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-26 Thread Thierry Banel
Thanks Nicolas for your valuable insight. I will apply your recommendations. Le 26/08/2014 10:29, Nicolas Goaziou a écrit : (orgtbl-ascii-plot): top-level function (orgtbl-ascii-draw), (orgtbl-uc-draw-grid),

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-26 Thread Thierry Banel
Le 26/08/2014 22:27, Nicolas Goaziou a écrit : Thierry Banel tbanelweb...@free.fr writes: I'll change to let-binding. What is the rational for that ? Better byte-code ? This is faster, indeed. Also, the scope of the binding

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-26 Thread Thierry Banel
Everything is clear now. Thanks Nicolas for those guidelines. Regards, Thierry Le 27/08/2014 00:09, Nicolas Goaziou a écrit : Actually, `dolist' is a macro from subr.el, which is then shadowed by `cl-dolist', so there's no problem here. BTW, you can use macros from cl (cl-lib doesn't exist in

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-27 Thread Thierry Banel
dolist (instead of mapc) - clean up doc-strings Have fun Thierry From 002e3b5baec9ba513c70914b9bfe17966aa9ca24 Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Wed, 27 Aug 2014 23:11:11 +0200 Subject: [PATCH] Add ascii plotting in tables * org-table.el (orgtbl-ascii-plot): top

Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-28 Thread Thierry Banel
Le 24/08/2014 14:57, Ernesto Durante a écrit : I have worked with VTK (the visualization toolkit). It is like babel and allows differents block to be chained and evaluated on demand. Very interesting software. Thanks for sharing.

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-28 Thread Thierry Banel
table)) table)) This is a strengthened algorithm, and it is shorter than the previous version. Applied! The second sentence should start a new line. Right. Fixed. From fac4561630c229fdb2356a93a0b575376c80bb7e Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Thu, 28 Aug 2014

Re: [O] make orgtbl-ascii-plot easier to install

2014-08-29 Thread Thierry Banel
Le 29/08/2014 11:54, Nicolas Goaziou a écrit : Patch applied (with tiny changes to comments formatting, and a few trailing whitespaces). Great! I will now write a few words of documentation. This page [[info:org#Org-Plot]] seems to be the right place, unless someone has a better idea.

Re: [O] [PATCH] make orgtbl-ascii-plot easier to install

2014-09-02 Thread Thierry Banel
:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Tue, 2 Sep 2014 23:41:41 +0200 Subject: [PATCH] * doc/org.texi (Org-Plot): add ascii plot --- doc/org.texi | 45 +++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/doc/org.texi b/doc

Re: [O] Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa at /home/will/.emacs.d/elpa/org-20140616/)]

2014-09-03 Thread Thierry Banel
Yes Will, there is a bug. I will look at it. In the meantime, as a workaround, you may move includes from header to body: #+BEGIN_SRC C++ #include cstdio #include iostream using namespace std; int main() { printf(Hello ); cout world; } #+END_SRC Thanks for reporting Thierry Le

Re: [O] A key-binding for plotting

2014-09-03 Thread Thierry Banel
Le 03/09/2014 20:22, Nicolas Goaziou a écrit : Hello, Thierry Banel tbanelweb...@free.fr writes: Here is a patch for the info doc. I added a few lines in the Org-Plot page. It looks good but I realized (a bit late) we cannot use C-c p as it is reserved to users, as any C-c LETTER

Re: [O] Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa @ /home/will/.emacs.d/elpa/org-20140616/)]

2014-09-04 Thread Thierry Banel
in the header as here: #+BEGIN_SRC C++ :includes stdio.h strings.h assert #+END_SRC or in a property drawer, like that: :PROPERTIES: :includes: stdio.h strings.h assert :END: Have fun Thierry From 63ab1d364f0e425d8d02ce946021611a1a3b7ce6 Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb

Re: [O] [PATCH] remap orgtbl-ascii-plot to C-c #

2014-09-06 Thread Thierry Banel
: Thierry Banel tbanelweb...@free.fr Date: Sat, 6 Sep 2014 15:59:18 +0200 Subject: [PATCH] orgtbl-ascii-plot remapped from C-c p to C-c # * org-table.el (orgtbl-setup): change key-binding from C-c p to C-c # * org.el (orgtbl-ascii-plot): declare `orgtbl-ascii-plot' (org-update-statistics-cookies

Re: [O] key-binding for all plotting styles

2014-09-13 Thread Thierry Banel
Le 08/09/2014 18:30, Nicolas Goaziou a écrit : It is better than C-c p, but I think a common prefix for plotting table would be better. You need to also tell org.texi about this change. A common prefix for plotting is a good idea. Which common prefix? C-c #(should be shared with

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

2014-09-15 Thread Thierry Banel
You may try the :crypt: tag like that: * My ToDo List:crypt: ** TODO Buy bread ** TODO Call my friend ** DONE Send an email to my customer Everything under the node marked as :crypt: will be encrypted upon saving. You need to setup GnuPG on all your computers with your key (there are versions

Re: [O] key-binding for all plotting styles

2014-10-07 Thread Thierry Banel
Le 07/10/2014 16:15, Nicolas Goaziou a écrit : Hello, Thierry Banel tbanelweb...@free.fr writes: C-c (currently unused) C-c |(currently does weird things within a table) I'm fine with any of these, even though they may be shadowed by minor modes. Good! I will submit a patch

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-11 Thread Thierry Banel
/2014 16:15, Nicolas Goaziou a écrit : Hello, Thierry Banel tbanelweb...@free.fr writes: C-c (currently unused) C-c |(currently does weird things within a table) I'm fine with any of these, even though they may be shadowed by minor modes. Regards, From

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-12 Thread Thierry Banel
Le 12/10/2014 11:28, Nicolas Goaziou a écrit : Applied. Thank you. Would you mind providing some documentation about the feature in the manual, and updating ORG-NEWS? Regards, Sure! Will do that shortly.

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-12 Thread Thierry Banel
Thierry From 916f974ed4597e3d03124089d6ce90ccd3d235cf Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Sun, 12 Oct 2014 15:23:12 +0200 Subject: [PATCH] Document ascii art plot * doc/org.texi: Extend Gnuplot chapter to ascii art plotting. * etc/ORG-NEWS: Document ascii art

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-13 Thread Thierry Banel
Thanks Nicolas for your feedback. I'll do the adjustments. Le 13/10/2014 18:24, Nicolas Goaziou a écrit : Some comments follow. ... BTW is-it ASCII-art or ascii-art? Good question! When asking Google, we get every possible combination, in decreasing order of occurrences: ASCII Art

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-14 Thread Thierry Banel
? Changed to capitals. From 5168483137640a896501c88740052fe5112bed54 Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Tue, 14 Oct 2014 22:34:54 +0200 Subject: [PATCH] Document ASCII-art plot * doc/org.texi: Extend Gnuplot chapter to ASCII-art plotting. * etc/ORG-NEWS

Re: [O] [PATCH] key-binding for all plotting styles

2014-10-14 Thread Thierry Banel
Le 14/10/2014 23:08, Nicolas Goaziou a écrit : __ _ _ / \ _ __ _ __ | (_) ___ __| | / _ \ | '_ \| '_ \| | |/ _ \/ _` | / ___ \| |_) | |_) | | | __/ (_| |_ /_/ \_\ .__/| .__/|_|_|\___|\__,_(_) |_| |_|

[O] [ANN] Aggregate Table

2014-10-25 Thread Thierry Banel
Hi all I'm happy to announce the availability of the aggregation package. https://github.com/tbanel/orgaggregate Example: This is a source table: #+TBLNAME: source | Day | Quantity | |---+--| | Monday| 10 | | Monday|3 | | Tuesday | 52 | |

[O] Babel support for the D language

2013-11-28 Thread Thierry Banel
language ;; Copyright (C) 2013 Thierry Banel ;; Author: Thierry Banel, derived from the Eric Schulte work ;; Keywords: literate programming, reproducible research ;; This file is NOT (yet) part of GNU Emacs. ;; ob-D.el is free software: you can redistribute it and/or modify ;; it under the terms

Re: [O] Babel support for the D language

2013-11-28 Thread Thierry Banel
Thomas S. Dye tsd at tsdye.com writes: Aloha Thierry, Thanks for this contribution. Have you looked at http://orgmode.org/worg/org-contrib/babel/languages.html#develop? It describes how language support is added to the Org mode core or to contrib/ and the choices an author has in

Re: [O] Babel support for the D language

2013-11-28 Thread Thierry Banel
Nick Dokos ndokos at gmail.com writes: Thierry Banel tbanelwebmin at free.fr writes: By the way, are you aware of a location to store a *.el in Worg ? The .el file should probably end up in contrib/lisp, rather than on Worg. Thanks Nick ! Probably there is some kind of agreement

Re: [O] Babel support for the D language

2013-11-29 Thread Thierry Banel
Nick Dokos ndokos at gmail.com writes: See http://orgmode.org/worg/org-contribute.html for the general guidelines. ... Ok, fine. Let me include this information in org-contribute.html Thanks Nick Thierry

Re: [O] Babel support for the D language

2013-11-29 Thread Thierry Banel
Thomas S. Dye tsd at tsdye.com writes: Aloha Thierry, Thanks for this contribution. Have you looked at http://orgmode.org/worg/org-contrib/babel/languages.html#develop? It describes how language support is added to the Org mode core or to contrib/ and the choices an author has in

Re: [O] Babel support for the D language

2013-12-01 Thread Thierry Banel
Thomas S. Dye tsd at tsdye.com writes: Aloha Thierry, Thierry Banel tbanelwebmin at free.fr writes: Done ! The first draft of http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-D.html has been committed. I pushed some minor edits. Looks good! All the best, Tom

Re: [O] Babel support for the D language

2013-12-01 Thread Thierry Banel
Eric Schulte schulte.eric at gmail.com writes: Hi Thierry, I've added ob-D.el to the contrib/lisp directory of Org-mode. Would it make sense to add D as a c-variant in ob-C.el? Thanks for the contribution, and for the documentation! Thierry Banel tbanelwebmin at free.fr writes

Re: [O] Babel support for the D language

2013-12-01 Thread Thierry Banel
Eric Schulte schulte.eric at gmail.com writes: Hi Eric That's awsome ! Yes, it would make sense, as D and C++ share a lot. There are differences, though: tables are translated as: string[][]; in D char*[]; in C++ includes are translated as: import std.stdio;

[O] text-only plots

2013-12-07 Thread Thierry Banel
Hi all Org fans. What about text-only plots in tables ? All in Emacs, without any external package. | x | x^2 | | |+-+--| | 0 | 0 | | | 1 | 1 | .| | 2 | 4 | :| | 3 | 9 | u| | 4 | 16 | W|

Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Michael Brand michael.ch.brand at gmail.com writes: To make it more complete: Distinguish between the variant with coordinate grid and the one continuous: | year | % | ascii| grid (0 to 7 8th) | continuous (0 to 8 8th) |

Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Hello all. Following a suggestion from Michael Brand (thanks, Michael!), I implemented a version able to use unicode block characters. It is here: http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html Use =C-u C-c p= in the column to plot, and answer questions. Without =C-u= prefix, the

Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Carsten Dominik carsten.dominik at gmail.com writes: Hi Thierry, This is really nice. Thank you! This is not a lot of code - I would not mind simply integrating this into org-table.el The only hickup might be that this could be trouble for the exporters - or have you produced the

Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Michael Brand michael.ch.brand at gmail.com writes: Thank you for implementing these variations. Michael Thanks for this simple and effective idea. Thierry

Re: [O] text-only plots

2013-12-09 Thread Thierry Banel
Ivan Andrus darthandrus at gmail.com writes: On Dec 9, 2013, at 5:19 AM, Suvayu Ali fatkasuvayu+linux at gmail.com wrote: Technically speaking, it is not exported as a table since you put it as part of example block. However a quick test tells me, html export will work fine (screenshot

Re: [O] text-only plots

2013-12-10 Thread Thierry Banel
Suvayu Ali fatkasuvayu+linux at gmail.com writes: Firstly, I think the unicode bit is a terrific improvement; specially the two options: grid and continuous. I think there are two distinct problems here: the plot as shown in org, and export. We should not confuse the two. I will suggest

Re: [O] Babel support for the D language

2013-12-14 Thread Thierry Banel
Eric Schulte schulte.eric at gmail.com writes: I think this incorporation into ob-C.el would be the next logical step. You'd want to use the `org-babel-c-variant' in the same manner as C++ does currently. But there's no rush, and any changes there couldn't be merged until after your FSF

Re: [O] auto-backing up your .emacs

2013-12-21 Thread Thierry Banel
Sharon Kimble boudiccas at talktalk.net writes: Can somebody help me please, I want to put this line into my .emacs - 'cp ~/.emacs ~/.emacs.d/.emacs-$(date +%Y%m%d-%R)' but it works as part of a bash script, but I don’t know elisp to get it working in my .emacs. What it does is save a dated

[O] split ascii-plot package into pure ascii unicode

2013-12-21 Thread Thierry Banel
I removed unicodes characters from the orgtbl-ascii-plot package. This makes it safe for Org exporters. The unicode version is kept separatly, as an extension example. The file (code doc) is here http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html | values | ascii plot |

[O] dates in orgtbl-sqlinsert

2014-01-04 Thread Thierry Banel
...@acm.org, +;; modified by Thierry Banel tbanelwebmin at free dot fr ;; Keywords: org, tables, sql ;; This file is not part of GNU Emacs. @@ -25,6 +26,32 @@ ;; Converts an orgtbl to a sequence of SQL insertion commands. ;; Table cells are quoted and escaped very conservatively

[O] ob-C patch

2014-01-07 Thread Thierry Banel
8fdf544154b1d75ffe877082251cd87b93e8ad9f Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Tue, 7 Jan 2014 21:46:05 +0100 Subject: [PATCH] enhanced table handling in Babel C, C++, D --- lisp/ob-C.el | 285 ++-- testing/examples/ob-C-test.org

Re: [O] [poll] Fontify code in code blocks

2014-01-09 Thread Thierry Banel
Sebastien Vauban sva-news@... writes: ... (setq org-src-fontify-natively t) as the default value of `org-src-fontify-natively' is `nil'. WDYT if we turn it on by default? ... I vote: YES, true by default

Re: [O] Table sorting on two or more columns?

2014-01-18 Thread Thierry Banel
Le 18/01/2014 10:40, James Harkins a écrit : Is there an existing org function to sort a table based on more than one column? E.g., given: | Type | Term  | Description  |

Re: [O] [babel] dynamic linking in user directory not working for C++ language

2014-01-28 Thread Thierry Banel
Le 28/01/2014 15:00, Benoit Bayol a écrit : Hello everyone :) I have a problem that I cannot fix when compiling a C++ source block. My code block use several libraries and especially one named libarmadillo.dylib which is installed in a non-default place. My code compiles well in the buffer

Re: [O] orgtbl-to-sqlinsert

2014-02-02 Thread Thierry Banel
Le 02/02/2014 21:09, Thomas S. Dye a écrit : Aloha all, I'm expecting column names in the foo( ) part of the INSERT statement. I've done my best to understand http://orgmode.org/worg/org-tutorials/multitarget-tables.org.html but appear to have failed. Can someone help? *** Experiment

[O] orgtbl-aggregate on Melpa

2014-11-11 Thread Thierry Banel
available packages (including the latest Org Mode and almost 80 Org-related packages) by typing: M-x package-list-packages - Comments welcome Have fun Thierry Banel

Re: [O] orgtbl-aggregate on Melpa

2014-11-11 Thread Thierry Banel
Le 11/11/2014 14:44, Eric S Fraga a écrit : I know you've put it on MELPA but could you also add it to org/contrib maybe? I have issues with MELPA due to trying to share configurations across systems that run different versions of Emacs... Sure! I don't have write access to org-mode/contrib.

Re: [O] [Prelim. patch] extend org-meta-return to keywords

2014-11-22 Thread Thierry Banel
M-RET working as expected is appealing. Your patch makes M-RET moreuseful than it is now. I vote +1. There are a few issues thought. I guess they can be worked out. For instance: #+HEA|DER: :var v=hello (cursor is the pipe |) ischanged into #+HEA #+HEADER: |DER: :var v=hello which

Re: [O] [Prelim. patch] extend org-meta-return to keywords

2014-11-22 Thread Thierry Banel
Le 22/11/2014 15:31, Rasmus a écrit : There are a few issues thought. I guess they can be worked out. For instance: #+HEA|DER: :var v=hello (cursor is the pipe |) ischanged into #+HEA #+HEADER: |DER: :var v=hello which is pretty useless Thanks. I'm pretty sure it's fixed

Re: [O] [patch] extend org-meta-return to keywords

2014-11-22 Thread Thierry Banel
Le 22/11/2014 20:26, Rasmus a écrit : Hi, First, Thierry, I think this patch fixes the second misbehavior you observed. Fixed! I was wondering, is there any reason why the new inserted keyword is UPPERCASED? If not, maybe it would be better to keep the oriGiNaL cASe.

Re: [O] [patch] extend org-meta-return to keywords

2014-11-23 Thread Thierry Banel
Le 23/11/2014 00:20, Nicolas Goaziou a écrit : M-RET, is, first and foremost, an important keybinding for editing the /structure/ of the document. The behaviour you want to add has nothing to do with structure. I guess this is the main decision point about Rasmus's proposal. I'm not sure I

Re: [O] table formula help...

2014-12-06 Thread Thierry Banel
| | | | | Lucas Klein | | | | Thierry Banel recently announced orgaggregate: http://lists.gnu.org/archive/cgi-bin/namazu.cgi?idxname=emacs-orgmodemax=100sort=date:latequery=%2Bsubject:%5BANN%5D+Aggregate+Table; For a solution with only built

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 04:25, Eric Abrahamsen a écrit : Okay, having fun! This seems like exactly what I was after. A couple of things: I've attached a patch replacing some [a-z] regexps with [:word:], so that column names can be written in scripts other than ascii (my tables above are actually all

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 10:39, Michael Brand a écrit : Hi Thierry I suggest that orgaggregate leaves such fields empty instead of NA. This way the user gets a choice how to deal with them by adding e. g. EN or not as TBLFM format specifier: | Translator | sum(Chars) | sum(Lines) |

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 10:40, Michael Brand a écrit : I suggest that orgaggregate lets the user specify a TBLFM to be inserted and updated. Missing target columns are added automatically, it would result in #+BEGIN: aggregate :table work :cols Translator sum(Chars) sum(Lines) | Translator |

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 11:26, Michael Brand a écrit : Hi Thierry On Sun, Dec 7, 2014 at 11:02 AM, Thierry Banel tbanelweb...@free.fr wrote: Maybe the TBLFM should be taken care of for any kind of dynamic blocks, not only aggregate (columnview, clocktable, propview, invoice, transpose, and any future

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 11:26, Michael Brand a écrit : Hi Thierry On Sun, Dec 7, 2014 at 11:02 AM, Thierry Banel tbanelweb...@free.fr wrote: Maybe the TBLFM should be taken care of for any kind of dynamic blocks, not only aggregate (columnview, clocktable, propview, invoice, transpose, and any future

Re: [O] table formula help...

2014-12-07 Thread Thierry Banel
Le 07/12/2014 10:39, Michael Brand a écrit : Hi Thierry I suggest that orgaggregate leaves such fields empty instead of NA. This way the user gets a choice how to deal with them by adding e. g. EN or not as TBLFM format specifier: | Translator | sum(Chars) | sum(Lines) |

Re: [O] table formula help...

2014-12-08 Thread Thierry Banel
Le 07/12/2014 17:48, Michael Brand a écrit : Hi Thierry On Sun, Dec 7, 2014 at 5:13 PM, Thierry Banel tbanelweb...@free.fr wrote: The new features (:formula parameter and TBLFM survival) have been pushed to https://github.com/tbanel/orgaggregate. The unittests.org file has been updated

Re: [O] table formula help...

2014-12-08 Thread Thierry Banel
Le 08/12/2014 19:02, Michael Brand a écrit : Good. My opinion is about to replace it with what. https://github.com/tbanel/orgaggregate#empty-and-malformed-input-cells says: An input cell may be empty. In this case, it is silently replaced by zero. In an output cell, if the

Re: [O] table formula help...

2014-12-08 Thread Thierry Banel
Le 08/12/2014 22:12, Thierry Banel a écrit : Le 07/12/2014 17:48, Michael Brand a écrit : Hi Thierry On Sun, Dec 7, 2014 at 5:13 PM, Thierry Banel tbanelweb...@free.fr wrote: The new features (:formula parameter and TBLFM survival) have been pushed to https://github.com/tbanel/orgaggregate

Re: [O] table formula help...

2014-12-09 Thread Thierry Banel
Le 09/12/2014 06:54, Michael Brand a écrit : Hi Thierry On Mon, Dec 8, 2014 at 10:57 PM, Thierry Banel tbanelweb...@free.fr wrote: You instantly found the weakness of the current design! The reason follows very shortly. ;-) Definitely interesting. Someone else has already bumped

Re: [O] table formula help...

2014-12-09 Thread Thierry Banel
Le 08/12/2014 19:02, Michael Brand a écrit : #+TBLNAME: original | Item | Value | |--+---| | a2 | 1 | | a2 | 1 | | a0 |-1 | | a0 | 1 | | b2 | 2 | | b2 | | | b0 | 0 | | b0 | | | c| | | c| | #+BEGIN:

Re: [O] table formula help...

2014-12-09 Thread Thierry Banel
Ok, done. A clean design has been implemented for handling empty cells. Basically, empty input cells are ignored, and therefore they do not participate in the aggregation. (However, for aggregation using two columns (=corr(p,q)= for example), if a pair of cells contains both an empty and a

Re: [O] table formula help...

2014-12-10 Thread Thierry Banel
Le 10/12/2014 22:06, Michael Brand a écrit : Hi Thierry On Tue, Dec 9, 2014 at 11:35 PM, Thierry Banel tbanelweb...@free.fr wrote: On output, empty cells are generated when the aggregation function does not have enough input. For instance, =mean= needs at least one value, otherwise

Re: [O] table formula help...

2014-12-12 Thread Thierry Banel
Le 12/12/2014 18:15, Michael Brand a écrit : Hi Thierry Here is how the spreadsheet handles those cases (without modifiers): | | | | sum | mean | prod | |---+---+---+-+---+--| | 1 | 2 | 3 | 6 | 2 |6 | | | 2 | 3 | 5 | 1.667 |6 |

Re: [O] Lentic.0.6 and org mode

2015-01-16 Thread Thierry Banel
Le 15/01/2015 23:41, Phillip Lord a écrit : Thierry Banel tbanelweb...@free.fr writes: Le 15/01/2015 17:11, Phillip Lord a écrit : One possibility, not as good as info, but quite easy, is given by GitHub. Replace your current README.md with a README.org, in org-mode syntax. Why

Re: [O] Lentic.0.6 and org mode

2015-01-15 Thread Thierry Banel
Le 15/01/2015 17:11, Phillip Lord a écrit : I spent some time figuring out how to use it. This is what I did eventually: M-xlentic-mode M-xlentic-mode ;; twice M-x lentic-mode-split-window-below Then change the new buffer to the desired mode (Java mode, C++ mode, whatever). (I was

[O] [ANN] orgtbl-join

2015-01-22 Thread Thierry Banel
Thierry Banel

[O] [ANN] orgtbl-aggregate version 2

2015-01-09 Thread Thierry Banel
Install orgtbl-aggregate * Happy new year! -- Comments etc. welcome Happy new year, have fun, and stay tunned for more to come Thierry Banel

Re: [O] Lentic.0.6 and org mode

2015-01-08 Thread Thierry Banel
Nice! I spent some time figuring out how to use it. This is what I did eventually: M-xlentic-mode M-xlentic-mode ;; twice M-x lentic-mode-split-window-below Then change the new buffer to the desired mode (Java mode, C++ mode, whatever). (I was created in fundamental mode). Is this the

[O] [PATCH] document D support

2015-03-16 Thread Thierry Banel
Here is a (small) patch in the documentation to add D in the list of Babel-supported languages. Best Thierry From b1b0fef633a0b54dbba20d970f1b89a04e27ee56 Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Mon, 16 Mar 2015 22:38:05 +0100 Subject: [PATCH] D is supported

Re: [O] Data format for keeping track of weekly yearly stats?

2015-03-13 Thread Thierry Banel
Hi Leo You may want to have a look at org-aggregate It provides partial sums, means, and so on, and also correlation between two columns. Source code and documentation here: https://github.com/tbanel/orgaggregate Also available as an Emacs package on Melpa: (require 'package) (add-to-list

Re: [O] Bug: Proposed new version of ob-C.el [8.3beta (release_8.3beta-944-g830cf3 @ /Users/snapp/.emacs.d/vendor/org/)]

2015-03-30 Thread Thierry Banel
the three files, but one which the user can customize; any :includes parameters would augment the default. That would satisfy the OP's requirements, but would also allow for a shorter #+BEGIN_SRC line. Nick From 89eab423a0084a715456db558a987d6d806c49ba Mon Sep 17 00:00:00 2001 From: Thierry

Re: [O] Bug: Proposed new version of ob-C.el [8.3beta (release_8.3beta-944-g830cf3 @ /Users/snapp/.emacs.d/vendor/org/)]

2015-03-31 Thread Thierry Banel
Le 31/03/2015 12:07, Nicolas Goaziou a écrit : IMO, it would be better than the current situation, but I wonder if it makes sense to have a global default setting containing the three files, but one which the user can customize; any :includes parameters would augment the default. That would

Re: [O] Bug: Proposed new version of ob-C.el [8.3beta (release_8.3beta-944-g830cf3 @ /Users/snapp/.emacs.d/vendor/org/)]

2015-03-29 Thread Thierry Banel
Hi Robert Those #includes were a proposal I did long ago. The purpose was to make short scripts even shorter with default #includes that everybody uses. Your use-case is worth considering. If this cause trouble, it is easy to remove the includes. To keep existing scripts working, an :includes

Re: [O] Capturing output from C/C++

2015-03-05 Thread Thierry Banel
It might be due to the return 1; statement. Change it to return 0; and try again. Le 05/03/2015 17:27, Roger Mason a écrit : Hello, I have a short C++ program: #+BEGIN_SRC cpp :flags -lm :results output #include iostream #include fstream #include cmath // for ceil #include

  1   2   >