Re: [O] [maint bug, org-clock.el] org-time-string-to-seconds

2017-09-04 Thread Rasmus
Nicolas Goaziou  writes:

> Hello,
>
> Rasmus  writes:
>
>> There’s bug in maint that made it into Org v9.0.10 via commit
>> 7e241af591df15d2b7587648ed2342ae3a5d0e5b.  In org-clock.el, the v9.1
>> signature of ‘org-time-string-to-seconds’ has made it into
>> ‘org-clock-sum’.  Should I just remove the time zone, or should the
>> signature of ‘org-time-string-to-seconds’ be changed in maint?
>
> Considering Org 9.1 is (hopefully) about to be released, I wouldn't
> bother much.

OK, let’s give v9.1 a bit of time to finish.  If v9.0.10 isn’t widely used
after this release I see no issue with it.

> I think the original idea was to change the signature in maint.

OK.

Thanks,
Rasmus

-- 
ツ




Re: [O] org --> odt with math

2017-09-04 Thread Rasmus
Uwe Brauer  writes:

> Hi
>
> Using org (git version) GNU emacs 26 on Ubuntu 14.04,
> following
> http://orgmode.org/manual/Working-with-LaTeX-math-snippets.html#fn-2
> I have set
> (setq org-latex-to-mathml-convert-command
> "/usr/bin/latexmlmath \"%i\" --presentationmathml=%o")
>
> Latexmlmath is installed of course.
>
> I try to convert the following file to odt with mathml
>
> #+OPTIONS: LaTeX:t
>
> This 
> \begin{equation}
> \label{eq:aned-ex:1}
> \begin{cases}
>   y^{\prime}&= -2000(y-\cos(t))\\
>y_0&=0 \qquad 0\leq t \leq 1.5
>  \end{cases}
> \end{equation}
>
> But the equation is just exported as ASCII code. What do I miss?

I think that happens when there’s an error.

Do you see the help message when you run latexmlmath from the commandline?

Perhaps you need to load some modules manually?  See the latexml manual

http://dlmf.nist.gov/LaTeXML/manual.pdf

Can latexml create a proper mathml version if you provide a "full" latex
file with the equation and the right packages?

Rasmus

-- 
Er du tosset for noge' lårt!




[O] DEADLINE ignored?

2017-09-04 Thread Pdj

Hello, I am observing this (funky?) behavior:
in the agenda, the deadline seems to be identified only if it 
immediately follows the headline, and it is ignored otherwise.

Am I missing something?   Thank you, Paolo.


1) DEADLINE is identified and used.

** TODO Phone call
DEADLINE: <2017-09-06 Wed>
Maria's bill

-> agenda
capture:In   2 d.:  TODO Phone call   [<2017-09-06 Wed>]


2) DEADLINE is ignored

** TODO Phone call
Maria's bill
DEADLINE: <2017-09-06 Wed>

-> agenda
nothing


3) DEADLINE is ignored

** TODO Phone call

DEADLINE: <2017-09-06 Wed>
Maria's bill

-> agenda
nothing






Re: [O] DEADLINE ignored?

2017-09-04 Thread Eric S Fraga
On Monday,  4 Sep 2017 at 12:08, Pdj wrote:
> Hello, I am observing this (funky?) behavior:
> in the agenda, the deadline seems to be identified only if it
> immediately follows the headline, and it is ignored otherwise.
> Am I missing something?   Thank you, Paolo.

You are not missing something.  As the manual says:

A timestamp may be preceded by special keywords to facilitate
planning.  Both the timestamp and the keyword have to be positioned
immediately after the task they refer to.

I guess immediately means not even a blank line.

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9


signature.asc
Description: PGP signature


[O] org-agenda-skip-function does not find inherited tags

2017-09-04 Thread Adrian Bradd
Hello,

I have the following custom agenda command:

