Re: Invalid duration format error with active timestamp

2021-05-18 Thread Rainer Hansen
Hi Garjola,

I had the same problem.

I fixed it by downloading manually the last working version of Org from
https://orgmode.org/elpa/,
i.e. https://orgmode.org/elpa/org-20210503.tar
and manually stored the extracted directory into my elpa directory,
/home/garjola/.emacs.d/elpa/ in your case.

After restarting Emacs Org agenda worked fine again.

I hope that helps.

Regards,
Rainer

Garjola Dindi  writes:

> On Mon 17-May-2021 at 16:01:25 +02, Nicolas Goaziou
>  wrote: 
>> Hello,
>>
>> Garjola Dindi  writes:
>>
>>> I am using the most recent elpa version of org
>>> 9.4.5 (9.4.5-93-gbc857b-elpa @
>>> /home/garjola/.emacs.d/elpa/org-20210510/) with emacs master branch.
>>>
>>> Since updating org yesterday, when I use a timestamp like 
>>>
>>> ,
>>> | <2021-05-17 Mon 10:00-11:00>
>>> `
>>>
>>>
>>> building the agenda fails with this backtrace:
>>>
>>> ,
>>> | Debugger entered--Lisp error: (error "Invalid duration format:
>>> | #(\"10:00-11:00\" 0 5 (font...")
>>
>> This was fixed a few days ago.
>>
>> Since Org in ELPA is updated every Monday, you need to update it again
>> (later?) today to get the fix.
>>
>
> Hi,
>
> Thanks for your answer. I've been impatiently refreshing the packages
> since yesterday, but I don't see any new version of org.
>
> I am using 
>
> http://orgmode.org/elpa/
>
> Is this still correct? Just wondering, since I understood that some
> things are changing in org packaging and distribution.
>
> Thanks for your great work!




Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-24 Thread Rainer Hansen
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Rainer Hansen <rainer.han...@gmx.net> writes:
>
>> However, I have still problems. I have adapted the example,
>> http://orgmode.org/manual/noweb_002dref.html#noweb_002dref,
>
> I fixed it.
>
Great.
>>
>> org-use-property-inheritance is '("noweb-ref")
>
> This is useless. "noweb-ref" is not a property, and header-args are
> always inherited IIRC.
>
Thanks for the clarification.
>> Here is the changed code from the Org mode manual:
>>
>> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
>>   <>
>> #+END_SRC
>>
>> * the mount point of the fullest disk
>>   :PROPERTIES:
>>   :header-args: :noweb-ref: fullest-disk
>
> It should be
>
>   :header-args: :noweb-ref fullest-disk
>
That was it. Now it is working fine.
Thanks for your help.





Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Rainer Hansen
Hi Nicolas,

Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello,
>
> Rainer Hansen <rainer.han...@gmx.net> writes:
>
>> I have tried the following example of using noweb-ref:
>>
>> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
>> <>
>> #+END_SRC
>>
>> * the mount point of the fullest disk
>>
>> ** query all mounted disks
>>
>> #+HEADER: :noweb-ref fullest-disk
>> #+BEGIN_SRC sh
>> df \
>> #+END_SRC
>>
>>
>> ** strip the header row
>>   :PROPERTIES:
>>   :noweb-ref: fullest-disk
>>   :END:
>>
>> #+BEGIN_SRC sh :noweb yes
>> |sed '1d' \
>> #+END_SRC
>>
>>
>>
>> It was mentioned more than 5 years ago as creating problems:
>> https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html
>>
>> Now I got the same problem as mentioned in the post of that time - the
>> created file contains only
>>
>> #!/bin/sh df \
>>
>> Missing is the second block.
>>
>> Any ideas why?
>
> See "Incompatible changes > Old Babel header properties are no longer
> supported" in ORG-NEWS.
>
> Regards,

thanks for the quick answer.

However, I have still problems. I have adapted the example,
http://orgmode.org/manual/noweb_002dref.html#noweb_002dref, in the
Orgmode handbook to the changed Babel header properties. However, the
generated file contained only "#!/bin/sh". I have activated property
inheritance for "noweb-ref" and moving the cursor on the #+BEGIN_SRC sh
lines shows that they have ":noweb-ref: fullest-disk" as header
argument.

org-use-property-inheritance is '("noweb-ref")

Here is the changed code from the Org mode manual:

--8<---cut here---start->8---
#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
  <>
#+END_SRC

* the mount point of the fullest disk
  :PROPERTIES:
  :header-args: :noweb-ref: fullest-disk
  :END:

** query all mounted disks

#+BEGIN_SRC sh
  df \
#+END_SRC

** strip the header row
#+BEGIN_SRC sh
  |sed '1d' \
#+END_SRC

** sort by the percent full
#+BEGIN_SRC sh
  |awk '{print $5 " " $6}'|sort -n |tail -1 \
#+END_SRC

** extract the mount point
#+BEGIN_SRC sh
  |awk '{print $2}'
#+END_SRC
--8<---cut here---end--->8---

Any ideas why it is still not working.

Regards,
Rainer





[O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Rainer Hansen
Hi,

I have tried the following example of using noweb-ref:

--8<---cut here---start->8---
#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
<>
#+END_SRC

* the mount point of the fullest disk

** query all mounted disks

#+HEADER: :noweb-ref fullest-disk
#+BEGIN_SRC sh
df \
#+END_SRC


** strip the header row
  :PROPERTIES:
  :noweb-ref: fullest-disk
  :END:

#+BEGIN_SRC sh :noweb yes
|sed '1d' \
#+END_SRC
--8<---cut here---end--->8---


It was mentioned more than 5 years ago as creating problems:
https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html

Now I got the same problem as mentioned in the post of that time - the
created file contains only

--8<---cut here---start->8---
#!/bin/sh
df \
--8<---cut here---end--->8---

Missing is the second block.

Any ideas why?

Regards,
Rainer



Emacs  : GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2016-10-26
Package: Org mode version 9.0.5 (9.0.5-elpaplus @ 
/home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)

current state:
==
(setq
 org-protocol-default-template-key "l"
 org-export-backends '(ascii beamer html icalendar latex odt freemind)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-calc-default-modes '(calc-internal-prec 12 calc-float-format (fix 2) 
calc-angle-mode deg calc-prefer-frac nil
  calc-symbolic-mode nil calc-date-format ( "-" MM 
"-" DD " " Www (" " hh ":" mm))
  calc-display-working-message t)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-log-done 'time
 org-confirm-shell-link-function 'yes-or-no-p
 org-use-sub-superscripts '{}
 org-default-notes-file "~/orgfiles/notes.org"
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes 
turn-on-font-lock org-eldoc-load)
 org-refile-targets '((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5))
 org-format-latex-header 
"\\documentclass[a4paper]{scrartcl}\n\\usepackage[usenames]{color}\n\\usepackage{amsmath}\n\\usepackage[mathscr]{eucal}\n\\pagestyle{empty}
 % do not remove\n[PACKAGES]\n[DEFAULT-PACKAGES]\n% The settings 
below are copied from fullpage.sty\n% \\setlength{\\textwidth}{\\paperwidth}\n% 
\\addtolength{\\textwidth}{-3cm}\n% 
\\setlength{\\oddsidemargin}{1.5cm}\n%\\addtolength{\\oddsidemargin}{-2.54cm}\n%
 \\setlength{\\evensidemargin}{\\oddsidemargin}\n% 
\\setlength{\\textheight}{\\paperheight}\n%  
\\addtolength{\\textheight}{-\\headheight}\n% 
\\addtolength{\\textheight}{-\\headsep}\n% 
\\addtolength{\\textheight}{-\\footskip}\n% 
\\addtolength{\\textheight}{-3cm}\n% \\setlength{\\topmargin}{1.5cm}\n% 
\\addtolength{\\topmargin}{-2.54cm}"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-use-speed-commands t
 org-clock-persist t
 org-refile-use-outline-path 'file
 org-directory "~/orgfiles/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-use-property-inheritance '("noweb-ref")
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "DONE") (sequence "PLANNING(p)" 
"DEFERRED" "|" "DONE" "CANCELLED"))
 org-modules '(org-bbdb org-bibtex org-gnus org-info org-protocol org-git-link 
org-irc org-wl org-w3m)
 org-babel-tangle-lang-exts '(("python" . "py") ("awk" . "awk") ("emacs-lisp" . 
"el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open) ("w3m" :store 
org-w3m-store-link)
   ("wl" :follow org-wl-open :store org-wl-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("git" :follow org-git-open :store org-git-store-link) 
("gitbare" :follow org-gitbare-open)
   ("info" :follow org-info-open :export org-info-export 
:store org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("bibtex" :follow org-bibtex-open :store 

Re: [O] How to calculate sum of property in tree?

2016-04-24 Thread Rainer Hansen
> Hi,
>
> I would like Emacs to calculate the price for the travel cost
> (21.90). This should be calculated as sum of the values of the property
> "Price" in the elements of the tree. How do I do that in Emacs Lisp?

I found one way to do it. I defined the COLUMNS property with %Price{+},
i.e. sum numbers in column 'Price and format result with `%.2f'
(always two decimals after point). After that I added the property
'Price' and, while cursor on 'Price',  with `C-c C-c (`org-property-action')' 
and choosing option c
(compute) the value of 'Price' got calculated.

