[O] org-vcard -- possible to convert .vcf files to .org ?

2017-02-18 Thread John Magolske
Can org-vcard convert .vcf files into .org files? I have a .vcf file,
a list of contacts generated from an android phone, which I'd like to
edit, through a process like:

contacts.vcf -> contacts.org

then after editing that contacts.org file do:

contacts.org -> contacts2.vcf

so that contacts2.vcf can be re-imported to the phone.

I tried org-vcard-import along with:

Source: file
Destination: buffer 
Filename? /tmp/Contacts.vcf

which tells me:

Imported contacts data to buffer ’*org-vcard-import*’

but that buffer is empty. Same when I select as Destination "file",
it produces an empty file.

I see org-vcard is "... a package for exporting and importing vCards
from within GNU Emacs' Org mode." So I'm thinking it should be
possible to do something like this, but I can't seem to get it
working.

TIA for any clarification,

John

-- 
John Magolske
http://b79.net/contact



Re: [O] Bug: Bug in Orgmode Clocktable? [9.0.5 (9.0.5-elpa @ c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170210/)]

2017-02-18 Thread Axel Kielhorn

> Am 18.02.2017 um 09:37 schrieb Nicolas Goaziou :
> 
> Hello,
> 
> Axel Kielhorn  writes:
> 
>> Maybe we should add a german translation?
> 
> It would be great. Thank you !
> 


org-clock: Add german translation.

* lisp/org-clocl.el (org-clock-clocktable-language-setup): German
  translations added.

Axel Kielhorn 
TINYCHANGE

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index a807e2c..51655d9 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -320,7 +320,8 @@ For more information, see `org-clocktable-write-default'."
   '(("en" "File" "L"  "Timestamp"  "Headline" "Time"  "ALL"   "Total time" 
  "File time" "Clock summary at")
 ("es" "Archivo"  "N"  "Fecha y hora" "Tarea" "Tiempo" "TODO" "Tiempo 
total" "Tiempo archivo" "Clock summary at")
 ("fr" "Fichier"  "N"  "Horodatage" "En-tête"  "Durée" "TOUT"  "Durée 
totale" "Durée fichier" "Horodatage sommaire à")
-("nl" "Bestand"  "N"  "Tijdstip"   "Hoofding" "Duur"  "ALLES" "Totale 
duur"  "Bestandstijd" "Clock summary at"))
+("nl" "Bestand"  "N"  "Tijdstip"   "Hoofding" "Duur"  "ALLES" "Totale 
duur"  "Bestandstijd" "Clock summary at")
+("de" "Datei""N"  "Timestamp" "Tätigkeit" "Dauer" "ALLES" 
"Gesamtdauer"  "Datei Zeit" "Erstellt am"))
   "Terms used in clocktable, translated to different languages."
   :group 'org-clocktable
   :version "24.1"




Re: [O] latex preview table environment

2017-02-18 Thread Eric S Fraga
On Saturday, 18 Feb 2017 at 07:25, Jeremie Juste wrote:
> I found the culprit. 
>
> I have set my background color to black and forground color to white.
>
> Yet when I adust the org-format-latex-options to see the preview white
> on black, the tabular environment displays the expected color setting
> but not the table environment.

When I switched my colour theme to one with a dark background, I found I
had to set org-format-latex-options to

'(:background default :foreground default)

actually specifying colours did not seem to work for me.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


Re: [O] Bug: Properties don't work in clocktable [9.0.5 (release_9.0.5-305-g21797c @ /Users/dale/.emacs.d/el-get/org-mode/lisp/)]

2017-02-18 Thread Nicolas Goaziou
Hello,

Dale  writes:

> For me, clocktable's :properties option is including columns for the
> properties, but is never including the actual values for those properties.
> This *may* be a bug, specifically in org-clock.el line 2590:
>
> (pcase-dolist (`(,level ,headline ,ts ,time . ,props) entries)
>   ...)
>
> I believe the ". ,props" should be just ",props", since I think the list
> of properties here is its own list, and not the cdr of entries:
>
> (pcase-dolist (`(,level ,headline ,ts ,time ,props) entries)
>   ...)
>
> To reproduce this problem using org-mode HEAD, evaluate the following:
>
> (switch-to-buffer (generate-new-buffer "*org mode test*"))
> (org-mode)
> (insert "* Time
> :PROPERTIES:
> :FOO:  bar
> :END:
> :LOGBOOK:
> CLOCK: [2017-02-18 Sat 10:50]--[2017-02-18 Sat 10:51] =>  0:01
> :END:
>
> #+BEGIN: clocktable :compact t :properties (\"FOO\") :maxlevel 2
> :scope subtree
>
> #+END:
> ")
> (goto-char (point-max))
> (forward-line -1)
> (org-dblock-update)
>
> Expected result which includes the property value:
>
> #+BEGIN: clocktable :compact t :properties ("FOO") :maxlevel 2 :scope subtree
> #+CAPTION: Clock summary at [2017-02-18 Sat 10:59]
>
> | FOO | Headline | Time|
> |-+--+-|
> | | *Total time* | *0.02h* |
> |-+--+-|
> | bar | Time | 0.02h   |
> #+END:
>
> Observed result from HEAD, note no property value:
>
> #+BEGIN: clocktable :compact t :properties ("FOO") :maxlevel 2 :scope subtree
> #+CAPTION: Clock summary at [2017-02-18 Sat 10:54]
>
> | FOO | Headline | Time|
> |-+--+-|
> | | *Total time* | *0.02h* |
> |-+--+-|
> | | Time | 0.02h   |
> #+END:

You're right. Fixed. Thank you.

For my own redemption, I added regression tests.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-mode basic spreadsheet question

2017-02-18 Thread Jude DaShiell
I think I figured something out.  The only reason I'm writing the list 
about it is because it may help others out with similar situations.  I can 
put ($) in headings were columns contain all currency figures.  That would 
normally be a prefix to those numbers so I might write ($) amount as a 
column heading but I would not be surprised if I got an org-mode 
spreadsheet with a heading like performance (%) in it and could understand 
that all entries in that column were percentages.  This may be a way to 
handle both prefixes and suffixes in spreadsheet applications for org-mode 
in the future.




--




[O] Bug: Properties don't work in clocktable [9.0.5 (release_9.0.5-305-g21797c @ /Users/dale/.emacs.d/el-get/org-mode/lisp/)]

2017-02-18 Thread Dale
For me, clocktable's :properties option is including columns for the
properties, but is never including the actual values for those properties.
This *may* be a bug, specifically in org-clock.el line 2590:

(pcase-dolist (`(,level ,headline ,ts ,time . ,props) entries)
  ...)