(setq org-agenda-custom-commands
  '(("ww" "Work 2 day view"
 ((agenda ""
   ((org-agenda-files '("~/tmp/tmp.org"))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp
":@work:"))
(org-agenda-start-on-weekday nil)
(org-agenda-span 2)
(org-agenda-overriding-header "\n2 day work
view\n-\n")))

Given the sample file below:

* Top heading with tags
:@work:admin:
** Next heading (inherited tags)
   SCHEDULED: <2017-09-04 Mon>
** Next heading (explicit tags)
:@work:admin:
   SCHEDULED: <2017-09-04 Mon>

The agenda will only display headings that have the tag explicitly defined.
In this case, "Next heading (explicit tags)".

Is there a way I can convince the agenda to honour inherited tags in this
case?

Cheers,

Adrian


Re: [O] Time-Event-Diagrams

2017-09-04 Thread edgar

Message: 7

Date: Tue, 29 Aug 2017 10:22:01 +0100
Subject: Re: [O] Time-Event-Diagrams
Message-ID: <874lsq4tl2@yandex.com>


#+name: whentable
| When | How many |
|--+--|
| [2016-11-17 Thu] |3 |
| [2016-11-23 Wed] |4 |
| [2016-12-10 Sat] |1 |
#+BEGIN_SRC gnuplot :file whenfile.svg :var data=whentable :session 
none :term svg

size 600,200
set timefmt "%Y-%m-%d-%H:%M:%S"
set xdata time
set yrange [0:]
plot data using 1:2 w impulse lw 6
#+END_SRC

#+RESULTS:
[[file:whenfile.svg]]





This no longer appears to work. The file whenfile.svg is created but is 
empty.




It works for me if I remove the =:session none=. It seems that there are 
some issues with the session flag:


On 2017-09-03 12:23, Nicolas Goaziou wrote:

* Question:
  1. Is this the expected behaviour?
  2. Is there a way to get ~#+RESULTS:~ with C-c C-c directly for this 
kind of blocks?


I don't think so. It looks like a bug with sessions.


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



[O] link recognition in orgmode

2017-09-04 Thread John Kitchin
With this definition of a link in org-9:

#+BEGIN_SRC emacs-lisp
(org-link-set-parameters "test" :follow (lambda (path) (message "check")))
#+END_SRC

#+RESULTS:

Should both of these be "linkfied"? I would have expected the first one
to be, but not the second one. It seems like the "test:rtree" parts of
both of these are linkified.

 test:rtree  :test:rtree

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: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-04 Thread Adam Porter
"Loris Bennett"  writes:

> I didn't know about this function either.  Is it correct that the org
> parts of 'org-plus-contrib' shadow the whole of 'org', e.g.
>
>   ...
>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org hides 
> /usr/share/emacs/25.1/lisp/org/org
>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org-install hides 
> /usr/share/emacs/25.1/lisp/org/org-install
>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-mscgen hides 
> /usr/share/emacs/25.1/lisp/org/ob-mscgen
>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org-archive hides 
> /usr/share/emacs/25.1/lisp/org/org-archive
>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-tangle hides 
> /usr/share/emacs/25.1/lisp/org/ob-tangle
>   ...
>   
> plus hundreds of similar shadowings?

That's shadowing the Org files distributed with Emacs; you want that.  :)




[O] disable execute script/program query

2017-09-04 Thread kevinbanjo
Hi:

Is there any way to disable the yes/no query every time you click on a link
that executes a shell script or elisp command?   I haven't been able to
locate a custom variable or anything.


Re: [O] disable execute script/program query

2017-09-04 Thread John Kitchin
You are looking for this page:
http://orgmode.org/manual/Code-evaluation-security.html#Code-evaluation-security

Just set org-confirm-shell-link-function and org-confirm-elisp-link-function
to nil.

John

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


On Mon, Sep 4, 2017 at 7:21 PM, kevinbanjo  wrote:

> Hi:
>
> Is there any way to disable the yes/no query every time you click on a
> link that executes a shell script or elisp command?   I haven't been able
> to locate a custom variable or anything.
>


Re: [O] mimetype for orgmode files

2017-09-04 Thread John Kitchin
Thanks for letting me know. I let the people at
https://github.com/jshttp/mime-db/pull/82 know that. It looks like org
might be registered as a mimetype now.

Bastien Guerry writes:

> Hi John,
>
> John Kitchin  writes:
>
>> Let me know the url to that note when you update it so I can use it as a
>> primary source for the github registration.
>
> It is now on orgmode.org homepage: http://orgmode.org/index.html
>
> Best,


-- 
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] mimetype for orgmode files

2017-09-04 Thread Yasushi SHOJI
Hi,

There is RFC 6648, which "deprecating the "X-" Prefix".

So, it might be better to use "text/org".

https://tools.ietf.org/html/rfc6648
-- 
   yashi



Re: [O] Bug: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-04 Thread Loris Bennett
Adam Porter  writes:

> "Loris Bennett"  writes:
>
>> I didn't know about this function either.  Is it correct that the org
>> parts of 'org-plus-contrib' shadow the whole of 'org', e.g.
>>
>>   ...
>>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org hides 
>> /usr/share/emacs/25.1/lisp/org/org
>>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org-install hides 
>> /usr/share/emacs/25.1/lisp/org/org-install
>>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-mscgen hides 
>> /usr/share/emacs/25.1/lisp/org/ob-mscgen
>>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org-archive hides 
>> /usr/share/emacs/25.1/lisp/org/org-archive
>>   /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-tangle hides 
>> /usr/share/emacs/25.1/lisp/org/ob-tangle
>>   ...
>>   
>> plus hundreds of similar shadowings?
>
> That's shadowing the Org files distributed with Emacs; you want that.  :)

D'oh, I copied the wrong bits.  This was what I was wondering about:

  ...
  /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ox-md hides 
/home/loris/.emacs.d/elpa/org-20170828/ox-md
  /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-lilypond hides 
/home/loris/.emacs.d/elpa/org-20170828/ob-lilypond
  /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-ruby hides 
/home/loris/.emacs.d/elpa/org-20170828/ob-ruby
  /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/ob-js hides 
/home/loris/.emacs.d/elpa/org-20170828/ob-js
  /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org-crypt hides 
/home/loris/.emacs.d/elpa/org-20170828/org-crypt
  ...

M-x list-packages shows 'org-plus-contrib' as installed and 'org' as a
dependency required by

  ox-twiki-20170803.1339, org-sticky-header-20170422.2135, 
org-dotemacs-20151119.1022

So I guess the above packages should allow 'org-plus-contrib' as an
alternative requirement to 'org', but currently require only 'org', so I
end up with both installed.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de




Re: [O] mimetype for orgmode files

2017-09-04 Thread Bastien Guerry
Hi Yasushi,

Yasushi SHOJI  writes:

> There is RFC 6648, which "deprecating the "X-" Prefix".

Thanks for letting us know!

> So, it might be better to use "text/org".

I’m fine with "text/org".  John?  Others?

I’ll make the change later this week if nobody disagrees.

Thanks,

-- 
 Bastien