I added the same inline Emacs Lisp expression to the headline to include
the result (21.90) in the headline.

---8<8<-
* Travel cost -- src_emacs-lisp{(org-entry-get (point) "Price")} EUR
  :PROPERTIES:
  :COLUMNS:  %Price{+;%.2f}
  :Price:21.90
  :END:

** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR 
   :PROPERTIES:
   :Price:7.70
   :END:
** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) "Price")} 
EUR
   :PROPERTIES:
   :Price:2.40
   :END:

** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
   :PROPERTIES:
   :Price:11.80
   :END:
---8<----8<-

Any ideas on how to improve that solution?


Rainer Hansen <rainer.han...@gmx.net> writes:

>
> --
> * Travel cost -- 21.90 EUR
>
> ** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} 
> EUR 
>:PROPERTIES:
>:Price:7.70
>:END:
> ** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) 
> "Price")} EUR
>:PROPERTIES:
>:Price:2.40
>:END:
>
> ** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
>:PROPERTIES:
>:Price:11.80
>:END:
> --
>
> Thanks!
>
> Rainer




[O] How to calculate sum of property in tree?

2016-04-23 Thread Rainer Hansen
Hi,

I would like Emacs to calculate the price for the travel cost
(21.90). This should be calculated as sum of the values of the property
"Price" in the elements of the tree. How do I do that in Emacs Lisp?

