Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-22 Thread Lele Gaifax
Nicolas Goaziou  writes:

>> Do you know if/when it will be merged into Emacs?
>
> I don't know, but that will not happen before Emacs 25.1 release.

Thanks anyway, I installed latest development sources and I appreciate the
work that has been done in this (and many other) areas: the new colview
produces a much nicer LaTeX!

One minor issue: previously I used a custom setting for the variable
`org-time-clocksum-format`, to print something like "2gg 03:10" instead of "2d
03:10". With the version currently distributed with Emacs 25.1 it was used for
both the "effort" and "clocksum" columns, now only on the latter (matching
name and documentation). Is there an equivalent setting for the "effort"
sum, to get a table with the two columns sharing the same style? I tried to
look around in the sources and in the doc but I missed it...

BTW, in lisp/org-colview.el there is what seems a typo in the name of the
function `org-columns-hscoll-title`: since accordingly with "git grep" it is
referenced in two places and only in that source, is the following acceptable?

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index e29f88a..6809305 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -438,9 +438,9 @@ for the duration of the command.")
   (org-add-props " " nil 'display '(space :align-to 0))
   (org-add-props (substring title 0 -1) nil 'face 
'org-column-title)))
 (setq org-columns-previous-hscroll -1)
-(add-hook 'post-command-hook 'org-columns-hscoll-title nil 'local)))
+(add-hook 'post-command-hook 'org-columns-hscroll-title nil 'local)))

-(defun org-columns-hscoll-title ()
+(defun org-columns-hscroll-title ()
   "Set the `header-line-format' so that it scrolls along with the table."
   (sit-for .0001) ; need to force a redisplay to update window-hscroll
   (when (not (= (window-hscroll) org-columns-previous-hscroll))
@@ -463,7 +463,7 @@ for the duration of the command.")
   (when (local-variable-p 'org-previous-header-line-format)
(setq header-line-format org-previous-header-line-format)
(kill-local-variable 'org-previous-header-line-format)
-   (remove-hook 'post-command-hook 'org-columns-hscoll-title 'local))
+   (remove-hook 'post-command-hook 'org-columns-hscroll-title 'local))
   (move-marker org-columns-begin-marker nil)
   (move-marker org-columns-top-level-marker nil)
   (org-with-silent-modifications

Thanks a lot,
bye, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.




Re: [O] Add custom bare link syntax for intranet

2016-06-22 Thread Joe Schafer
Adding http:// works.  I'll stick with that for now.

On Tue, Jun 21, 2016 at 2:28 PM Nicolas Goaziou 
wrote:

> Joe Schafer  writes:
>
> > How can I linkify the following intranet links in org-mode?
> >
> > intra/link1-description
> > code/description
> >
> > By linkify, I mean the links should be fontified and clickable in
> org-mode.
> >
> > I don't want to add a custom link handler like `intra:` because I often
> > copy and paste links from the intranet.
>
> You cannot, at least without rewriting how Org handles links. However,
> I don't think how having "intra:" prefix is a burden, since you can
> easily add it automatically with a function.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] cache issue

2016-06-22 Thread John Kitchin
This also seems to have resolved itself with an update of org-mode.
Sorry for the noise.

Nicolas Goaziou writes:

> Hello,
>
> John Kitchin  writes:
>
>> I am having an issue with the org cache system. The scenario is I have
>> an org-ref cite link, and I can use shift- and shift- to
>> reorder the citation keys in the link.
>>
>> As soon as I do that though, the hints stop working because the link in
>> the buffer is not the same as  the one in the cache. If I reset the
>> cache, it works fine afterwards.
>>
>> I could add the cache reset to the rearrangment code to fix this, but I
>> wondered if that is the right thing to do. Any thoughts?
>
> Could you provide an ECM (admittedly, your message is close to providing
> one)? I don't use org-ref so I do not have access to its shift-
> binding.
>
> Regards,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] when cursor is right after link Enter opens link

2016-06-22 Thread John Kitchin
Yep. an upgrade fixed it. Thanks,

Nicolas Goaziou writes:

> Hello,
>
> John Kitchin  writes:
>
>> I noticed that when my cursor is right after a link, and I press enter,
>> the link opens. Is this new in org 8.3? I don't recall it happening in
>> 8.2
>>
>> Is there a configuration variable to stop that?
>
> You are probably not using latest stable release. The fix was backported
> in maint a couple of weeks ago. I suggest to update Org.
>
> Regards,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Table (used a "spreadsheet") org-sbe issues when the value is a string

2016-06-22 Thread Nicolas Goaziou
Hello,

Frederick Giasson  writes:

> Now, if I put a string in the format column, I al getting the following:
>
> 
>
> #+NAME: average-dataset-size
> #+BEGIN_SRC clojure :var f="turtle" :exports none :results value
> (identity f) #+END_SRC
>
> #+RESULTS: average-dataset-size
> : turtle
>
>
> | Format | Sizes distribution in MB | Average size in MB |
> |+--+|
> | turtle |  | #ERROR |
> #+TBLFM: $3='(org-sbe "average-dataset-size" (f $1))
>
> 

According to `org-sbe' docstring, it should be

  #+TBLFM: $3='(org-sbe "average-dataset-size" (f $$1))

Documentation could be drastically improved in that area, the manual is
not even talking about `org-sbe'.

Regards,

-- 
Nicolas Goaziou



Re: [O] Problems with org-drill

2016-06-22 Thread Nicolas Goaziou
Hello,

Alan Schmitt  writes:

> I just started using org-drill, and I'm seeing the same issue (using
> current org-plus-contrib from elpa). I tried to follow the link to the
> "little function" but I get a 404. Any suggestion to get rid of the
> bug?

Hopefully, it is now fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-22 Thread Nicolas Goaziou
Hello,

Lele Gaifax  writes:

> Do you know if/when it will be merged into Emacs?

I don't know, but that will not happen before Emacs 25.1 release.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-export-with-broken-links doesn't apply to footnotes

2016-06-22 Thread Nicolas Goaziou
Hello,

Mark Edgington  writes:

> I have noticed, however, that even if I have (setq
> org-export-with-broken-links 't), I am still unable to export a
> narrowed buffer that contains a footnote reference ("Definition not
> found for footnote...").  Is this behavior intentional?

No, it isn't. However I could only reproduce it with empty footnote
definitions.

In any case, this is now fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Haskell source blocks?

2016-06-22 Thread Anthony Cowley

Lawrence Bottorff writes:

> I'm guessing Haskell and org-mode Babel aren't really a great match? After
> installing haskell-mode, I've tried
>
> #+begin_src haskell
> doubleMe x = x + x
> #+end_src
>
> which isn't working . . . because it isn't allowed in the ghci?
>
> #+begin_src haskell
> let doubleMe x = x + x
> #+end_src
>
> works. However,
>
> #+begin_src haskell
> let doubleSmallNumber4 x = if x > 0
> then x
>  else x*2
> #+end_src
>
> complains of a parsing error on else. How does Haskell work in org mode?
>
> LB

I use IHaskell with ob-ipython. It does what you want from babel and even makes 
in-line figure generation relatively painless.

Anthony



Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-22 Thread Lele Gaifax
Nicolas Goaziou  writes:

> Lele Gaifax  writes:
>
>> I know this is an ancient thread, but it seems the problem is still there, in
>> Emacs 25.
>
> "org-colview" was rewritten recently. IIRC, this is fixed in development
> version of Org.

Great, thank you!

Do you know if/when it will be merged into Emacs? I will probably try it out
on my own machine, but I guess a few coworkers won't be going to install it
from upstream repos...

bye, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.




Re: [O] cache issue

2016-06-22 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I am having an issue with the org cache system. The scenario is I have
> an org-ref cite link, and I can use shift- and shift- to
> reorder the citation keys in the link.
>
> As soon as I do that though, the hints stop working because the link in
> the buffer is not the same as  the one in the cache. If I reset the
> cache, it works fine afterwards.
>
> I could add the cache reset to the rearrangment code to fix this, but I
> wondered if that is the right thing to do. Any thoughts?

Could you provide an ECM (admittedly, your message is close to providing
one)? I don't use org-ref so I do not have access to its shift-
binding.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: not defined [8.2.10 (release_8.2.10 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2016-06-22 Thread Nicolas Goaziou
Hello,

Kejia柯嘉  writes:

> I tested with `q' option, and the same issue:
> [C-c '] is undefined
>
> I tested with Emacs 25.1.50.1, night building of 2016-06-21, from
> emacsformacosx.com .

I don't know. You could try development version of Org. Some major/minor
mode might be unbinding C-c '.

Regards,

-- 
Nicolas Goaziou



Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-22 Thread Nicolas Goaziou
Hello,

Lele Gaifax  writes:

> I know this is an ancient thread, but it seems the problem is still there, in
> Emacs 25.

"org-colview" was rewritten recently. IIRC, this is fixed in development
version of Org.

Regards,

-- 
Nicolas Goaziou



Re: [O] when cursor is right after link Enter opens link

2016-06-22 Thread Stefan-W. Hahn
Mail von John Kitchin, Wed, 22 Jun 2016 at 11:25:29 -0400:

Hello,

> I noticed that when my cursor is right after a link, and I press enter,
> the link opens. Is this new in org 8.3? I don't recall it happening in
> 8.2

this was a regression and solved in

21ba5f510ede30b74e8aa5878a659266ed21c25b
Refuse to follow link right after the link
Author: Nicolas Goaziou 
AuthorDate: Sat Oct 31 23:32:47 2015 +0100
Commit: Nicolas Goaziou 
CommitDate: Tue May 31 23:34:00 2016 +0200

With kind regards,
Stefan

-- 
Stefan-W. Hahn  It is easy to make things.
It is hard to make things simple.



[O] org-export-with-broken-links doesn't apply to footnotes

2016-06-22 Thread Mark Edgington
The org-export-with-broken-links option was introduced in order to
allow exports to proceed when a link isn't able to be resolved.
Sometimes this happens when trying to export a narrowed region of a
buffer.

I have noticed, however, that even if I have (setq
org-export-with-broken-links 't), I am still unable to export a
narrowed buffer that contains a footnote reference ("Definition not
found for footnote...").  Is this behavior intentional?  If so, is
there a way to get the same effect as org-export-with-broken-links for
footnotes?

Regards,

Mark



Re: [O] Bug: not defined [8.2.10 (release_8.2.10 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2016-06-22 Thread Kejia柯嘉
Hi Nicolas,

I tested with `q' option, and the same issue:
[C-c '] is undefined

I tested with Emacs 25.1.50.1, night building of 2016-06-21, from
emacsformacosx.com .

---
Daniel

☵☯☲
2016年6月15日 下午12:45,"Nicolas Goaziou" 写道:

> Hello,
>
> Kejia柯嘉  writes:
>
> > I tried 8.3, but the issue is there, too.
>
> Did you try with "emacs -q" (or equivalent)? Also, what is the major
> mode used in the code editing buffer? It may be rebinding .
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Haskell source blocks?

2016-06-22 Thread Lawrence Bottorff
I'm guessing Haskell and org-mode Babel aren't really a great match? After
installing haskell-mode, I've tried

#+begin_src haskell
doubleMe x = x + x
#+end_src

which isn't working . . . because it isn't allowed in the ghci?

#+begin_src haskell
let doubleMe x = x + x
#+end_src

works. However,

#+begin_src haskell
let doubleSmallNumber4 x = if x > 0
then x
 else x*2
#+end_src

complains of a parsing error on else. How does Haskell work in org mode?

LB


Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-22 Thread Lele Gaifax
Hi all,

I know this is an ancient thread, but it seems the problem is still there, in
Emacs 25.

FWIW, this is my quick and dirty fix, that at least produce a readable output,
in Emacs as well as in the PDF output.

(require 'org-colview)

;; Quick&dirty workaround to 
http://article.gmane.org/gmane.emacs.orgmode/25821: replace
;; asterisks with some other character in the table automatically built by 
org-colview, because
;; when the table is exported to LaTeX they are misinterpreted as emphasis 
markup, resulting in
;; an unreadable hierarchy.

(defun esk/org-replace-section-prefix (s)
  "Replace asterisks in  Org heading with em-dashes."
  (when (string-match org-outline-regexp-bol s)
(setq s (replace-match
 (concat (make-string (- (match-end 0) (match-beginning 0) 1) 
?—)
 " ")
 t t s)))
  s)

(defun org-listtable-to-string (tbl)
  "Convert a listtable TBL to a string that contains the Org-mode table.
The table still need to be aligned.  The resulting string has no leading
and trailing newline characters."
  (mapconcat
   (lambda (x)
 (cond
  ((listp x)
   (concat "|" (esk/org-replace-section-prefix (mapconcat 'identity x 
"|")) "|"))
  ((eq x 'hline) "|-|")
  (t (error "Garbage in listtable: %s" x
   tbl "\n"))

Of course I'll be happy to hear about any better way to do it!

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.




Re: [O] Does org-nofity uses dbus?

2016-06-22 Thread Fabrice Popineau
2016-06-22 14:16 GMT+02:00 Xi Shen :

> Well~that's good news. But I think dbus requires X11 to work. But in
> Cygwin environment, people usually do not configure a full X11 environment.
>

No, dbus doesn't require X11 to work. Neither does emacs require  Cygwin to
work.
Actually, Emacs compiles as a native Windows application (using MinGW32 or
MinGW64) and it is also the case of dbus.


> Besides, for org-notify, could dbus help it playing a notification sound
> on Windows? Or popup a notification message?
>
>
I guess it will work the same way it does elsewhere.



> So what I am thinking is to get some Windows native behavior for
> org-notify on Windows/Cygwin environment.
>
>
I too think that a native, session only module that will provide the same
interface as dbus could be interesting
for Windows users. However, that shouldn't prevent those who want to use
dbus to use it.

AFAIU, using dbus, you could have a distant running emacs (ssh) session and
get notifications on your local desktop,
provided the right setup.

Well, browsing the source code, I see that Eli Zaretskii has already
implemented native win32 tray notifications.
They are a small subset of the dbus notifications.
However, he made them exclusive with dbus. I don't see the reason yet.

Fabrice


Re: [O] Does org-nofity uses dbus?

2016-06-22 Thread Nick Dokos
Xi Shen  writes:

> Well~that's good news. But I think dbus requires X11 to work. But in Cygwin 
> environment, people usually
> do not configure a full X11 environment.
>
I don't think that's true: dbus is "just" a message bus - an IPC
mechanism that different processes use to communicate. It has nothing to
do with X11 or any other windowing protocol.

The dbus-daemon manual page says:

   The systemwide daemon is largely used for broadcasting system events, 
such as changes
   to the printer queue, or adding/removing devices.

   The per-session daemon is used for various interprocess communication 
among desktop
   applications (however, it is not tied to X or the GUI in any way).


What makes you think that it requires X11?

> Besides, for org-notify, could dbus help it playing a notification sound on 
> Windows? Or popup a
> notification message?
>

Sure it could: you send a message on the dbus saying "play a sound" and some 
other
process listening on the dbus gets the message and plays a sound.

> So what I am thinking is to get some Windows native behavior for org-notify 
> on Windows/Cygwin
> environment.
>

Bad idea imo.

> On Tue, Jun 21, 2016 at 10:25 PM Fabrice Popineau 
>  wrote:
>
> Le 21 juin 2016 16:14, "Xi Shen"  a écrit :
> >
> > Yeah...getting dbus to work on Windows will be hard.
>
> Actually, not so much. Dbus does work on windows. It doesn't work right 
> now on emacs. I'm looking
> into it.
>
> Fabrice
>
> --
>
> Thanks,
> David S.
>

-- 
Nick




Re: [O] [BUG] Dynamic scoping of project-plist in preparation-function

2016-06-22 Thread Nicolas Goaziou
Arun Isaac  writes:

> After 5cd793c, the documentation for the preparation function says
> "Each preparation function is called with a single argument, the project
> property". This could be clearer if it is "... the project property
> list", as it is in the documentation for the completion function.

Indeed, that's a typo. Fixed. Thank you.

Regards,



Re: [O] when cursor is right after link Enter opens link

2016-06-22 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I noticed that when my cursor is right after a link, and I press enter,
> the link opens. Is this new in org 8.3? I don't recall it happening in
> 8.2
>
> Is there a configuration variable to stop that?

You are probably not using latest stable release. The fix was backported
in maint a couple of weeks ago. I suggest to update Org.

Regards,

-- 
Nicolas Goaziou



[O] when cursor is right after link Enter opens link

2016-06-22 Thread John Kitchin
I noticed that when my cursor is right after a link, and I press enter,
the link opens. Is this new in org 8.3? I don't recall it happening in
8.2

Is there a configuration variable to stop that?

Thanks,

-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] [BUG] Dynamic scoping of project-plist in preparation-function

2016-06-22 Thread Arun Isaac

> Done in 5cd793c.

After 5cd793c, the documentation for the preparation function says
"Each preparation function is called with a single argument, the project
property". This could be clearer if it is "... the project property
list", as it is in the documentation for the completion function.


signature.asc
Description: PGP signature


Re: [O] [BUG] Dynamic scoping of project-plist in preparation-function

2016-06-22 Thread Nicolas Goaziou
Hello,

Arun Isaac  writes:

>> 2. Require preparation functions to accept one parameter, the project
>>plist.
>
> I think adding project-plist as a parameter to preparation functions is
> definitely more elegant.

Done in 5cd793c.

> But, I also came across this old thread where it was noted that making
> project-plist a proper parameter, instead of it being dynamically scoped
> into the preparation function, would break a lot of code.

Bad code deserves to be broken anyway.

More seriously, the fix is trivial, so I don't think this is an issue.

Thank you for the feedback.

Regards,

-- 
Nicolas Goaziou



[O] cache issue

2016-06-22 Thread John Kitchin
Hi all,

I am having an issue with the org cache system. The scenario is I have
an org-ref cite link, and I can use shift- and shift- to
reorder the citation keys in the link.

As soon as I do that though, the hints stop working because the link in
the buffer is not the same as  the one in the cache. If I reset the
cache, it works fine afterwards.

I could add the cache reset to the rearrangment code to fix this, but I
wondered if that is the right thing to do. Any thoughts?

Thanks,

-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Using org-mode as a personal help desk tool

2016-06-22 Thread Roland Everaert
org-attach was the feature I needed.

Thank you.

On Mon, Jun 20, 2016 at 4:10 PM, Eric Abrahamsen 
wrote:

> Roland Everaert  writes:
>
> > Hi,
> >
> > I am working as a sysadmin, In the organization, we use 2 tools to
> > keep track of requests sent by the customers/users. As you can expect,
> > those tools are not meant to be used to track all the gritty details
> > of a sysadmin's job.
> >
> > So I am turning to org-mode (that I used for years) and its community
> > to find a way to organize my job and being able to track what I have
> > done and store the hundreds of lines of output from a command-line.
> >
> > I was wondering if it was possible to create directories and files
> > with org-capture, based on data given interactively by the user.
>
> You can use org-attach in conjunction with org-capture, to create a
> directory connected to an Org heading.
>
> > My intention would be to work this way:
> >
> > 1. Create a directory for a request or a group of tasks or a project,
> > in short, an aspect of my job.
> > 2. Create a file that will contain the information related to the
> > request in addition to a journal allowing me to keep track of what I
> > have done and store all the data that are useful to me.
>
> I'd say you don't need a separate file for this, simply the subtree of
> the heading you're using to track this job.
>
> > 3. Store anything that is related to that request or aspect of my job
> > into the related directory.
>
> That's org-attach again.
>
> > 4. Being able to search for a particular aspect or getting a list of
> > them and access it.
>
> I actually don't think there's any built-in way of searching files in an
> org-attach directory.
>
> > 5. When the job is done for an aspect, archive the directory.
>
> I think that would happen automatically with org-attach.
>
> > So far, I was using the configuration of norang, but I don't thing it
> > is really adapted to my work-flow anymore.
> >
> > I know that org-mode is capable of a lot of things, but I was
> > wondering if this is not a little bit to broad for org-mode to be an
> > efficient tool. I was even thinking that all of this should be done
> > through a server, with emacs being the interface to communicate with
> > it.
>
> Beats me!
>
>
>


Re: [O] Problems with org-drill

2016-06-22 Thread Alan Schmitt
Hello,

On 2016-05-05 10:21, Memnon Anon  writes:

> Milan Zamazal  writes:
>
>> Anything new about this problem?  I also experience the bug, it's still
>> present and I have to remove the given line on any Org update. :-(
>
> Bugtracker:
>  https://bitbucket.org/eeeickythump/org-drill/issues/30/random-blank-buffer-2
>
> Little function by jschaf:
> https://github.com/jschaf/dotfiles/commit/263a0f1607350e0cdacc7229d775ab50520949f0
>
> I'm still trying to find the bugreport for the bug mentioned here in 
> org.el defun org-toggle-latex-fragment :
> + ;; Work around a bug that doesn't restore window's start
> + ;; when widening back the buffer.
> + (set-window-start nil window-start)

I just started using org-drill, and I'm seeing the same issue (using
current org-plus-contrib from elpa). I tried to follow the link to the
"little function" but I get a 404. Any suggestion to get rid of the bug?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2015-05: 403.94, 2016-05: 407.70


signature.asc
Description: PGP signature


[O] Table (used a "spreadsheet") org-sbe issues when the value is a string

2016-06-22 Thread Frederick Giasson

Hi Everybody,

I am experiencing a few issues trying to update a cell value using 
=org-sbe= when the value of a column is a string.


Here is an example that works when the value is a number:




#+NAME: average-dataset-size
#+BEGIN_SRC clojure :var f="turtle" :exports none :results value
(identity f)
#+END_SRC

#+RESULTS: average-dataset-size
: turtle


| Format | Sizes distribution in MB | Average size in MB |
|+--+|
|  7 |  |  7 |
#+TBLFM: $3='(org-sbe "average-dataset-size" (f $1))



Now, if I put a string in the format column, I al getting the following:



#+NAME: average-dataset-size
#+BEGIN_SRC clojure :var f="turtle" :exports none :results value
(identity f)
#+END_SRC

#+RESULTS: average-dataset-size
: turtle


| Format | Sizes distribution in MB | Average size in MB |
|+--+|
| turtle |  | #ERROR |
#+TBLFM: $3='(org-sbe "average-dataset-size" (f $1))



The debugging session I have is (which doesn't tell me with Result: is 
#ERROR):




Substitution history of formula
Orig:   ?
$xyz->  '(org-sbe "average-dataset-size" (f $1))
@r$c->  '(org-sbe "average-dataset-size" (f $1))
$1->'(org-sbe "average-dataset-size" (f "turtle"))
Result: #ERROR
Format: NONE
Final:  #ERROR




Note #1: (identity) is a function in Clojure that returns the same value 
that is in input.



I am wondering if this is a bug, or something that I am missing in how 
to use these features?



Thanks for helping,


Fred




Re: [O] Does org-nofity uses dbus?

2016-06-22 Thread Xi Shen
Well~that's good news. But I think dbus requires X11 to work. But in Cygwin
environment, people usually do not configure a full X11 environment.

Besides, for org-notify, could dbus help it playing a notification sound on
Windows? Or popup a notification message?

So what I am thinking is to get some Windows native behavior for org-notify
on Windows/Cygwin environment.


On Tue, Jun 21, 2016 at 10:25 PM Fabrice Popineau <
fabrice.popin...@centralesupelec.fr> wrote:

>
> Le 21 juin 2016 16:14, "Xi Shen"  a écrit :
> >
> > Yeah...getting dbus to work on Windows will be hard.
>
> Actually, not so much. Dbus does work on windows. It doesn't work right
> now on emacs. I'm looking into it.
>
> Fabrice
>
-- 


Thanks,
David S.


[O] org-class/diary-float entries do not sync (org-caldav)

2016-06-22 Thread Saša Janiška
Hello,

I’m trying to enter repeated tasks for e.g. daily language classes
during the month of July, daily (Mon-Frid) from 08:00-12:00 in my org
file and sync them via org-caldav to get them on my phone (synced with
OwnCloud with Davdroid app.

In the beginning I tried with the following:

** english class
   <%%(org-class 2016 7 4 2016 7 29 2)> 08:00-12:00 english class

and the entry is added to my Agenda as:

gour-calendar:english class:gour::

but the time range is missing which can be ’fixed’ with:

** english class 08:00-12:00
   <%%(org-class 2016 7 4 2016 7 29 2)>

which gives entry for Tuesdays during July as:

gour-calendar: 8:00-12:00 english class   :gour::

The problem with the above is that it does not sync with
org-caldav-sync although it creates ID property.

Next thing I’ve tried is:


** english class
   <%%(diary-float 7 1 1)>

and the only way to get time range is to use:

** english class 08:00-12:00
   <%%(diary-float 7 1 1)>

but, again, the sync does not work and I also occasionaly run into
another problem - see this issue:

https://github.com/dengste/org-caldav/issues/91

By looking at org-caldav docs (https://github.com/dengste/org-caldav) it
looks that using org-class might be problematic indeed, but no idea why
the sync does not work with diary-float?

Moreover, there are several FAQs entries (http://orgmode.org/worg/org-faq.html)
showing similar/same examples and org-caldav docs says: „…If they are
inside an Org entry, there's a good chance they will be exported (see
below) and have an ID property, so they can be found by org-caldav…“, so
I’ll be grateful if someone can shed some light how to achieve the
desired result mentioned at the beginning?


Sincerely,
Gour

-- 
One who is able to withdraw his senses from sense objects,
as the tortoise draws its limbs within the shell,
is firmly fixed in perfect consciousness.