I believe the ". ,props" should be just ",props", since I think the list
of properties here is its own list, and not the cdr of entries:

(pcase-dolist (`(,level ,headline ,ts ,time ,props) entries)
  ...)

To reproduce this problem using org-mode HEAD, evaluate the following:

(switch-to-buffer (generate-new-buffer "*org mode test*"))
(org-mode)
(insert "* Time
:PROPERTIES:
:FOO:  bar
:END:
:LOGBOOK:
CLOCK: [2017-02-18 Sat 10:50]--[2017-02-18 Sat 10:51] =>  0:01
:END:

#+BEGIN: clocktable :compact t :properties (\"FOO\") :maxlevel 2
:scope subtree
#+END:
")
(goto-char (point-max))
(forward-line -1)
(org-dblock-update)

Expected result which includes the property value:

#+BEGIN: clocktable :compact t :properties ("FOO") :maxlevel 2 :scope subtree
#+CAPTION: Clock summary at [2017-02-18 Sat 10:59]
| FOO | Headline | Time|
|-+--+-|
| | *Total time* | *0.02h* |
|-+--+-|
| bar | Time | 0.02h   |
#+END:

Observed result from HEAD, note no property value:

#+BEGIN: clocktable :compact t :properties ("FOO") :maxlevel 2 :scope subtree
#+CAPTION: Clock summary at [2017-02-18 Sat 10:54]
| FOO | Headline | Time|
|-+--+-|
| | *Total time* | *0.02h* |
|-+--+-|
| | Time | 0.02h   |
#+END:

Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin15.6.0, Carbon Version
157 AppKit 1404.47)
 of 2017-02-07
Package: Org mode version 9.0.5 (release_9.0.5-305-g21797c @
/Users/dale/.emacs.d/el-get/org-mode/lisp/)

I'll take every opportunity I can to thank all the people who work to
make org-mode so indispensable!  Thank you!

Dale



Re: [O] Clocktable creates superfluous columns

2017-02-18 Thread Nicolas Goaziou
Hello,

Stefan Nobis  writes:

> In version 9.0.5 Org (Emacs 25.1) seems to generate too many columns
> in some situations. I'm not quite sure since which version this
> happens, in Org 8.x I have not seen this behaviour.
>
> Here is a small example:
>
> #+BEGIN: clocktable :maxlevel 3 :scope file :narrow 80! :compact
> #+CAPTION: Clock summary at [2017-02-18 Sat 12:37], for February 2017.
> | Headline  |   Time |   |   |
> |---++---+---|
> | *Total time*  | *0:15* |   |   |
> |---++---+---|
> | Some Tasks|   0:15 |   |   |
> | \_  STARTED Task1 |   0:15 |   |   |
> #+END:
>
> * Some Tasks
> ** STARTED Task1
>:CLOCK:
>CLOCK: [2017-02-18 Sat 12:00]--[2017-02-18 Sat 12:15] =>  0:15
>:END:
>
> It seems that the iteration over the items generates to many "|". And
> top level headlines (e.g. "Some Tasks") each generate one more "|"
> than their children (but even those seem to generate to many "|").

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] Clocktable creates superfluous columns

2017-02-18 Thread Stefan Nobis
Hi.

In version 9.0.5 Org (Emacs 25.1) seems to generate too many columns
in some situations. I'm not quite sure since which version this
happens, in Org 8.x I have not seen this behaviour.

Here is a small example:

--8<---cut here---start->8---
#+BEGIN: clocktable :maxlevel 3 :scope file :narrow 80! :compact
#+CAPTION: Clock summary at [2017-02-18 Sat 12:37], for February 2017.
| Headline  |   Time |   |   |
|---++---+---|
| *Total time*  | *0:15* |   |   |
|---++---+---|
| Some Tasks|   0:15 |   |   |
| \_  STARTED Task1 |   0:15 |   |   |
#+END:

* Some Tasks
** STARTED Task1
   :CLOCK:
   CLOCK: [2017-02-18 Sat 12:00]--[2017-02-18 Sat 12:15] =>  0:15
   :END:
--8<---cut here---end--->8---

It seems that the iteration over the items generates to many "|". And
top level headlines (e.g. "Some Tasks") each generate one more "|"
than their children (but even those seem to generate to many "|").

I did not fully understand the function org-clocktable-write-default,
so I'm not quite sure how to best fix this.

-- 
Until the next mail...,
Stefan.



Re: [O] Bug: Bug in Orgmode Clocktable? [9.0.5 (9.0.5-elpa @ c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170210/)]

2017-02-18 Thread Nicolas Goaziou
Hello,

Axel Kielhorn  writes:

> Maybe we should add a german translation?
> Here is what I use:
>
>  '(org-clock-clocktable-language-setup
>(quote
> (("en" "File" "L" "Timestamp" "Headline" "Time" "ALL" "Total time" "File 
> time" "Clock summary at")
>  ("es" "Archivo" "N" "Fecha y hora" "Tarea" "Tiempo" "TODO" "Tiempo 
> total" "Tiempo archivo" "Clock summary at")
>  ("fr" "Fichier" "N" "Horodatage" "En-tête" "Durée" "TOUT" "Durée totale" 
> "Durée fichier" "Horodatage sommaire à")
>  ("nl" "Bestand" "N" "Tijdstip" "Hoofding" "Duur" "ALLES" "Totale duur" 
> "Bestandstijd" "Clock summary at")
>  ("de" "Datei" "L" "Timestamp" "Tätigkeit" "Dauer" "ALLES" "Gesamtzeit" 
> "Datei Zeit" "Erstellt am"
>
> Does this require a patch and a TINYCHANGE?

It would be great. Thank you !

Regards,

-- 
Nicolas Goaziou