[O] clocking and type-break

2017-03-31 Thread Samuel Wales
what is a good org clocking function to reliably make clocking stop
when type-break is activated and start when it is deactivated?

like: jump to clocked task if clock is running, clock out, go back to
where you were, then jump to previously clocked task, clock in.

except robust and using the correct functions.

-- 
The Kafka Pandemic: 

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
.



Re: [O] Help needed tangling with orgmode v9

2017-03-31 Thread Guido Van Hoecke
On 31 March 2017 at 20:58, Bruce V Chiarelli  wrote:

>
> Just had the same problem myself not too long ago. It should be
>
> #+PROPERTY:  header-args   :tangle emacs-guivho.el
> #+PROPERTY:  header-args+  :padline yes
> #+PROPERTY:  header-args+  :eval never
> #+PROPERTY:  header-args+  :eval no
> #+PROPERTY:  header-args+  :exports code
>
> Be sure also to hit C-c somewhere in the header after updating them too,
> so that Org is aware of the change.
>

Thanks Bruce, works as expected now!

Have a nice week-end,

-- 
Guido

Tout choses sont dites deja, mais comme personne n'ecoute, il faut
toujours recommencer.
-- A. Gide

[ All things have already been said, but since no one listens, one
  must always start again. ]


Re: [O] Help needed tangling with orgmode v9

2017-03-31 Thread Bruce V Chiarelli

Guido Van Hoecke  writes:

> Hi,
>

Hi there,

> So I changed the #+PROPERTY lines into:
>
> #+PROPERTY:  header-args  :tangle emacs-guivho.el
> #+PROPERTY:  header-args  :padline yes
> #+PROPERTY:  header-args  :eval never
> #+PROPERTY:  header-args  :eval no
> #+PROPERTY:  header-args  :exports code
>

Just had the same problem myself not too long ago. It should be

#+PROPERTY:  header-args   :tangle emacs-guivho.el
#+PROPERTY:  header-args+  :padline yes
#+PROPERTY:  header-args+  :eval never
#+PROPERTY:  header-args+  :eval no
#+PROPERTY:  header-args+  :exports code

Be sure also to hit C-c somewhere in the header after updating them too,
so that Org is aware of the change.

Bruce Chiarelli



[O] Help needed tangling with orgmode v9

2017-03-31 Thread Guido Van Hoecke
Hi,

I used to generate my .emacs (named emacs-guivho.el) from
emacs-guivho.org and I just realised that this no longer works since I
switched from orgmode v8 to v9 some 10 days ago.

These are the header lines I had in the org file:
#+TITLE:Emacs config file guivho
+AUTHOR:Guido Van Hoecke
+EMAIL: (concat "guivho" at-sign "gmail.com")
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:4 num:nil
#+SEQ_TODO: TODO FIXME DOESN'T_WORK | WORKS
#+PROPERTY:  tangle emacs-guivho.el
#+PROPERTY:  padline yes
#+PROPERTY:  eval no

Somehow this does no longer work
Running org-lint indicates that these are deprecated:

10 low   Deprecated syntax for "tangle".  Use header-args instead
11 low   Deprecated syntax for "padline".  Use header-args instead
12 low   Deprecated syntax for "eval".  Use header-args instead

So I changed the #+PROPERTY lines into:

#+PROPERTY:  header-args  :tangle emacs-guivho.el
#+PROPERTY:  header-args  :padline yes
#+PROPERTY:  header-args  :eval never
#+PROPERTY:  header-args  :eval no
#+PROPERTY:  header-args  :exports code

Still doesn't work though: when running org-babel-tangle it reports
Tangled 0 code blocks from emacs-guivho.org

Please advise.

Thanks in advance,

--
Guido

Fourth Law of Revision:
It is usually impractical to worry beforehand about
interferences -- if you have none, someone will make one for you.



Re: [O] Problems with opening a link

2017-03-31 Thread Matt Lundin
Hi Carsten,

Carsten Dominik  writes:

> Hi everyone,
>
> I have problems opening a link in org.
>
> The link looks like this:
>
> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
>
> I have copied it like this from the address bar in a browser.
>
> If I click on it in Org-mode, the link is modified to
>
> https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
>
> before being sent to the browser, and the browser cannot resolve it.
> The problem seems to be that # has been turned into %23

I cannot replicate this on Linux, but there do seem to be some
inconsistencies with how Org-mode is escaping/unescaping links:

AFAICT, Org-mode itself is not modifying the "#". The relevant lines of
org-open-at-point are 10747-10748:

  ((functionp (org-link-get-parameter type :follow))
(funcall (org-link-get-parameter type :follow) path))

Just simply copying and pasting the link from the browser, I found that
`path` at the lines above is:

//ui.adsabs.harvard.edu/#search/q=author:"Dominik,C"/metrics

Note: the time one gets to this point, the path has already been
unescaped (see line 10712).

Meanwhile, `type` is...

https

...which results in org-open-at-point calling the following:

(lambda (path) (browse-url (concat "https:" path)))

However, there are inconsistencies when one turns the pasted url above
into an actual org-link (e.g., by calling org-insert-link).

Then the link in org-mode looks like this (note that the escape
percentage characters are themselves escaped, which seems a bit strange
to me):

[[https://ui.adsabs.harvard.edu/#search/q=author%253A%2522Dominik%252CC%2522/metrics]]

Now when you open at point, the `path` at line 10748 is:

//ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics

Hope this helps in debugging.
Matt



Re: [O] Problems with opening a link

2017-03-31 Thread Matt Lundin
"Tim O'Callaghan"  writes:

> I've had a similar issue, but with redmine links.
> if i have
>
> #+LINK: rm http://redmine/issues/%s
>
> * link [[rm:3287]] does not work properly any more (with firefox under
> KDE)

The link above is missing ".org". It should look like this:

#+LINK: rm http://redmine.org/issues/%s

Matt



Re: [O] Problems with opening a link

2017-03-31 Thread Scott Randby
On 03/31/2017 08:52 AM, Carsten Dominik wrote:
> Hi Scott,
>
> which system are you on?
>
> I am using a Mac, and the "open" command in the mac as
> browse-url-generic-program

I'm using Xubuntu 16.04. I believe the function being used is
browse-url-browser-function which I have set to browse-url-firefox. The
variable browse-url-generic-program has no value on my system.

Scott

>
> Carsten
>
> On Fri, Mar 31, 2017 at 2:22 PM, Scott Randby  > wrote:
>
> On 03/31/2017 05:39 AM, Carsten Dominik wrote:
> > Hi everyone,
> >
> > I have problems opening a link in org.
> >
> > The link looks like this:
> >
> > 
> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 
> 
> >
> > I have copied it like this from the address bar in a browser.
> >
> > If I click on it in Org-mode, the link is modified to
> >
> > https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> 
> >
> > before being sent to the browser, and the browser cannot resolve it.
> > The problem seems to be that # has been turned into %23
>
> The link worked fine when I tried opening it from an Org file. I'm using
> Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.
>
> Scott Randby
>
> >
> > Where does this happen, and how can I fix this?
> >
> > Thank you.
> >
> > Carsten
>
>



Re: [O] How can footnotes be exported at the end of an artile in latex?

2017-03-31 Thread mgcyung
Eric S Fraga  writes:

> On Wednesday, 29 Mar 2017 at 15:16, Nick Dokos wrote:
>> mgcyung  writes:
>
> [...]
>
>> They are then called "endnotes". You might want to google for that.
>> And it might be as simple as
>>
>> #+LATEX_HEADER: \usepackage{endnotes}
>
> You'll need to add
>
> #+latex_header: \let\footnote\endnote
>
> somewhere and also
>
> #+latex: \theendnotes
>
> at the place you want the end notes to appear.

It works. Thanks a lot.

-- 
With best wishes,
mgcyung



Re: [O] Problems with opening a link

2017-03-31 Thread Tim O'Callaghan
Hi,

I've had a similar issue, but with redmine links.
if i have
#+LINK: rm http://redmine/issues/%s

* link [[rm:3287]] does not work properly any more (with firefox under KDE)

best regards,

Tim.

On 31 March 2017 at 14:52, Carsten Dominik  wrote:
> Hi Scott,
>
> which system are you on?
>
> I am using a Mac, and the "open" command in the mac as
> browse-url-generic-program
>
> Carsten
>
> On Fri, Mar 31, 2017 at 2:22 PM, Scott Randby  wrote:
>>
>> On 03/31/2017 05:39 AM, Carsten Dominik wrote:
>> > Hi everyone,
>> >
>> > I have problems opening a link in org.
>> >
>> > The link looks like this:
>> >
>> >
>> > https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
>> >
>> > I have copied it like this from the address bar in a browser.
>> >
>> > If I click on it in Org-mode, the link is modified to
>> >
>> > https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
>> >
>> > before being sent to the browser, and the browser cannot resolve it.
>> > The problem seems to be that # has been turned into %23
>>
>> The link worked fine when I tried opening it from an Org file. I'm using
>> Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.
>>
>> Scott Randby
>>
>> >
>> > Where does this happen, and how can I fix this?
>> >
>> > Thank you.
>> >
>> > Carsten
>
>



Re: [O] Problems with opening a link

2017-03-31 Thread Carsten Dominik
Hi Scott,

which system are you on?

I am using a Mac, and the "open" command in the mac as
browse-url-generic-program

Carsten

On Fri, Mar 31, 2017 at 2:22 PM, Scott Randby  wrote:

> On 03/31/2017 05:39 AM, Carsten Dominik wrote:
> > Hi everyone,
> >
> > I have problems opening a link in org.
> >
> > The link looks like this:
> >
> > https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%
> 2CC%22/metrics
> >
> > I have copied it like this from the address bar in a browser.
> >
> > If I click on it in Org-mode, the link is modified to
> >
> > https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> >
> > before being sent to the browser, and the browser cannot resolve it.
> > The problem seems to be that # has been turned into %23
>
> The link worked fine when I tried opening it from an Org file. I'm using
> Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.
>
> Scott Randby
>
> >
> > Where does this happen, and how can I fix this?
> >
> > Thank you.
> >
> > Carsten
>


Re: [O] Problems with opening a link

2017-03-31 Thread Scott Randby
On 03/31/2017 05:39 AM, Carsten Dominik wrote:
> Hi everyone,
> 
> I have problems opening a link in org.
> 
> The link looks like this:
> 
> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 
> I have copied it like this from the address bar in a browser.
> 
> If I click on it in Org-mode, the link is modified to
> 
> https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> 
> before being sent to the browser, and the browser cannot resolve it. 
> The problem seems to be that # has been turned into %23

The link worked fine when I tried opening it from an Org file. I'm using
Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.

Scott Randby

> 
> Where does this happen, and how can I fix this?
> 
> Thank you.
> 
> Carsten



Re: [O] Problems with opening a link

2017-03-31 Thread Peter Davis
It also appears that %3A gets turned into :





On Fri, Mar 31, 2017, at 05:39 AM, Carsten Dominik wrote:

> Hi everyone,

> 

> I have problems opening a link in org.

> 

> The link looks like this:

> 

> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 

> I have copied it like this from the address bar in a browser.

> 

> If I click on it in Org-mode, the link is modified to

> 

> https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> 

> before being sent to the browser, and the browser cannot resolve it.
> The problem seems to be that # has been turned into %23
> 

> Where does this happen, and how can I fix this?

> 

> Thank you.

> 

> Carsten



--

  Peter Davis

  www.techcurmudgeon.com


[O] Problems with opening a link

2017-03-31 Thread Carsten Dominik
Hi everyone,

I have problems opening a link in org.

The link looks like this:

https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics

I have copied it like this from the address bar in a browser.

If I click on it in Org-mode, the link is modified to

https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics

before being sent to the browser, and the browser cannot resolve it.  The
problem seems to be that # has been turned into %23

Where does this happen, and how can I fix this?

Thank you.

Carsten


Re: [O] [PATCH] ob-sql: Add vertica engine

2017-03-31 Thread Nicolas Goaziou
Hello,

Andreas Gerler  writes:

> actually I send my request to FSF after sending the patch.

Great.

> So I guess it's easier to ignore the patch until I finished signing
> the papers.

It's up to you. I can also apply the patch with the TINYCHANGE cookie
(and the ORG-NEWS entry).

> I have another change sitting currently in my config.

OK.

Thank you.

Regards,

-- 
Nicolas Goaziou0x80A93738