Re: [O] conflict load of epresent - org mode 8.0.3

2013-05-30 Thread d . tchin
Hi, 

 I just updated the require statements in epresent.el.
 
   https://github.com/eschulte/epresent/blob/master/epresent.el


 
 I'm not sure what epresent-org.el is.


For your information, Sacha Chua on her blog has given a short description 
of EPresent accessible on the following link

http://sachachua.com/blog/2013/04/how-to-present-using-org-mode-in-emacs/

Above it is mentioned about a tool called org-present developed by Ric 
Lister. I certainly made a confusion in my mail with this tool when I 
mentioned epresent-org.el. Sorry for this.

Anyway your changes work well. 

Thanks







Re: [O] conflict load of epresent - org mode 8.0.3

2013-05-23 Thread d . tchin
Hi,


If the intention is to use epresent with org file, is it necessary to put
the following instructions in epresent.el and epresent-org.el?

(require 'ox)
(require 'ox-latex)

I suppose that when a org file is loaded, this library and corresponding are
already loaded, so these intructions may be not needed ?


Thanks

 d.tchin writes:







[O] conflict load of epresent - org mode 8.0.3

2013-05-17 Thread d . tchin
Hi,

This post to report a problem about epresent and new version of org mode.
I have just tried to update from releas 7.9.2 to 8.0.3 and I encountered 
several problems that are partially solved by the description of the 
changes due to the actual export and new name conventions.

From time to time, I use epresent tool that I find useful for tiny 
presentation. Tool is described here :

http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html#sec-2

There are conflicts when this tool is loaded with new version of org mode.

In source files there are the following instructions :

(require 'org-exp)
(require 'org-latex)

As far I understand these modules are not available with this specific 
names. I have commented these two instruction in epresent-org.el and in 
epresent.el. 

I load ox.el and ox-latex.el in my .emacs and before loading the epresent 
tool and it seems to solve the conflicts and to work. 

Regard




Re: [O] org-protocol in windows and Acrobat Reader

2012-03-19 Thread d . tchin
 
 This indicates that .replace('|',':') didn't work out as expected and
 org-protocol received
 
 org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf
  ^^^
 
 Maybe this could do the trick:
 
 ,
 | app.addMenuItem({cName:org-store-link, cParent:File,
 |  cExec:app.launchURL('org-protocol://store-link://'+ unescape
 |  (encodeURIComponent(this.URL.replace('|',':';});
 `


Indeed  I get the corresponding character. 
org-protocol://store-link://file:///C:/Temp/file.pdf

The problem of the bad interpretation of the character / still remains when 
I go back to emacs. I get the following proposition when I use C-c C-l : file: 
(C:). 

Thank you for your help.


 I.e. replace | by : in the original URL before encoding it.
 
 Best,
   -- David
 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmjena at jabber.org
 Email. dmaus at ictsoc.de
 







[O] org-protocol in windows and Acrobat Reader

2012-03-15 Thread d . tchin
Hi,

I try to use a function proposed with org-protocol as explained in this link.
http://orgmode.org/worg/org-contrib/org-protocol.html#sec-2 

I would like to launch a pdf file in Acrobat Reader and to use org-store-
link.js to capture the full path of the document in an org file.I try to use 
what it was explained on the link I have already and I have a look on the 
following link. 
http://article.gmane.org/gmane.emacs.orgmode/6810
It doesn't work as I expect.

 
As I just want to capture the full path of the file (example here is file.pdf 
in C:\Temp), I use the following javascript call org-store-link accessible in 
menu File of Acrobat Reader :
app.addMenuItem({cName:org-store-link, cParent:File,
 cExec:app.launchURL('org-protocol://store-link://'+ 
encodeURIComponent(this.URL));});

I get the following string given to org-protocol:
org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf

There is several issue. The escaped character is not interpreted when feed in 
emacs and when I use C-c C-l (org-insert-link) I have the following 
proposition : 
file: (C|).

Then I try the following script, to get '/' character to feed org-protocol:
app.addMenuItem({cName:org-store-link, cParent:File,
 cExec:app.launchURL('org-protocol://store-link://'+ unescape
(encodeURIComponent(this.URL)).replace('|',':'));});


I get the following the expected string :
org-protocol://store-link://file:///C:/Temp/File.pdf


Again when I use C-c C-l, I have the proposition : file: (C|).

I made the assumption that it is a problem of interpretation of '/'.Then I 
replace this character with ++.
app.addMenuItem({cName:org-store-link, cParent:File,
 cExec:app.launchURL('org-protocol://store-link://'+ unescape
(encodeURIComponent(this.URL)).replace('|',':').replace('\/','++','gi'));});


Then I obtain the following string :
org-protocol://store-link://file:++C:++Temp++File.pdf


This time when I use C-c C-l, I have the proposition : 
file:++C:++Temp++File.pdf
So I can get the full path when I replace afterwards each '++' to '/'.

Quite tricky to get the final full link !!

Do you have a more direct and simplest way to get the direct right link ?






Re: [O] taskjuggler3 export

2012-02-29 Thread d . tchin
Hi, 

I use the following testtj3.org file that I export to taskjuggler 3.0 :

,
|#+TITLE: testtj3.org   
  
|#+PROPERTY: Effort_ALL 2d 5d 10d 20d 30d 35d 50d 
| 
|* Action list  :taskjuggler_project:  
|** TODO Test tj3 A   
|:PROPERTIES:
|:Effort:   1w
|:allocate: toA  
|:END:
|** TODO Test tj3 B   
|:PROPERTIES: 
|:Effort:   1w
|:allocate: toB   
|:BLOCKER:  previous-sibling  
|:END:
|** TODO Test 2 tj3 
|:PROPERTIES: 
|:Effort:   2w
|:allocate:  toA  
|:BLOCKER:  previous-sibling
|:END:
|** TODO Test 2 tj3 B
|:PROPERTIES: 
|:Effort:   2w   
|:allocate: toB 
|:BLOCKER: previous-sibling   
|:END:
|* Ressources  :taskjuggler_resource: 
|** A 
|:PROPERTIES: 
|:resource_id: toA
|:END:   
|** B 
|:PROPERTIES:   
|:resource_id: toB   
|:END:   
| 
|# Local Variables:   
|# org-export-taskjuggler-target-version: 3.0   
|# org-export-taskjuggler-default-reports: (include \gantexport.tji\)  
|# End:
`

As you can see, I define in the org-export-taskjuggler-default-reports 
variable at the end of the file that I want to use gantexport.tji where the 
gant output directives are defined. This file is in the same directory as org 
file.

The gantexport.tji is the following :

,-
|### begin report definition   
|  
|taskreport Gantt Chart {
|  headline Project Gantt Chart  
|  columns hierarchindex, name, start, end, effort, duration, completed, 
chart  
|  timeformat %Y-%m-%d   
|  hideresource 1  
|  formats html
|  loadunit shortauto  
|}
`-

Then the instruction tj3 testtj3.tjp generate the gant chart accessible 
in Gantt Chart.html file.

Hope that can help.






Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread d . tchin
Hello,

Rainer M Krug r.m.krug at gmail.com writes:

 
 
 Hi
 
 I would like to use the export to taskjuggler, but somehow I don't get
 it working - might be me or the fact that I have taskjuggler 3.1.0.
 
 I am trying the example on
 
 http://orgmode.org/worg/org-tutorials/org-taskjuggler.html
 
 but I somehow don't get it to work.
 

I tried to make this example work with tj3 some time ago but I didn't manage 
to make it work with the current taskjuggler export procedure. It seems that 
the instruction change a lot beetween tj2 and tj3 and as far I understand the 
export function was written for tj2.

 My questions are:
 
 1) does the taskjuggler export work with tj3 (version 3.1.0) (John
 Hendy says it doesn't (taskjuggler (tj3) export issues and
 proposals), but there are patches which should have made it work
 (e.g. Christian Egli, small edits to org-taskjuggler.el for tj3).
 So: what is the actual status?
 

I put here the link where you can see the change. 
Indeed it works with the change proposed by this patch.
http://thread.gmane.org/gmane.emacs.orgmode/40550

This change is apparently not implemented in the current org-taskjuggler.el 
file.






Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread d . tchin
John Hendy jw.hendy at gmail.com writes:

 
 On Wed, Feb 1, 2012 at 6:25 AM, d.tchin d.tchin at voila.fr wrote:
  Hello,
 
  Rainer M Krug r.m.krug at gmail.com writes:
 
 
 Even so, see my most recent thread
 (http://www.mail-archive.com/emacs-orgmode at gnu.org/msg51502.html).
 Even if that patch works, it's not a viable solution. It sets a
 default value, but this is really *the* value as in there's no way
 to override it from the file. If you want a different export format,
 you have to edit your emacs config. The variable should be called
 'org-taskjuggler-export-report'. I think the ability to include a .tji
 file is the way to go. Write your report definition, add =include
 reports.tji= to the exporter and you're all set.

Thank you for the suggestion and for the link to thread. After several trials 
and make it work. As far I understand the tj2 is not maintained anymore and if 
users want to use the taskjuggler they will obtain tj3 version. Maybe this 
configuration should be described in the info file or perhaps in the tutorial.

 
 John
 
  This change is apparently not implemented in the current org-taskjuggler.el
  file.
 
 
 


Thanks for the help and I would to thank people who invest their time and 
skill to develop orgmode and all these extensions. 

Regards





Re: [O] [bug] alias for list-diary-entries-hook creates loop in emacs 24

2012-01-11 Thread d . tchin
Eric S Fraga e.fraga at ucl.ac.uk writes:

 
 Hello,
 
 one of the recent updates
 
   commit d6e40fb3472761ed51795f54491b969976167116
 
 to org has caused a problem with the latest emacs snapshot (version from
 5 January I believe).  Specifically, the alias for
 list-diary-entries-hook would appear to create an alias loop as
 diary-lib.el in emacs already has an alias.


 Removing two lines from org-agenda.el (patch attached) fixes the problem
 (for me).  I am not suggesting this as a patch as it would appear that
 an emacs version specific check should probably be made?  I don't know
 enough about this to suggest a proper solution unfortunately.
 
 thanks,
 eric
 

I think this bug is related to the correction of a bug I recently
submitted related to emacs 22.3. Please follow the link below :

http://article.gmane.org/gmane.emacs.orgmode/50960

Hope that can make help.



Regards






[O] [org-babel] break when used with header in emacs 22.3

2012-01-10 Thread d . tchin
Hi,

I would like to report a problem of evalation when org-babel is used with 
emacs 22.3 on windows and recent org-mode 7.8.03.

I use the following code :

#+begin_src sh :results silent
ls 
#+end_src

It breaks when a header is used.

When evaluated with C-c C-c, the following message appears :
matched: Wrong type argument: listp, 58

The configuration is the following :
Org-mode version 7.8.03
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Mark set

With the following version of emacs, it works :
GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO

Regards




Re: [O] [org-babel] break when used with header in emacs 22.3

2012-01-10 Thread d . tchin
Eric Schulte eric.schulte at gmx.com writes:

 This same issue was raised recently on the mailing list and (I believe)
 a patch has been pushed to the git repository.  Would you mind checking
 if the problem persists in the git head?
 


I download org-latest.zip archive and test it. This version solves this 
problem. I have a side effect : the agenda display doesn't work anymore.
I have the following message when I stroke C-c a a.
Press key for agenda command:
let*: Symbol's value as variable is void: diary-list-entries-hook


 Thanks,
 
 
 
 


Thanks





[O] org-velocity load problem

2011-09-20 Thread d . tchin
Hi all,

This post just to warn that org-velocity is not loaded with Emacs 22.3.1.

I try to load org-velocity but I have the following message :
error: Unknown keyword :safe

I use GNU Emacs 22.3.1 (i386-mingw-nt6.1.7601) and Org-mode version 7.7.

I had the possibility to try with emacs 23.3 with the same org-mode version 
and it is loaded correctly.

After investigation, it seems related to custom.el file. Indeed the keyword is 
defined in the later version of emacs. 








[Orgmode] Re: Bug ? : org-babel and calc : calc-command-flags

2011-01-20 Thread d . tchin
Eric Schulte schulte.eric at gmail.com writes:

 
 Hi d.tchin,
 

Hi Eric

 This problem is caused because (as you point out) the calc-command-flags
 variable is not defined.  In my Emacs version calc-command-flags is
 provided by (require 'calc) which is part of Babel's calc support, this
 variable must be part of another package in your distribution.
 

Strange as I can load calc package in emacs. Indeed when I try to 
get information on this variable with C-h v, there is nothing.
I have a look on calc.el and I have the following lines (1428):

(defvar calc-aborted-prefix nil)
(defvar calc-start-time nil)
(defvar calc-command-flags)
(defvar calc-final-point-line)
(defvar calc-final-point-column)

Indeed, when I tried to use C-h v on the two first variable, it match.
But not for the following. The main difference is that the first two 
variable have the nil value and not the following.


 As a work around you should find which calc package provides the
 calc-command-flags variable and manually require that package, which
 should resolve this problem.  More generally it may be useful to upgrade
 from Emacs 22 if that is an option.
 

I put a (require 'calc) in my .emacs. It is still not working.
I decide to put the following instruction in my .emacs :

(require 'calc) 
(defvar calc-command-flags nil)

Then it works ! 
It seems that there is problem of initialization of this variable.
Shouldn't this variable be initialized by default in calc ?

Thank you for your help.

d.tchin



 Best -- Eric
 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Bug ? : org-babel and calc : calc-command-flags

2011-01-20 Thread d . tchin

Eventually I prefer to use the following instruction in the
buffer where I will use calc with babel.


#+begin_src emacs-lisp :results silent
  (require 'ob-calc)
  (defvar calc-command-flags nil)
#+end_src

Thank you for your help. 


d.tchin



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug ? : org-babel and calc : calc-command-flags

2011-01-19 Thread d . tchin
Hello,

I tried to use calc with babel but it doesn't work as expected.

I use the following block with simple instruction :
#+begin_src calc 
2*3
#+end_src

I didn't get back any results.

I launch calc and it seems to be called as I have following output
--- Emacs Calculator Mode ---
1:  6
.


So the instructions seems to be sent to calc. 

I have the following message error message :

executing Calc code block...
calc-push-list: Symbol's value as variable is void: calc-command-flags


I use :
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Org-mode version 7.4

Regards

d.tchin


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Property inheritance in Org-collector

2011-01-11 Thread d . tchin
Eric Schulte schulte.eric at gmail.com writes:

I used new version of org-collector as you suggested. It works well.

Thank you.

Regards.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Property inheritance in Org-collector

2011-01-08 Thread d . tchin
Christian Moe mail at christianmoe.com writes:

 
 Hi,
 
 I'm trying to use an Org document as the database for a textbook 
 analysis and Org-collector.el to output reports.
 
 With org-use-property-inheritance set to `t', and working in sparse 
 trees, I fail to get inherited properties to show up in the dynamic 
 block: the value returned is 0. Is this the expected behavior, and is 
 there any way to change things so I can get inherited properties?
 

I am interested by this too. I tried to have inherited properties and 
had the same problem whereas I fixed org-use-property-inheritance 
to 't. 

I test that inheritance work with the following test :

* Inheritance
#+BEGIN: propview  :cols (ITEM test) :scope tree 
:conds ((string= test appear)) 
| ITEM| test   |
|---+--|
| First level | appear |
|---+--|
|   |  |
#+END:

#+BEGIN: propview :cols (ITEM CATEGORY) :scope tree 
:conds ((string= CATEGORY level)) 
| ITEM   | CATEGORY |
|--+|
| First level| level|
| Test inheritance 1 | level|
| Test inheritance 2 | level|
|--+|
|  ||
#+END:

** First level
  :PROPERTIES:
  :test: appear
  :CATEGORY:  level
  :COLUMNS:  %34ITEM %plats %ingredient
  :END: 
*** Test inheritance 1
(org-entry-get (point) test t)
 Test inheritance 2
 (org-entry-get (point) test t)
** Second level
*** Test inheritance 3
(org-entry-get (point) test t)



I expect to have the same behavior for CATEGORY and test properties.
If you evaluate lisp expression you will notice that inheritance seems 
to works.




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Babel+gnuplot on Worg

2010-09-10 Thread d . tchin
Hi,

Thank you for this document. It is really of great help.

I would like to do one remark. 

I tried to make gnuplot work on Windows system but I never 
really manageg to make it work in interactive way. I first
started to use org-plot. It doesn't work under Windows.  
In fact it seems related to way inferior process is handled 
in gnu emacs ? 

Anyway I tried to use gnuplot with org-babel. It doesn't
work very well unless I use session none. 

Below a thread related to this question :

http://thread.gmane.org/gmane.emacs.orgmode/28266/focus=28270

I don't know if this situation is the same elsewhere and if it 
could be corrected. Anyway this solution works for me. 
Perhaps if it is checked elsewhere, it could be mentioned.

Regards



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Babel+gnuplot on Worg

2010-09-10 Thread d . tchin
Hi,


 
 
 Forgive me... not sure I'm tracking completely.
 
 - When you say It doesn't work under Windows are you referring to the org-
plot method?
 - But org-babel does work if you use session none
 --- Sorry, what is session none? I've not heard of that before.

Don't be sorry, I wasn't clear. In fact org-plot doesn't on emacs running 
on Windows OS. 
With org-babel implementation it doesn't work (emacs freeze) except 
when I use option of :session none and direct output in png file.
An example below that was in post I gave in link in previous mail :


--8---cut here---start-8---

#+begin_src gnuplot :session none :file out.png
set terminal png
set xlabel gx;set ylabel gy;set zlabel gz
set grid xtics ytics 
set view 0,0
plot cos(x)
#+end_src

--8---cut here---end---8---

#+results:
[[file:out.png]]

...

 My apologies if I'm being dense! Just not sure exactly what it is you're 
looking for. I have access to a Win machine (though am normally using Linux), 
so if you present your problem I can try to figure out what it is and include 
a note about it on Worg.
 

In fact I am interested to know if you have same kind of problem. 
I thought that could be mentioned if it is the case.

Many thanks to you.

Regards



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Export function to Vcal file

2010-09-10 Thread d . tchin
Hi

I see that there is org-export-icalendar-* functions. 
Is there a function that allows to export to *.vcs file
which are recognized by Palm Os ?

Regards



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda and weather forecast

2010-09-10 Thread d . tchin
Hi,

Just to follow previous discussion about having city.

Julien Danjou add a new entry in org-google-weather-format
that allows to get City for which the weather is asked for.
It is possible to customize this variable. 

The default format is %i %c, %l-%h %s . 
If you can add %C for city : %C %i %c, %l-%h %s.

For example I have the following entry :

#+CATEGORY: Meteo 
%%(org-google-weather Caen FR)


When I display agenda, I have the following :

 Meteo:  Caen, Lower-Normandy icon  Couverture nuageuse partielle, 12-22 ℃

Curiously, I have the city following by the region in english whereas the 
other outputs are in french as expected.




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda and weather forecast

2010-09-09 Thread d . tchin
Julien Danjou julien at danjou.info writes:

 
 Hi folks,
 
 If anybody is interested, I've wrote an small extension to put some
 weather forecasts in the agenda.
 
 It can be found here[1]. I've blogged about it yesterday, so if you're
 curious you can read the entry[2].
 
 Happy hacking,
 
 [1]  http://julien.danjou.info/google-weather-el.html
 [2]  http://julien.danjou.info/blog/
 


It is really beautiful extension. 

I would like to ask one question. I would like to be able
to do several forecast for different locations. 
For example I had the following entries : 
%%(org-google-weather Paris FR)
%%(org-google-weather Caen FR)

In the agenda I have the forecasts for the two locations but 
I have no idea on the output about the related locations. 
I have following ouput :

  Agenda: icon Couverture nuageuse partielle, 13-24 °C
  Agenda: icon Brouillard, 13-23 °C

How can we had the locations. Something like :

  Agenda: *Paris*, icon Couverture nuageuse partielle, 13-24 °C
  Agenda: *Caen*, icon Brouillard, 13-23 °C

Regards



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda and weather forecast | multiple forecasts

2010-09-09 Thread d . tchin
Juan Pechiar at computer.org writes:

 
 A simple way is to use the category declaration:
 
 #+CATEGORY: Paris
 %%(org-google-weather Paris FR)
 #+CATEGORY: Caen
 %%(org-google-weather Caen FR)
 #+CATEGORY: Agenda
 ... other stuff
 
 Regards,
 .j.
 

Thank you for your answer. 

In fact I was thought that the information was already
in expression (org-google-weather Paris FR) and 
the way was to extract it. But I like your suggestion.








___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda and weather forecast

2010-09-09 Thread d . tchin
 d.tchin writes:

I didn't use the level I would like to use for answering.
As I reply to Juan, I like your suggestion of using CATEGORY. 

Thank you for your help.



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] lob evaluation : a bug ?

2010-08-05 Thread d . tchin
Hi,

I try to evaluate function already defined in library-of-babel. 
But whatever the function I try to evaluate I have the following
error output get from buffer *Messages* :

setf: Wrong type argument: consp, nil

For example I use the following :

#+tblname: R-plot-example-data
| 1 |  2 |
| 2 |  4 |
| 3 |  9 |
| 4 | 16 |
| 5 | 25 |

#+srcname: R-plot(data=R-plot-example-data)
#+begin_src R :session *test*
plot(data)
#+end_src

When I evaluate block it works (with C-c C-c).

Then when I try to evaluate the following line :
#+lob: R-plot(data=R-plot-example-data)

With C-c C-c on this line I have the following answer :
Local setup has been refreshed

With C-c C-v e, emacs asks me : Evaluate this code on your system ?
I answer yes and I have the message :
Wrong type argument: consp, nil

I use the following versions of emacs and org-mode

GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Org-mode version 7.01g









___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Babel] gnuplot, table entry and temporary file

2010-08-02 Thread d . tchin
Hi, 


Before asking my question, I would like to give few remarks
about use of gnuplot with org-babel and the reason why I
asked this question.
I tried to use it with org-plot but I was not really satisfied
as it didn't work clearly well with emacs installed on MS Windows.

Below a thread about this problem :
http://thread.gmane.org/gmane.emacs.orgmode/15036/focus=15032 

Since gnuplot is available from Babel I tried to use to check
if I have less problem with MS Windows. If I used it with 
session none and make a redirection to output file, it works 
well for me.

Below an example the way I use it :

--8---cut here---start-8---

#+begin_src gnuplot :session none :file out.png
set terminal png
set xlabel gx;set ylabel gy;set zlabel gz
set grid xtics ytics 
set view 0,0
plot cos(x)
#+end_src

--8---cut here---end---8---

#+results:
[[file:out.png]]

With org-plot it was possible to give a table in entry. Org-plot 
was able to write temporary file that was used by gnuplot. 

I haven't seen such a wrapped function for gnuplot use with babel
and I wonder if it is possible to pass a table in gnuplot
block that will create a generic tmpfile.dat used by gnuplot ?

Is there a elisp function that could be use to create such file 
that could be used afterwards ?

Something that could look like this :

--8---cut here---start-8---
#+tblname: tablein
 |  A |  B|
 ++---+
 | 257.72 | 21.39 |
 | 165.77 | 19.68 |
 |  71.00 | 11.50 |
 | 134.19 | 14.33 |
 | 257.56 | 17.67 |

#+lob: functiontowrite(table=tablein, filename=tmpfile_tablein.txt)
--8---cut here---end---8---


An then use tmpfile_tablein.txt in gnuplot block.

--8---cut here---start-8---
#+begin_src gnuplot :session none :file test.png
  set terminal png
  plot 'tmpfile_tablein.txt' us 1:2
#+end_src
--8---cut here---end---8---

Is there a tips that could be used to approach this way of doing ?





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] gnuplot, table entry and temporary file

2010-08-02 Thread d . tchin
 d.tchin write 



Sorry, please forget the last question. 
I have just seen a thread related to gnuplot that answers 
to this question. 

Below a link to this thread :

http://thread.gmane.org/gmane.emacs.orgmode/27990/focus=27998




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [BABEL] Output with octave

2010-07-26 Thread d . tchin
Eric S Fraga ucecesf at ucl.ac.uk writes:

 
 I don't think you are missing anything obvious as for the :results
 value case, I get the same thing.  In fact, for :results output, I
 don't actually get any output!  I'm not sure why.  I wonder if there
 is a dependence on the version of Octave?  I'm using a fairly old
 version (3.0.x instead of 3.2.x).
 

I use following version of Octave : 

GNU Octave, version 3.2.0
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for i686-pc-mingw32.



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-collector : display problem with propview

2010-07-23 Thread d . tchin
Eric Schulte schulte.eric at gmail.com writes:

 
 Hi,
 
 The following minimal patch to org-collector.el should remove tags from
 the ITEM text, which will also remove the many \n characters.  Please
 let me know if this works for you.
 
 Thanks -- Eric
 
 
 Attachment (org-collector-w-o-tags.patch): text/x-diff, 569 bytes
 
 
 d.tchin d.tchin at voila.fr writes:
 

Hi Eric,

It works as expected.

Thanks

d.tchin


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BABEL] Output with octave

2010-07-23 Thread d . tchin
Hi

I use babel to use with octave language. I use it and
define a session so as to have interaction with
octave process. 

It is great to have interaction with octave and
check the action of the code easily.

I have problem to get output back in org mode file. 
I try the following code :


--8---cut here---start-8---
#+tblname: test
| 1 | 2 | 3 |

#+source: outtest
#+begin_src octave  :session *out*   :var vec=test :results output
vecb=vec;
vecb
#+end_src

--8---cut here---end---8---

You will get following output

#+results: outtest
: vec =
: 
:1   2   3
: octave.exe vecb =
: 
:1   2   3

As you see I get two outputs : vec variable and vecb (with octave prompt).
It is what I expected, excepted vec output.

With :results value 

--8---cut here---start-8---
#+tblname: test
| 1 | 2 | 3 |



#+source: outtest
#+begin_src octave  :session *out*   :var vec=test :results value
vecb=vec;
vecb
#+end_src

--8---cut here---end---8---

I get the following output 


#+results: outtest
: org_babel_eoe

In the octave process, I check that it the last intruction. But 
what I would expect is to get last instruction vecb.

I certainly miss something. Could someone help me on this ?




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-collector : display problem with propview

2010-07-22 Thread d . tchin
Hi

I try to use org-collector. Since I have changed org-mode to release 7.01
there is a modification in the display of propview.


Below an example :

-

* View
#+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside1 
| ITEM | CATEGORY   |
|+--|
| Inside first a \n\n\n\n\n\n:Inside1: | firstentry |
| Inside first b \n\n\n\n\n\n:Inside1: | firstentry |
|+--|
||  |
#+END:


#+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside2 
| ITEM   | CATEGORY|
|--+---|
| Inside second\n\n\n\n\n\n:Inside2: | secondentry |
|--+---|
|  |   |
#+END:
  
** First entry
   :PROPERTIES:
   :CATEGORY:  firstentry
   :END:
*** Inside first a  :Inside1:
*** Inside first b  :Inside1:
** Second entry
   :PROPERTIES:
   :CATEGORY:  secondentry
   :END:   
*** Inside second   :Inside2:



There were \n added after ITEM entry then the tag. 

Subsidiary question : is it possible not to display the tag in propview
ang ITEM entry. 


GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Org-mode version 7.01



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-collector : display problem with propview

2010-07-22 Thread d . tchin
 d.tchin writes:

 
 Hi
 

...

 Subsidiary question : is it possible not to display the tag in propview
 ang ITEM entry. 

Sorry. For this question, what I want is to get ITEM entry without the
tag in propview display.

 
 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
 Org-mode version 7.01
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode at gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Getting a Google Maps' map for an entry

2010-07-02 Thread d . tchin
 d.tchin writes:

 
 Julien Danjou julien at danjou.info writes:
 
  
  Hi there,
  
  I've recently wrote a Google Maps extension for Emacs[1].
  
  Therefore, I've extended org-mode to display a Google Maps' map for an
  event location. The extension, which is very simple, is available
  here[2] and I wanted you to know about it.
  
  I'd be glad to have feedback. patches or ideas. ;)
  
  Happy hacking.
  
  [1]  http://julien.danjou.info/google-maps-el.html
  
  [2]  http://git.naquadah.org/?p=~jd/jd-el.git;a=blob;f=org-location-google-
 maps.el;hb=HEAD
  
 
 Dear Julien
 
 I tried to use Google Maps extension. When I tried to load it, I found out 
 that json.el was required. It seems that this package is included 
in recent 
 emacs version (?).  My version is GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) 
of 
 2008-09-06. I loaded it but then I have another error telling that the 
function
 use-region-p doesn't exist. It seems that this function appears with emacs 
23.
 So this mail just to tell that it seems necessary to have at emacs 23 
 to make this function work.

Just one comment following previous mail.
Just tried with emacs 23.2. It works very well on this version and it is 
really great.

The bad thing is that this version of emacs is quite slow on Windows system. 
As far I understood it seems to be related to font handling. There is a lot of 
lag, the system freeze. 

So sadly I have to return to release 22.3.1 which is more robust.


d.tchin




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-babel-R and windows ?

2010-01-13 Thread d . tchin
Dan Davison davison at stats.ox.ac.uk writes:
 The org-babel default is to invoke R as an external shell command, and I
 think this is what is causing the problem. It requires that the emacs
 function shell-command can use the string R to invoke an R process,
 i.e. the R installation and the shell path must be such that this is the
 case.

Thank you for the information and explanation.
It seems that the problem comes from the windows shell. 

I try the following :  I explicitely told emacs to use bash 
with the following instructions :
(setq explicit-shell-file-name C:/msys/1.0/bin/bash.exe)
(setq shell-file-name explicit-shell-file-name)

It works with bash.


 
 #+srcname:trial
 #+begin_src R :session org-babel-R-session
c(4,5,6,7,8,9)
 #+end_src

The session way works too.

Thank you.






___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-babel-R and windows ?

2010-01-12 Thread d . tchin

I need help to be able to use org-babel functionality. 
I use emacs 22.3.1 in windows XP and org-mode 6.34.

I have the following instructions in .emacs

(require 'org-install)
(require 'org-plot)
(require 'org-babel-init)  
(require 'org-babel-R) ;; requires R and ess-mode
(require 'org-babel-python);; requires python, and python-mode
(require 'org-babel-ditaa)

ESS module is loaded before :

(load ~/emacs/emacs-22.3/site-lisp/ess-5.7.1/lisp/ess-site)


I don't manage to get any output with R Software. 

Below you will find test I have done :

#+srcname:trial
#+begin_src sh
  echo output
#+end_src

#+results: trial
: output

#+srcname:trial
#+begin_src R
  c(4,5,6,7,8,9)
#+end_src


I manage to have shell output, but when I tried R procedure,
I have the following output in *Messages* buffer

executing R source code block...
Syntaxe du nom de fichier, de répertoire ou de volume incorrecte.
Source block produced no output

I have a look on temporary directory and I have the folllowing
file :

R-in-functional-results4452lyl

Inside the following source code :

main - function ()
{

c(4,5,6,7,8,9)


}
write.table(main(), file=c:/Temp/emacs/tmp/R-out-functional-results4452y8r, 
sep=\t, na=nil,row.names=FALSE, col.names=FALSE, quote=FALSE)


The file  R-out-functional-results4452y8r exists but is empty.
What I miss to make it work ?

Regards



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Latex export and label entries

2009-12-08 Thread d . tchin
Hi

Carsten Dominik carsten.dominik at gmail.com writes:

 
 Hi,
 On Dec 2, 2009, at 2:51 PM, d.tchin at voila.fr wrote:
 
 
  Hi,
 
  I use org-export-latex to create latex powerdot
  file. I make adaptation of template defined for
  beamer class and it works quite well.
 
  I have a problem I would like to submit :
 
  By default in each section or slide (frame) environment,
  there is a label added by default. This instruction
  is not recognized by powerdot class. Is there a way
  to prevent org-export-latex function to add such label
  entries ?
 
 a work-around would be to add this to your powerdot definition of org- 
 export-latex-classes:
 
 \def\label#1{}
 

Thank you for the advice. I add the instruction you suggest.
with org-export-latex-classes. In fact it work if this intruction
appears after \begin{document}. 
I have managed to add it before \begin{document} with 
org-export-latex-classes but not after . How could I make appear
this intruction only one time after \begin{document} ?

Regards




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Latex export and label entries

2009-12-02 Thread d . tchin

Hi,

I use org-export-latex to create latex powerdot
file. I make adaptation of template defined for 
beamer class and it works quite well. 

I have a problem I would like to submit :

By default in each section or slide (frame) environment, 
there is a label added by default. This instruction 
is not recognized by powerdot class. Is there a way 
to prevent org-export-latex function to add such label 
entries ? 

My document is following

#+LaTeX_CLASS: powerdot
#+TITLE: Presentation
#+AUTHOR: author
#+OPTIONS: H:2 num:t toc:nil

* Test 1
** Test in 1
*** Test in 1 in 1
* Test 2
** Test in 2
*** Test in 2 in 2

If you want to reproduce, you can substitute powerdot 
by beamer for LaTeX_CLASS definition. You will find in 
tex file the following :

\section{Test 1}
\label{sec-1} = 


Thanks



Michael Jackson, Susan Boyle, Black Eyed Peas ... Retrouvez leurs derniers 
titres sur http://musiline.voila.fr





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-plot : interaction problem with gnuplot

2009-06-30 Thread d . tchin
Hi 

Thank you for your help.

1°) I try to use comint buffer and to launch few commands. I don't
really understand the way comint works but it seems that each 
time that I use a command, there is a freeze, and to access 
back to the emacs  buffer I have to use \C-g several times. 

2°) I put the instruction you suggested. I try to use org-plot/gnuplot 
and I have the following output on message buffer:

OVERVIEW
org-plot/gnuplot
CHILDREN
Loading d:/perso/home/emacs/emacs-22.2/lisp/org/lisp/org-plot.el (source)...done
script is reset
set title 'Citas'
set yrange [0:]
progn: Wrong number of arguments: (lambda (line) (block add-to-script (setf 
script (format %s
%s script line, 2
Mark set


Thanks


 Message du 26/06/09 à 03h37
 De : Eric Schulte 
 A : d.tc...@voila.fr
 Copie à : emacs-orgmode@gnu.org
 Objet : Re: [Orgmode] org-plot : interaction problem with gnuplot
 
 
 d.tc...@voila.fr writes:
 
  Hi,
 
  I would like to use gnuplot with org-mode tabular function.But I
  haven't managed to use it until now. 
  I would like to submit to you few remarks I have done.
 
  I use GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) on Microsoft Windows XP OS.
  I have installed gnuplot and I can use it with gnuplot-mode. 
 
  I tried to follow the tutorial of Eric Schulte but I didn't manage to get a 
  plot of
  simple example extracted from the tutorial.
 
  I use these data defined in a file orgplot.org :
  #+PLOT: title:Citas ind:1 deps:(3) type:2d with:histograms set:yrange 
  [0:]
  | Sede | Max cites | H-index |
  |+---+-|
  | Chile | 257.72 | 21.39 |
  | Leeds | 165.77 | 19.68 |
  | São Paolo | 71.00 | 11.50 |
  | Stockholm | 134.19 | 14.33 |
  | Morelia | 257.56 | 17.67 |
 
 
  When I use org-plot/gnuplot, gnuplot is launched with only the reset command
  and emacs is totally freezed. To get back to emacs, I use \C-g command. 
 
 
 Hmm, it is not clear to me what is happening here. It is possible that
 the problem is somehow related to running on a windows machine, as I
 have only personally tested org-plot on linux and Mac OS's.
 
 The only two things I can think of at the moment are
 1. the reset command is freezing on your machine, you could test this
 out by starting up a gnuplot comint buffer and entering the reset
 command 
 2. for some reason the script is not being set to the correct value, you
 could test this by adding the following line
 
 (message script is %s script)
 
 right after line 263 in lisp/org-plot.el, then reloading that
 function (with C-M-x) and running org-plot-gnuplot again, checking
 the message buffer to see the contents of the script variable.
 
 Sorry I can't be of more help. If I find time I may re-write org-plot
 to use org-babel (see any of my other recent emails for more information
 on org-babel) which could eliminate this problem.
 
 Please do let me know the results of looking into the above suggestions,
 or if you have any ideas breakthroughs.
 
 Thanks -- Eric
 
 
  I have checked few things :
 
  - org-plot/gnuplot managed to build a temporay file org-plot with the 
  following 
  data
 
  Chile 257.72 21.39
  Leeds 165.77 19.68
  São Paolo 71.00 11.50
  Stockholm 134.19 14.33
  Morelia 257.56 17.67
 
 
 That looks right
 
  
  - I suppose that org-plot/gnuplot builds a temporary buffer with the 
  instructions 
  that will be sent to gnuplot. I checked that *gnuplot* buffer with 
  gnuplot-show-gnuplot-buffer. There is only the reset command.
 
 
 That makes sense, it is still possible that the entire command is being
 constructed, but that Emacs is freezing before anything after the
 reset line are evaluated and dropped into the *gnuplot* buffer. The
 above `message' statement should resolve whether this is the case.
 
 
  Do you have any idea to solve this problem ?
 
  Regards
 
  Tchin
 
 
 
 
 
  
 
  Découvrez Cocoon et Catpower dans notre sélection musicale folk sur Voila 
  http://musiline.voila.fr
 
 
 
 
  ___
  Emacs-orgmode mailing list
  Remember: use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 



Retrouvez les meilleurs titres de Michael Jackson sur 
http://musiline.voila.fr/player/createtag/935918




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-plot : interaction problem with gnuplot

2009-06-19 Thread d . tchin
Hi,

I would like to use gnuplot with org-mode tabular function.But I
haven't managed to use it until now. 
I would like to submit to you few remarks I have done.

I use GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) on Microsoft Windows XP OS.
I have installed gnuplot and I can use it with gnuplot-mode. 

I tried to follow the tutorial of Eric Schulte but I didn't manage to get a 
plot of
simple example extracted from the tutorial.

I use these data defined in a file orgplot.org :
#+PLOT: title:Citas ind:1 deps:(3) type:2d with:histograms set:yrange [0:]
| Sede   | Max cites | H-index |
|+---+-|
| Chile  |257.72 |   21.39 |
| Leeds  |165.77 |   19.68 |
| São Paolo | 71.00 |   11.50 |
| Stockholm  |134.19 |   14.33 |
| Morelia|257.56 |   17.67 |


When I use org-plot/gnuplot, gnuplot is launched with only the reset command
and emacs is totally freezed. To get back to emacs, I use \C-g command. 

I have checked few things :

- org-plot/gnuplot managed to build a temporay file org-plot with the 
following 
  data

Chile 257.72  21.39
Leeds 165.77  19.68
São Paolo71.00   11.50
Stockholm 134.19  14.33
Morelia   257.56  17.67


- I suppose that org-plot/gnuplot builds a temporary buffer with the 
instructions 
  that will be sent to gnuplot. I checked that *gnuplot* buffer with 
  gnuplot-show-gnuplot-buffer. There is only the reset command.

Do you have any idea to solve this problem ?

Regards

Tchin







Découvrez Cocoon et Catpower dans notre sélection musicale folk sur Voila 
http://musiline.voila.fr




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode