Re: [O] Bug: org-timer-current-timer missing in latest version? [8.2.5c (8.2.5c-dist @ /Users/david.rose/.emacs.d/addons/org/lisp/)]

2016-03-09 Thread Kyle Meyer
Hello,

David Rose  writes:

> (add-hook 'org-clock-in-hook '(lambda()
>   (if (not org-timer-current-timer)
>   (org-timer-set-timer '(16)
>
> This works fine on version 8.2.5c and earlier, but on 8.3.4 the variable
> does not seem to be present. When trying to clock in to a todo item I
> receive the following error:
>
> Symbol's value as variable is void: org-timer-current-timer

org-timer-current-timer was replaced with org-timer-countdown-timer in
173b0cb (org-timer.el: Merge API for the two timers, 2014-12-07).

--
Kyle



[O] Bug: org-timer-current-timer missing in latest version? [8.2.5c (8.2.5c-dist @ /Users/david.rose/.emacs.d/addons/org/lisp/)]

2016-03-09 Thread David Rose
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


In my current configuration I make use of org-timer for pomodoro
method.  This includes the following if statement in my .emacs file:

(add-hook 'org-clock-in-hook '(lambda()
(if (not org-timer-current-timer)
(org-timer-set-timer '(16)

This works fine on version 8.2.5c and earlier, but on 8.3.4 the variable
does not seem to be present. When trying to clock in to a todo item I
receive the following error:

Symbol's value as variable is void: org-timer-current-timer

When using M-x set-variable I am not able to set the variable as it
seemingly is not present.

Does org-timer not load from org-modules anymore or is there a better
way to do this?  Below is the entire code snippet for what I am doing.


;;
;;;  Pomodoro Settings
(add-to-list 'org-modules 'org-timer t)
(setq org-timer-default-timer 25)
(add-hook 'org-clock-in-hook '(lambda()
(if (not org-timer-current-timer)
(org-timer-set-timer '(16)
(add-hook 'org-clock-out-hook '(lambda()
 (setq org-mode-line-string nil)))
(add-hook 'org-timer-done-hook '(lambda()
  (start-process "org-mode" nil 
"/usr/local/bin/growlnotify -a Emacs.app -m 'Org-Mode (Pomodoro): Times up!")))



Thanks in advance!


//David

Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org
Package: Org-mode version 8.2.5c (8.2.5c-dist @ 
/Users/david.rose/.emacs.d/addons/org/lisp/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . 
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("none" "[NO-DEFAULT-PACKAGES][NO-PACKAGES]" ("" . "") 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 )
 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-html-format-drawer-function '(lambda (name contents) contents)
 org-clock-into-drawer "LOGBOOK"
 org-log-done 'note
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-finalize-agenda-hook '(my-org-agenda-to-appt)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f")
 org-agenda-skip-scheduled-if-done t
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-todo-keyword-faces '(("Blocked" . "dark red") ("Done" . "dark green") 
("Planning" . "purple") ("Waiting" . "blue")
  ("Executing" . "yellow") ("Backlog" . org-warning))
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name