--
* Travel cost -- 21.90 EUR

** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR 
   :PROPERTIES:
   :Price:7.70
   :END:
** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) "Price")} 
EUR
   :PROPERTIES:
   :Price:2.40
   :END:

** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
   :PROPERTIES:
   :Price:11.80
   :END:
--

Thanks!

Rainer




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Rainer Hansen <rainer.han...@gmx.net> writes:

> Sometimes I should read more carefully what I write. I want to use a
> static web site generator! So Wordpress is no option for me.
>
> Sorry for the confusion.
>
> Brett Viren <b...@bnl.gov> writes:
>
>> Rainer Hansen <rainer.han...@gmx.net> writes:
>>
>>> I wonder what is the best way to create a blog for a company website
>>> with Orgmode. I do not want to use a static web site generator. The
>>> design of the web site is relying on Bootstrap and customs CSS.
>>
>> Just curious, why does wanting to use Bootstrap rule out an Org-based
>> static site generator for you?
> Of course I could use Bootstrap with an Org-based static site
> generator. However, I my thinking is that I need to do a lot of
> customizations to use it as a blogging engine. Perhaps I am wrong. I
> would be happy if someone on the mailing-list has done it and can show
> that it is quite straight forward to do. 
>>
>> I'm slowly developing just such a beast.  It Works For Me(TM) but is
>> still a bit raw for others unless they can deal with some Python
>> hacking and spotty documentation.
>>
>>> It should be easy to setup and to maintain for me?
>>
>> I think maybe you can better define what you mean by "easy"?  
>>
> Yes, easy is relative. What I mean is that I can set it up in less than
> 4 hours through configuration. I want to be able to reuse the visual
> theme implemented in CSS for the rest of the web site in the time limit
> mentioned before.
One more comment from my side. I am especially interested in writing my
blog posts in Orgmode and exporting them to either Jekyll or
Nikola. Does Jekyll or Nikola with the respective need less blog text
special syntax adaptations to post?

