Re: "peculiar" error with countdown timer in org-agenda

2020-03-03 Thread Marco Wahl


> I will check.  However I am on Windows 7-64 and to the best of my knowledge
> Dbus is not available for this platform.  There were some efforts to make
> it work but I don't think they are current.

Okay.

> In any case, as the error message said, this version of emacs isn't
> compiled with Dbus, which makes sense for a Windows version.
> I will try to create my own handler and figure out why dbus notification is
> being attempted on a version of Emacs compiled without it.

Okay.  And yes, please check setting the handler.  E.g. evaluate

(setq org-show-notification-handler #'message)

or add the line your init file.

AFAICS the condition with the dbus stuff is ignored if the handler is
set.  In any case please report the outcome of your testing.


Thanks,
-- Marco



Re: "peculiar" error with countdown timer in org-agenda

2020-03-03 Thread Ian Garmaise
Hi Marco,

I will check.  However I am on Windows 7-64 and to the best of my knowledge
Dbus is not available for this platform.  There were some efforts to make
it work but I don't think they are current.
In any case, as the error message said, this version of emacs isn't
compiled with Dbus, which makes sense for a Windows version.
I will try to create my own handler and figure out why dbus notification is
being attempted on a version of Emacs compiled without it.

Best,

Ian



On Tue, Mar 3, 2020 at 6:08 AM Marco Wahl  wrote:

> Hi Ian,
>
> Thanks for reporting.
>
> > In Org-Agenda, I press ';' to start a countdown timer.
> > I enter 1 minute to test.
> > When timer reaches zero, I see this error in minibuffer
> >
> > dbus-call-method: peculiar error: "Emacs not compiled with dbus support"
> >
> > Also, timer display is not removed from mode-line as expected.
>
> I checked this some and I think the problem lies in function
> org-show-notification.  That function references and possibly uses
> function notifications-notify which depends on a proper setup of the
> dbus stuff.  I guess this is the gist of the bug.
>
> You can place your own handler though.  For this set variable
>
> org-show-notification-handler
>
> to e.g. function
>
>message
>
> Can you please try this out?
>
> About hunting the bug: possibly it would be good to add a check if the
> dbus system is up.  Can this be done easily?  Or add a further
> configuration item to indicate that the dbus system shall be used.
>
>
> Best,
> -- Marco
>
>
>

-- 
=
Ian Garmaise
Consultant
Phorix Solutions Group
ia...@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com


Re: "peculiar" error with countdown timer in org-agenda

2020-03-03 Thread Marco Wahl
Hi Ian,

Thanks for reporting.

> In Org-Agenda, I press ';' to start a countdown timer.
> I enter 1 minute to test.
> When timer reaches zero, I see this error in minibuffer
>
> dbus-call-method: peculiar error: "Emacs not compiled with dbus support"
>
> Also, timer display is not removed from mode-line as expected.

I checked this some and I think the problem lies in function
org-show-notification.  That function references and possibly uses
function notifications-notify which depends on a proper setup of the
dbus stuff.  I guess this is the gist of the bug.

You can place your own handler though.  For this set variable 

org-show-notification-handler

to e.g. function

   message

Can you please try this out?

About hunting the bug: possibly it would be good to add a check if the
dbus system is up.  Can this be done easily?  Or add a further
configuration item to indicate that the dbus system shall be used.


Best,
-- Marco





"peculiar" error with countdown timer in org-agenda

2020-03-02 Thread Ian Garmaise
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

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

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


In Org-Agenda, I press ';' to start a countdown timer.
I enter 1 minute to test.
When timer reaches zero, I see this error in minibuffer

dbus-call-method: peculiar error: "Emacs not compiled with dbus support"

Also, timer display is not removed from mode-line as expected.

Emacs  : GNU Emacs 26.3 (build 1, i686-w64-mingw32)
 of 2019-08-29
Package: Org mode version 9.3.6 (9.3.6-19-gf360f9-elpa @
c:/users/ian/.emacs.d/elpa/org-20200302/)

current state:
==
(setq
 org-link-abbrev-alist '(("gmail" . "
https://mail.google.com/mail/?view=cm=1=%s;))
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-babel-load-languages '((emacs-lisp . t) (dot . t) (org . t) (plantuml
. t))
 org-agenda-time-grid '((daily today require-timed) (600 800 1000 1200 1400
1600 1800 2000) ".." "")
 org-babel-results-keyword "results"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-tag-alist '(("@work" . 119) ("@home" . 104) ("laptop" . 108))
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-todo-state-tags-triggers '(("ALREADYSENT" ("sentatleastone" . t)))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-link-from-user-regexp "\\"
 org-log-into-drawer t
 org-directory "~/Dropbox/org"
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-enforce-todo-dependencies t
 org-columns-default-format "%40ITEM(Task) %17Effort(Estimated Effort){:}
%CLOCKSUM"
 org-agenda-include-diary t
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-agenda-files '("~/Dropbox/org/organizer.org" "~/Dropbox/org/
nowtutoradmin.org")
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-link-elisp-confirm-function 'yes-or-no-p
 org-enforce-todo-checkbox-dependencies t
 org-global-properties '(("Effort_All" . "0 0:10 0:30 1:00 2:00 3:00 4:00
5:00 6:00 7:00"))
 org-babel-pre-tangle-hook '(save-buffer)
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-occur-hook '(org-first-headline-recenter)
 org-mode-hook '(org-clock-load #[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-show-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)
 org-agenda-span 'day
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-default-notes-file "~/Dropbox/org/notes.org"
 org-src-lang-modes '(("plantuml" . fundamental) ("C" . c) ("C++" . c++)
("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
 ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" .
fundamental) ("elisp" . emacs-lisp)
 ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite"
. sql))
 org-clock-persist 'history
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-confirm-shell-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-link-shell-confirm-function 'yes-or-no-p
 org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE"))
 org-log-done 'time
 org-plantuml-jar-path "~/plantuml.jar"
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default)
("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)
("\\.xlsx\\'" . default) ("\\.docx\\'" . default))
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-blocker-hook '(org-block-todo-from-checkboxes
org-block-todo-from-children-or-siblings-or-parent)
 org-link-parameters '(("attachment" :follow org-attach-open-link :export
org-attach-export-link :complete org-attach-complete-link)
  ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow
org-rmail-open :store org-rmail-store-link)
  ("mhe" :follow org-mhe-open :store org-mhe-store-link)
  ("irc" :follow org-irc-visit :store org-irc-store-link :export
org-irc-export)
  ("info" :follow org-info-open :export org-info-export :store