>
>> In the end, developing my own generator was easier than trying to adapt
>> existing ones.  There are a lot of great ones out there, especially if
>> you expand to allow Markdown ones (either native authoring or using
>> Org's Markdown export), but none do exactly what I wanted.
>>
>> -Brett.
> Could you please provide some links? I am especially interested in
> tutorials on setting them up.




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Arkadiusz Drabczyk <arkadi...@drabczyk.org> writes:

> On 2016-03-08, Rainer Hansen <rainer.han...@gmx.net> wrote:
>> Hi,
>>
>> I wonder what is the best way to create a blog for a company website
>> with Orgmode. I do not want to use a static web site generator. The
>> design of the web site is relying on Bootstrap and customs CSS.
>> It should be easy to setup and to maintain for me?
>>
>> I am not only looking for proposals of tool chains but also why I should
>> use the proposed one.
>>
>> I do not want to have a lot of work in translating the existing CSS into
>> some new kind of format just for the web site generator.
>
> Are you going to use WordPress in conjunction with Bootstrap (I don't
> know if it's even possible)?  If yes, then
> https://github.com/punchagan/org2blog is a great choice.
Sorry for misleading you. I want to use a static web site
generator. Because of that WordPress is no option.




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Sometimes I should read more carefully what I write. I want to use a
static web site generator! So Wordpress is no option for me.

Sorry for the confusion.

Brett Viren <b...@bnl.gov> writes:

> Rainer Hansen <rainer.han...@gmx.net> writes:
>
>> I wonder what is the best way to create a blog for a company website
>> with Orgmode. I do not want to use a static web site generator. The
>> design of the web site is relying on Bootstrap and customs CSS.
>
> Just curious, why does wanting to use Bootstrap rule out an Org-based
> static site generator for you?
Of course I could use Bootstrap with an Org-based static site
generator. However, I my thinking is that I need to do a lot of
customizations to use it as a blogging engine. Perhaps I am wrong. I
would be happy if someone on the mailing-list has done it and can show
that it is quite straight forward to do. 
>
> I'm slowly developing just such a beast.  It Works For Me(TM) but is
> still a bit raw for others unless they can deal with some Python
> hacking and spotty documentation.
>
>> It should be easy to setup and to maintain for me?
>
> I think maybe you can better define what you mean by "easy"?  
>
Yes, easy is relative. What I mean is that I can set it up in less than
4 hours through configuration. I want to be able to reuse the visual
theme implemented in CSS for the rest of the web site in the time limit
mentioned before.

> In the end, developing my own generator was easier than trying to adapt
> existing ones.  There are a lot of great ones out there, especially if
> you expand to allow Markdown ones (either native authoring or using
> Org's Markdown export), but none do exactly what I wanted.
>
> -Brett.
Could you please provide some links? I am especially interested in
tutorials on setting them up.







[O] Best way to create blog for company web site with Orgmode

2016-03-08 Thread Rainer Hansen
Hi,

I wonder what is the best way to create a blog for a company website
with Orgmode. I do not want to use a static web site generator. The
design of the web site is relying on Bootstrap and customs CSS.
It should be easy to setup and to maintain for me?

I am not only looking for proposals of tool chains but also why I should
use the proposed one.

I do not want to have a lot of work in translating the existing CSS into
some new kind of format just for the web site generator.

Thanks for your help.

Rainer




[Orgmode] German number format in tables?

2009-07-02 Thread Rainer Hansen
Hi,

I wonder what I need to do to so that I can work with the German number format 
in tables?

E.g. instead of writing 100,000.00 I would like to write 100.000,00.

All automatic formatting and calculations of Org-Mode  should of course still 
be fine. The output of calculations should also be shown in German number 
format.

Regards,
Rainer



___
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] Easiest way to calculate time spent

2009-04-06 Thread Rainer Hansen
Hi,

I am new to Org-Mode and I have written a number of project tasks in the 
following form:

* Project
** Task 1
2009-03-19 Thu 13:15-13:35
Description of Task 1
** Task 2
2009-03-18 Wed 12:15-13:35
Description of Task 2
** Task 3
 SCHEDULED: 2009-03-11 Wed 19:55-21:45 CLOSED: [2009-03-12 Thu 23:29]
 Result of Task 3

For task 3 the time calculated should be 2009-03-11 19:55-21:45 that mean 1:50 
hours.

I have quite a number of items and I wonder if there is an easy way to sum up 
all the time spent on the project (similar to what you can do with clocked 
items)? 

Thanks for your help!

Regards,
Rainer

P.S. I love Org-Mode - it is great!


___
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


Re: [Orgmode] Easiest way to calculate time spent

2009-04-06 Thread Rainer Hansen
Hi Manish,

thanks for the tip but it does not seem to work. All columns seem to be filled 
with values except of the Estim colum. There are no values displayed.

I have done the clocking manually without the help of Org-Mode. The values in 
my case are actually no estimates but rather the clocked values. Now I want 
to sum them up to see how many hours I have spent on the project.

Regards,
Rainer

On Monday 06 April 2009 19:37:07 Manish wrote:
 On Mon, Apr 6, 2009 at 6:05 PM, Rainer Hansen wrote:
  Hi,
 
  I am new to Org-Mode and I have written a number of project tasks in the
  following form:
 
  * Project
  ** Task 1
   2009-03-19 Thu 13:15-13:35
   Description of Task 1
  ** Task 2
   2009-03-18 Wed 12:15-13:35
   Description of Task 2
  ** Task 3
SCHEDULED: 2009-03-11 Wed 19:55-21:45 CLOSED: [2009-03-12 Thu 23:29]
Result of Task 3
 
  For task 3 the time calculated should be 2009-03-11 19:55-21:45 that mean
  1:50 hours.
 
  I have quite a number of items and I wonder if there is an easy way to
  sum up all the time spent on the project (similar to what you can do with
  clocked items)?

 You mean time meant to be spent on the project, right? ;-) Since the
 actual time
 spent should be clocked.

 Anyhow, you can set org-columns-default-format, e.g.:

 --8---cut here---start-8---
 (setq org-columns-default-format %TODO %60ITEM(Task)
 %5Effort(Estim){:} %5CLOCKSUM(Clock))
 --8---cut here---end---8---

 Then switch to column view using C-c C-x C-c.  Effort column should reflect
 the totals for the time you planned to spend on the tasks in the top most
 line.

 HTH




___
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